paging รายการลา

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-11-17 15:28:03 +07:00
parent 45ef9649e1
commit 817d4da196
8 changed files with 248 additions and 192 deletions

View file

@ -1,7 +1,9 @@
interface DataOption {
id: string;
name: string;
id: string;
name: string;
}
export type {
DataOption
};
interface DataOption2 {
id: number;
name: string;
}
export type { DataOption, DataOption2 };

View file

@ -5,6 +5,21 @@ interface ListsData {
Date: Date;
status: string;
}
interface QuerySting {
year: number; //*ปีในการยื่นขอใบลา(ใช้เป็น คศ.)
type: string; //*Id ประเภทการลา
status: string; //*สถานะการของลา
page: number; //*หน้า
pageSize: number; //*จำนวนแถวต่อหน้า
keyword: string; //keyword ค้นหา
}
interface DateFilter {
year: number; //*ปีในการยื่นขอใบลา(ใช้เป็น คศ.)
type: string; //*Id ประเภทการลา
status: string; //*สถานะการของลา
keyword: string; //keyword ค้นหา
}
interface FremData {
id: string; //Id การยื่นขอลา
leaveTypeName: string | null; //Name ประเภทการลา
@ -63,4 +78,4 @@ interface FremData {
coupleDaySumTotalHistory: string; //ประวัติ ในกรณีลาติดต่อกับครั้งก่อน รวมทั้งนี้ด้วย เป็นเวลา กี่ปี กี่เดือน กี่วัน (ลาติดตามคู่สมรส)
}
export type { ListsData, FremData };
export type { ListsData, FremData, QuerySting, DateFilter };

View file

@ -1,8 +1,10 @@
interface DataRows {
leaveType: string;
name: string;
Date: string;
status: string;
id: string; //*Id การยื่นขอลา
leaveTypeName: string | null; //Name ประเภทการลา
leaveTypeId: string; //Id ประเภทการลา
fullname: string; //คำนำหน้า ชื่อ นามสกุล คนขอลา
dateSendLeave: string | null; //วันที่ยื่นใบลา
status: string | null; //ส
}
interface FormData {
id: string;