ปรับ fe sprint2

This commit is contained in:
Kittapath 2023-06-19 15:50:50 +07:00
parent 8576f3c387
commit 0d6ff7be0a
83 changed files with 6932 additions and 2571 deletions

View file

@ -9,6 +9,12 @@ interface DataOption {
disable?: boolean;
}
interface DataOptionLeave {
id: string;
name: string;
totalLeave: number;
}
interface DataOptionInsignia {
id: string;
name: string;
@ -23,6 +29,7 @@ interface treeTab {
interface InformationOps {
prefixOps: DataOption[];
prefixOldOps: DataOption[];
genderOps: DataOption[];
bloodOps: DataOption[];
statusOps: DataOption[];
@ -31,6 +38,11 @@ interface InformationOps {
employeeTypeOps: DataOption[];
}
interface OldNameOps {
prefixOps: DataOption[];
statusOps: DataOption[];
}
interface AddressOps {
provinceOps: DataOption[];
districtOps: DataOption[];
@ -62,9 +74,11 @@ export type {
DataOptionInsignia,
treeTab,
InformationOps,
OldNameOps,
AddressOps,
FamilyOps,
EduOps,
InsigniaOps,
DisciplineOps,
DataOptionLeave,
};

View file

@ -6,7 +6,12 @@ interface DataProps {
//ข้อมูล
interface RequestItemsObject {
id: string;
point: number;
point1Total: number;
point1: number;
point2Total: number;
point2: number;
pointSumTotal: number;
pointSum: number;
name: string;
date: Date;
createdFullName: string;

View file

@ -16,11 +16,13 @@ interface RequestItemsObject {
interface RequestItemsHistoryObject {
oc: string | null;
position: string | null;
positionPathSide: string | null;
posNo: string | null;
positionLine: string | null;
positionType: string | null;
positionLevel: string | null;
positionExecutive: string | null;
positionExecutiveSide: string | null;
dateAppoint: Date;
dateStart: Date;
retireDate: string | null;

View file

@ -6,20 +6,24 @@ interface DataProps {
//ข้อมูล
interface RequestItemsObject {
id: string;
year: number;
sickDay: number;
personalDay: number;
maternityDay: number;
wifeDay: number;
sickCount: number;
ordainDay: number;
absentDay: number;
studyDay: number;
agencyDay: number;
coupleDay: number;
therapyDay: number;
createdFullName: string;
createdAt: Date;
typeLeave: string;
dateStartLeave: Date;
dateEndLeave: Date;
numLeave: number;
sumLeave: number;
totalLeave: number;
status: string;
reason: string;
typeLeaveId: string;
}
//ข้อมูล
interface RequestItemsTotalObject {
typeLeaveId: string;
typeLeave: string;
totalLeave: number;
limitLeave: string;
remainLeave: string;
}
//columns
@ -35,4 +39,4 @@ interface Columns {
};
}
export type { RequestItemsObject, Columns, DataProps };
export type { RequestItemsObject, Columns, DataProps, RequestItemsTotalObject };

View file

@ -2,20 +2,35 @@
interface RequestItemsObject {
id: number;
fullname: String;
fullnameOld: String;
avatar: String;
citizenId: String;
// oc: String;
oc: String;
position: String;
numberPosition: String;
positionPathSide: String;
numberPosition: String | null;
positionLine: String;
positionType: String;
govAge: number;
positionLevel: String;
positionExecutive: String;
dateAppoint: Date | null;
dateStart: Date | null;
createdAt: Date | null;
salaryDate: Date | null;
positionExecutive: String | null;
positionExecutiveSide: String | null;
refSalary: String;
positionEmployeePosition: String | null;
positionEmployeePositionSide: String | null;
positionEmployeeLevel: String | null;
positionEmployeeGroup: String | null;
dateAppoint: Date | string | null;
dateStart: Date | string | null;
createdAt: Date | string | null;
salaryDate: Date | string | null;
leaveReason: String;
age: String;
amount: String;
insignia: String;
insigniaLast: String;
isLeave: String;
leaveDateOrder: Date | string | null;
}
//columns

View file

@ -0,0 +1,32 @@
interface DataProps {
row: RequestItemsObject;
rowIndex: number;
}
//ข้อมูล
interface RequestItemsObject {
id: string;
prefix: string;
prefixId: string;
firstName: string;
lastName: string;
status: string;
file: string | null;
createdFullName: string;
createdAt: Date;
}
//columns
interface Columns {
[index: number]: {
name: String;
align: String;
label: String;
sortable: Boolean;
field: String;
headerStyle: String;
style: String;
};
}
export type { RequestItemsObject, Columns, DataProps };

View file

@ -3,6 +3,11 @@ interface DataProps {
rowIndex: number;
}
interface DataPropsEmployee {
row: RequestItemsEmployee;
rowIndex: number;
}
//ข้อมูล
interface RequestItemsObject {
id: string;
@ -34,6 +39,31 @@ interface RequestItemsObject {
createdAt: Date;
}
interface RequestItemsEmployee {
amount: number;
createdAt: Date;
createdFullName: string;
date: Date;
id: string;
mouthSalaryAmount: number;
oc: string | null;
ocId: string | null;
posNo: string | null;
posNoId: string | null;
posNoEmployee: string | null;
positionEmployeeGroup: string | null;
positionEmployeeGroupId: string | null;
positionEmployeeLevel: string | null;
positionEmployeeLevelId: string | null;
positionEmployeePosition: string | null;
positionEmployeePositionId: string | null;
positionEmployeePositionSide: string | null;
positionEmployeePositionSideId: string | null;
positionSalaryAmount: number;
salaryClass: string | null;
salaryRef: string | null;
}
//columns
interface Columns {
[index: number]: {
@ -47,4 +77,10 @@ interface Columns {
};
}
export type { RequestItemsObject, Columns, DataProps };
export type {
RequestItemsObject,
Columns,
DataProps,
RequestItemsEmployee,
DataPropsEmployee,
};

View file

@ -1,7 +1,12 @@
//ข้อมูล
interface ResponseObject {
id: string;
point: number;
point1Total: number;
point1: number;
point2Total: number;
point2: number;
pointSumTotal: number;
pointSum: number;
name: string;
date: Date;
createdFullName: string;

View file

@ -1,18 +1,20 @@
//ข้อมูล
interface ResponseObject {
oc: string | null;
business: string | null;
positionExecutive: string | null;
positionExecutiveSide: string | null;
dateAppoint: Date | string;
dateStart: Date | string;
govAge: string | null;
govAgeAbsent: number | null;
govAgePlus: number | null;
level: string | null;
positionLevel: string | null;
posNo: string | null;
position: string | null;
positionPathSide: string | null;
retireDate: string | null;
type: string | null;
work: string | null;
positionType: string | null;
positionLine: string | null;
createdFullName: string | null;
createdAt: Date;
reasonSameDate: string | null;

View file

@ -1,5 +1,6 @@
//ข้อมูล
interface ResponseObject {
changeName: boolean | null;
birthDate: Date;
bloodGroupId: string | null;
citizenId: string | null;

View file

@ -1,20 +1,22 @@
//ข้อมูล
interface ResponseObject {
id: string;
year: number;
sickDay: number;
personalDay: number;
maternityDay: number;
wifeDay: number;
sickCount: number;
ordainDay: number;
absentDay: number;
studyDay: number;
agencyDay: number;
coupleDay: number;
therapyDay: number;
createdFullName: string;
createdAt: Date;
typeLeave: string;
dateStartLeave: Date;
dateEndLeave: Date;
numLeave: number;
sumLeave: number;
totalLeave: number;
status: string;
reason: string;
typeLeaveId: string;
}
interface ResponseTotalObject {
typeLeaveId: string;
typeLeave: string;
totalLeave: number;
limitLeave: string;
remainLeave: string;
}
export type { ResponseObject };
export type { ResponseObject, ResponseTotalObject };

View file

@ -2,20 +2,36 @@
interface ResponseObject {
id: number;
fullname: String;
fullnameOld: String;
avatar: String;
citizenId: String;
oc: String;
position: String;
posNo: String;
positionPathSide: String;
posNo: String | null;
posNoEmployee: String | null;
positionLine: String;
positionType: String;
govAge: number;
positionLevel: String;
positionExecutive: String;
positionExecutive: String | null;
positionExecutiveSide: String | null;
refSalary: String;
positionEmployeePosition: String | null;
positionEmployeePositionSide: String | null;
positionEmployeeLevel: String | null;
positionEmployeeGroup: String | null;
dateAppoint: Date | null;
dateStart: Date | null;
createdAt: Date | null;
salaryDate: Date | null;
leaveReason: string;
age: String;
amount: String;
insignia: String;
insigniaLast: String;
isLeave: boolean;
leaveDateOrder: Date | null;
}
export type { ResponseObject };

View file

@ -0,0 +1,14 @@
//ข้อมูล
interface ResponseObject {
id: string;
prefix: string;
prefixId: string;
firstName: string;
lastName: string;
status: string;
file: string | null;
createdFullName: string;
createdAt: Date;
}
export type { ResponseObject };

View file

@ -29,4 +29,29 @@ interface ResponseObject {
createdAt: Date;
}
export type { ResponseObject };
interface ResponseObjectEmployee {
amount: number;
createdAt: Date;
createdFullName: string;
date: Date;
id: string;
mouthSalaryAmount: number;
oc: string | null;
ocId: string | null;
posNo: string | null;
posNoId: string | null;
posNoEmployee: string | null;
positionEmployeeGroup: string | null;
positionEmployeeGroupId: string | null;
positionEmployeeLevel: string | null;
positionEmployeeLevelId: string | null;
positionEmployeePosition: string | null;
positionEmployeePositionId: string | null;
positionEmployeePositionSide: string | null;
positionEmployeePositionSideId: string | null;
positionSalaryAmount: number;
salaryClass: string | null;
salaryRef: string | null;
}
export type { ResponseObject, ResponseObjectEmployee };