HRM-10/HRM.UI/ClientApp/src/app/form-builder/Basic-Master-Picker-View.ts

67 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-11-03 13:06:00 +06:00
import { BasicEntryForm } from './Basic-Entry-form';
import { SelectableSettings, SelectableMode } from '@progress/kendo-angular-grid';
export class BasicMasterPickerView {
caption: string;
fromViewType: EnumFormView;
selectionMode: SelectionModeEnum;
treeNodeFieldID: string;
treeViewMaxTier: number;
listViewColumn: BasicMasterPickerListColumn[];
entryFrom: BasicEntryForm;
listViewData: Array<Object>;
constructor() {
this.listViewColumn = [];
this.listViewData = undefined;
this.entryFrom = new BasicEntryForm();
this.fromViewType = EnumFormView.ListView;
this.entryFrom.fromViewType = EnumFormView.ListView;
this.treeViewMaxTier = 0;
}
}
export enum EnumFormView {
ListView,
TreeView,
}
export enum SelectionModeEnum {
Single,
Multiple,
}
export enum EnumAllignment {
Left,
Middle,
Right,
}
export enum EnumColumnDataTypes {
String,
Date,
Boolean,
DropDown
}
export class BasicMasterPickerListColumn {
title: string;
filedID: string;
format: string;
type: EnumColumnDataTypes;
allignment: EnumAllignment;
width: number;
constructor(Title: string, Filedid: string,
Type?: EnumColumnDataTypes, Format?: string, Allignment?: EnumAllignment, Width?: number) {
this.title = Title;
this.filedID = Filedid;
this.format = Format;
this.type = Type;
this.allignment = Allignment;
this.width = Width;
if (this.format = undefined) this.format = "";
}
}