Refactoring code module 05_leave
This commit is contained in:
parent
763ec2fd95
commit
4253226ac3
23 changed files with 383 additions and 532 deletions
|
|
@ -45,10 +45,93 @@ interface LeaveItem {
|
|||
remain: number;
|
||||
}
|
||||
|
||||
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;
|
||||
leaveLast: string;
|
||||
leaveRange: string;
|
||||
}
|
||||
|
||||
export type {
|
||||
OptionData,
|
||||
FormLeavetMainData,
|
||||
formListLeaveData,
|
||||
TypeLeave,
|
||||
LeaveItem,
|
||||
MainList,
|
||||
FormData
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue