67 lines
1.4 KiB
TypeScript
67 lines
1.4 KiB
TypeScript
|
|
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 = "";
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|