2023-10-20 16:57:32 +07:00
|
|
|
interface DataRows {
|
2023-11-17 15:28:03 +07:00
|
|
|
id: string; //*Id การยื่นขอลา
|
|
|
|
|
leaveTypeName: string | null; //Name ประเภทการลา
|
|
|
|
|
leaveTypeId: string; //Id ประเภทการลา
|
2023-12-08 16:05:56 +07:00
|
|
|
fullName: string; //คำนำหน้า ชื่อ นามสกุล คนขอลา
|
2023-11-17 15:28:03 +07:00
|
|
|
dateSendLeave: string | null; //วันที่ยื่นใบลา
|
|
|
|
|
status: string | null; //ส
|
2023-10-20 16:57:32 +07:00
|
|
|
}
|
2023-12-08 16:05:56 +07:00
|
|
|
interface ListLeave {
|
|
|
|
|
id: string; //*Id การยื่นขอลา
|
|
|
|
|
leaveTypeName: string | null; //Name ประเภทการลา
|
|
|
|
|
leaveTypeId: string; //Id ประเภทการลา
|
|
|
|
|
fullName: string; //คำนำหน้า ชื่อ นามสกุล คนขอลา
|
|
|
|
|
dateSendLeave: Date | null; //วันที่ยื่นใบลา
|
|
|
|
|
status: string | null; //ส
|
|
|
|
|
}
|
2023-11-08 18:02:52 +07:00
|
|
|
interface FormData {
|
|
|
|
|
id: string;
|
|
|
|
|
leaveType: string;
|
|
|
|
|
name: string;
|
|
|
|
|
Date: string;
|
|
|
|
|
status: string;
|
|
|
|
|
}
|
2023-11-21 15:29:02 +07:00
|
|
|
|
|
|
|
|
interface DataDateMonthObject {
|
|
|
|
|
month: number;
|
|
|
|
|
year: number;
|
|
|
|
|
}
|
2023-12-08 16:05:56 +07:00
|
|
|
interface LeaveType {
|
|
|
|
|
code: string;
|
|
|
|
|
createdAt: Date;
|
|
|
|
|
createdFullName: string;
|
|
|
|
|
createdUserId: string;
|
|
|
|
|
id: string;
|
|
|
|
|
lastUpdateFullName: string;
|
|
|
|
|
lastUpdateUserId: string;
|
|
|
|
|
lastUpdatedAt: Date | null;
|
|
|
|
|
limit: Number;
|
|
|
|
|
name: string;
|
|
|
|
|
}
|
2023-11-21 15:29:02 +07:00
|
|
|
|
2023-12-08 16:05:56 +07:00
|
|
|
export type { DataRows, FormData, DataDateMonthObject, ListLeave, LeaveType };
|