2023-10-27 09:32:57 +07:00
|
|
|
interface OptionData {
|
2024-09-02 14:01:01 +07:00
|
|
|
id: string | undefined;
|
|
|
|
|
name: string | undefined;
|
|
|
|
|
code: string | undefined;
|
2023-10-27 09:32:57 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface FormLeavetMainData {
|
2024-09-02 14:01:01 +07:00
|
|
|
type: string;
|
|
|
|
|
numDate: string;
|
|
|
|
|
extend: string;
|
|
|
|
|
use: string;
|
|
|
|
|
numAll: string;
|
|
|
|
|
numDone: string;
|
|
|
|
|
numNot: string;
|
|
|
|
|
numCancel: string;
|
2023-10-27 09:32:57 +07:00
|
|
|
}
|
|
|
|
|
|
2023-10-31 15:36:13 +07:00
|
|
|
interface formListLeaveData {
|
2024-09-02 14:01:01 +07:00
|
|
|
no: string;
|
|
|
|
|
date: string | null;
|
|
|
|
|
type: string;
|
|
|
|
|
status: string;
|
|
|
|
|
year: string;
|
2023-10-31 15:36:13 +07:00
|
|
|
}
|
|
|
|
|
|
2023-11-30 13:36:01 +07:00
|
|
|
interface TypeLeave {
|
2024-09-02 14:01:01 +07:00
|
|
|
code: string;
|
|
|
|
|
createdAt: Date;
|
|
|
|
|
createdFullName: string;
|
|
|
|
|
createdUserId: string;
|
|
|
|
|
id: string;
|
|
|
|
|
lastUpdateFullName: string;
|
|
|
|
|
lastUpdateUserId: string;
|
|
|
|
|
lastUpdatedAt: Date | null;
|
|
|
|
|
limit: number;
|
|
|
|
|
name: string;
|
2023-11-30 13:36:01 +07:00
|
|
|
}
|
|
|
|
|
|
2023-12-18 16:26:56 +07:00
|
|
|
interface LeaveItem {
|
2024-09-02 14:01:01 +07:00
|
|
|
text: string;
|
|
|
|
|
color: string;
|
|
|
|
|
value: number;
|
|
|
|
|
all: number;
|
|
|
|
|
use: number;
|
|
|
|
|
remain: number;
|
2023-12-18 16:26:56 +07:00
|
|
|
}
|
|
|
|
|
|
2024-09-03 17:36:59 +07:00
|
|
|
interface MainList{
|
|
|
|
|
id: string;
|
|
|
|
|
leaveTypeName: string;
|
|
|
|
|
leaveLimit: number;
|
|
|
|
|
leaveExtend: number;
|
|
|
|
|
leavePercent: number;
|
|
|
|
|
leaveCountSend: number;
|
|
|
|
|
leaveCountApprove: number;
|
|
|
|
|
leaveCountReject: number;
|
|
|
|
|
leaveCountDelete: number;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface LeaveDocument {
|
|
|
|
|
fileName: string;
|
|
|
|
|
pathName: string;
|
|
|
|
|
id: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface FormData {
|
|
|
|
|
id: string;
|
|
|
|
|
leaveTypeName: string;
|
|
|
|
|
leaveTypeId: string;
|
|
|
|
|
fullname: string;
|
|
|
|
|
dateSendLeave: Date | null;
|
|
|
|
|
status: string;
|
|
|
|
|
leaveStartDate: Date | null;
|
|
|
|
|
leaveEndDate: Date | null;
|
|
|
|
|
leaveCount: number;
|
|
|
|
|
leaveWrote: string;
|
|
|
|
|
leaveAddress: string;
|
|
|
|
|
leaveNumber: string;
|
|
|
|
|
leaveDetail: string;
|
|
|
|
|
leaveDocument: LeaveDocument[];
|
|
|
|
|
leaveDraftDocument: string;
|
|
|
|
|
leaveLastStart: Date | null;
|
|
|
|
|
leaveLastEnd: Date | null;
|
|
|
|
|
leaveTotal: number;
|
|
|
|
|
leavebirthDate: Date | null;
|
|
|
|
|
leavegovernmentDate: Date | null;
|
|
|
|
|
leaveSalary: number;
|
|
|
|
|
leaveSalaryText: string;
|
|
|
|
|
leaveTypeDay: string;
|
|
|
|
|
wifeDayName: string;
|
|
|
|
|
wifeDayDateBorn: Date | null;
|
|
|
|
|
restDayOldTotal: number;
|
|
|
|
|
restDayCurrentTotal: number;
|
|
|
|
|
ordainDayStatus: string;
|
|
|
|
|
ordainDayLocationName: string;
|
|
|
|
|
ordainDayLocationAddress: string;
|
|
|
|
|
ordainDayLocationNumber: string;
|
|
|
|
|
ordainDayOrdination: Date | null;
|
|
|
|
|
ordainDayBuddhistLentName: string;
|
|
|
|
|
ordainDayBuddhistLentAddress: string;
|
|
|
|
|
hajjDayStatus: string;
|
|
|
|
|
absentDaySummon: string;
|
|
|
|
|
absentDayLocation: string;
|
|
|
|
|
absentDayRegistorDate: Date | null;
|
|
|
|
|
absentDayGetIn: string;
|
|
|
|
|
absentDayAt: string;
|
|
|
|
|
studyDaySubject: string;
|
|
|
|
|
studyDayDegreeLevel: string;
|
|
|
|
|
studyDayUniversityName: string;
|
|
|
|
|
studyDayTrainingSubject: string;
|
|
|
|
|
studyDayTrainingName: string;
|
|
|
|
|
studyDayCountry: string;
|
|
|
|
|
studyDayScholarship: string;
|
|
|
|
|
coupleDayName: string;
|
|
|
|
|
coupleDayPosition: string;
|
|
|
|
|
coupleDayLevel: string;
|
|
|
|
|
coupleDayLevelCountry: string;
|
|
|
|
|
coupleDayCountryHistory: string;
|
|
|
|
|
coupleDayTotalHistory: string;
|
|
|
|
|
coupleDayStartDateHistory: Date | null;
|
|
|
|
|
coupleDayEndDateHistory: Date | null;
|
|
|
|
|
coupleDaySumTotalHistory: string;
|
|
|
|
|
approveStep: string;
|
|
|
|
|
dear: string;
|
2025-04-25 16:01:57 +07:00
|
|
|
leaveRangeEnd: string;
|
2024-09-03 17:36:59 +07:00
|
|
|
leaveLast: string;
|
2025-04-25 16:01:57 +07:00
|
|
|
leaveSubTypeName: string;
|
2024-09-03 17:36:59 +07:00
|
|
|
leaveRange: string;
|
|
|
|
|
}
|
|
|
|
|
|
2024-09-02 14:01:01 +07:00
|
|
|
export type {
|
|
|
|
|
OptionData,
|
|
|
|
|
FormLeavetMainData,
|
|
|
|
|
formListLeaveData,
|
|
|
|
|
TypeLeave,
|
|
|
|
|
LeaveItem,
|
2024-09-03 17:36:59 +07:00
|
|
|
MainList,
|
|
|
|
|
FormData
|
2024-09-02 14:01:01 +07:00
|
|
|
};
|