export declare enum FieldType { String = 0, Float = 1, Int = 2, Text = 3, Boolean = 4, Date = 5, Time = 6, DateTime = 7, File = 8, Password = 9 } export declare enum SortType { Asc = 0, Desc = 1 } export declare enum FormStatus { View = 0, Edit = 1, Insert = 2, Copy = 3 } export declare enum SearchType { Equal = 0, NotEqual = 1, In = 2, NotIn = 3, Contains = 4, StartWith = 5, EndWith = 6 } export declare enum ServiceCode { Success = 200, ValidateError = 300, SystemError = 500 } export interface FieldDefine { name: string; type: FieldType; caption: string; decimal: number; editable: boolean; update: boolean; insert: boolean; sortable: boolean; searchable: boolean; key: boolean; show: boolean; excel: boolean; required: boolean; listValues: any[][]; listKendoValues: { [key: string]: any; }[]; listParam: any; listName: string; choices: boolean; simpleChoices: boolean; autocompleteChoices: boolean; tree: boolean; autocomplete: boolean; width: number; dropdownWidth: any; summary: boolean; defaultValue: any; hidden: boolean; image: boolean; imageParams: string; groupName: string; locked: boolean; groupFirstItem: boolean; groupFirstEditItem: boolean; editMode: boolean; } export interface FieldDefineGroup { groupName: string; field: FieldDefine; fields: FieldDefine[]; } export interface SearchDefine { name: string; type: SearchType; value1: string; value2: string; values: any; searchNull: boolean; } export interface FormDefine { backward: boolean; fields: FieldDefine[]; fieldGroups: FieldDefineGroup[]; fieldByNames: { [key: string]: FieldDefine; }; name: string; action: string; pageIndex: number; pageSize: number; sortInfo: { [key: string]: SortType; }; searchInfo: { [key: string]: SearchDefine; }; summaries: { [key: string]: number; }; invalidInfo: { [key: number]: any; }; total: number; optionInsert: boolean; optionDelete: boolean; optionUpdate: boolean; optionImport: boolean; optionExcel: boolean; optionWord: boolean; optionPDF: boolean; optionsMap: { [key: string]: Array; }; } export interface FormServerData { total: number; data: any[]; summary: { [key: string]: number; }; list: { [key: string]: any; }; extra: any; } export interface BackItem { formName: string; sortInfo: { [key: string]: SortType; }; searchInfo: { [key: string]: SearchDefine; }; pageIndex: number; pageSize: number; path: string; params: { [key: string]: any; }; } export interface User { token: string; name: string; login_id: string; id: number; email: string; roles: string[]; module_permission: { [key: string]: string[]; }; api_path: { [key: string]: string; }; module_path: { [key: string]: string; }; api_module: { [key: string]: string[]; }; } export declare const Locale: { Vietnam: string; England: string; Japan: string; }; export declare const actionDelete = "delete"; export declare const actionUpdate = "update"; export declare const actionInsert = "insert"; export declare const actionCopy = "copy"; export declare const actionSetting = "setting"; export declare const actionResetSetting = "reset_setting"; export declare const actionDefine = "define"; export declare const actionData = "data"; export declare const actionExcel = "excel"; export declare const actionExport = "export"; export declare const actionDownload = "download"; export declare const actionImport = "import"; export declare const actionSample = "sample"; export declare const actionParamName = "__action__"; export declare const serialParamName = "__serial__"; export declare const downloadFieldParamName = "__download_field__"; export declare const downloadIdParamName = "__download_id__"; export declare const downloadThumbnailParamName = "__download_thumbnail__"; export declare const requestParamNameSuffix = "[]";