55 lines
1 KiB
TypeScript
55 lines
1 KiB
TypeScript
interface DataProps {
|
|
row: RequestItemsObject;
|
|
rowIndex: number;
|
|
}
|
|
|
|
//ข้อมูล
|
|
interface RequestItemsObject {
|
|
id: string;
|
|
date: Date;
|
|
status: string;
|
|
level: string;
|
|
refNo: string;
|
|
refDate: Date;
|
|
}
|
|
|
|
interface RequestItemsHistoryObject {
|
|
oc: string | null;
|
|
position: string | null;
|
|
positionPathSide: string | null;
|
|
posNo: string | null;
|
|
positionLine: string | null;
|
|
positionType: string | null;
|
|
positionLevel: string | null;
|
|
positionExecutive: string | null;
|
|
positionExecutiveSide: string | null;
|
|
dateAppoint: Date;
|
|
dateStart: Date;
|
|
retireDate: string | null;
|
|
govAge: string | null;
|
|
govAgeAbsent: string | null;
|
|
govAgePlus: string | null;
|
|
reasonSameDate: string | null;
|
|
createdFullName: string | null;
|
|
createdAt: Date;
|
|
}
|
|
|
|
//columns
|
|
interface Columns {
|
|
[index: number]: {
|
|
name: String;
|
|
align: String;
|
|
label: String;
|
|
sortable: Boolean;
|
|
field: String;
|
|
headerStyle: String;
|
|
style: String;
|
|
};
|
|
}
|
|
|
|
export type {
|
|
RequestItemsObject,
|
|
Columns,
|
|
DataProps,
|
|
RequestItemsHistoryObject,
|
|
};
|