hrms-mgt/src/modules/04_registry/interface/request/Salary.ts
2024-02-09 14:16:14 +07:00

142 lines
3.2 KiB
TypeScript

interface DataProps {
row: RequestItemsObject;
rowIndex: number;
}
interface DataPropsEmployee {
row: RequestItemsEmployee;
rowIndex: number;
}
//ข้อมูล
interface RequestItemsObject {
id: string;
date: Date;
amount: number;
positionSalaryAmount: number;
mouthSalaryAmount: number;
oc: string;
ocId: string;
position: string;
positionName: string;
positionId: string;
posNo: string;
posNoId: string;
positionLine: string;
positionLineName: string;
positionLineId: string;
positionPathSide: string;
positionPathSideId: string;
positionPathSideName: string;
positionType: string;
positionTypeId: string;
positionLevel: string;
positionLevelId: string;
positionExecutive: string;
positionExecutiveName: string;
positionExecutiveId: string;
positionExecutiveSide: string;
positionExecutiveSideId: string;
salaryClass: string;
salaryRef: string;
refCommandNo: string;
orgName: string;
agencyName: string;
cLevel: string;
// refCommandDate: Date | null;
salaryStatus: string | null;
createdFullName: string;
createdAt: Date;
postionTypeName: string;
positionLevelName: string;
}
interface RequestItemsHistory {
id: string;
date: Date;
amount: number;
positionSalaryAmount: number;
mouthSalaryAmount: number;
oc: string;
ocId: string;
position: string;
positionName: string;
positionId: string;
posNo: string;
posNoId: string;
positionLine: string;
positionLineName: string;
positionLineId: string;
positionPathSide: string;
positionPathSideId: string;
positionPathSideName: string;
positionType: string;
positionTypeId: string;
positionLevel: string;
positionLevelId: string;
positionExecutive: string;
positionExecutiveName: string;
positionExecutiveId: string;
positionExecutiveSide: string;
positionExecutiveSideId: string;
salaryClass: string;
salaryRef: string;
refCommandNo: string;
orgName: string;
agencyName: string;
cLevel: string;
// refCommandDate: Date | null;
salaryStatus: string | null;
createdFullName: string;
createdAt: Date;
}
interface RequestItemsEmployee {
amount: number;
createdAt: Date;
createdFullName: string;
date: Date;
id: string;
mouthSalaryAmount: number;
oc: string | null;
ocId: string;
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;
refCommandNo: string;
salaryStatus: string | null;
// refCommandDate: Date | null;
}
//columns
interface Columns {
[index: number]: {
name: String;
align: String;
label: String;
sortable: Boolean;
field: String;
headerStyle: String;
style: String;
};
}
export type {
RequestItemsObject,
Columns,
DataProps,
RequestItemsEmployee,
DataPropsEmployee,
RequestItemsHistory
};