Refactoring code 09_leave

This commit is contained in:
STW_TTTY\stwtt 2024-09-18 17:26:53 +07:00
parent d20fdb0190
commit 94eb31fc26
27 changed files with 289 additions and 577 deletions

View file

@ -26,13 +26,25 @@ interface dataRowChangeRoundHistory {
reson: string | null;
}
interface historyShow {
round: number;
startTimeMorning: string;
leaveTimeAfternoon: string;
time: string;
effectiveDate: string | null;
reson: string | null;
effectiveDate: string;
reson: string;
}
interface DataInterface {
round: number;
startTimeMorning: string;
leaveTimeAfternoon: string;
effectiveDate: Date; // ใช้ Date แทน string หากต้องการแปลงเป็น Date object
remark: string;
}
export type {
changeShow,
dataRowChangeRound,
dataRowChangeRoundHistory,
historyShow,
DataInterface
};