hrms-mgt/src/modules/05_placement/interface/index/Main.ts

201 lines
3.8 KiB
TypeScript
Raw Normal View History

import type { zipCodeOption } from "../../components/PersonalDetail/profileType";
interface DataOption {
id: number | null;
2023-07-13 10:50:12 +07:00
name: string;
2023-07-10 09:03:56 +07:00
disable?: boolean;
}
interface DataOption1 {
2023-07-13 09:43:09 +07:00
id: string | null;
name: string | null;
disable?: boolean;
}
2023-06-15 10:41:27 +07:00
interface DataOptionInsignia {
id: string;
name: string;
typeName: string;
2023-06-14 17:44:16 +07:00
}
2023-07-13 10:50:12 +07:00
interface optionData {
id: string;
name: string;
}
2023-06-14 17:44:16 +07:00
interface EduOps {
2023-07-13 10:50:12 +07:00
levelOptions: optionData[];
positionPathOptions: optionData[];
2023-06-14 17:44:16 +07:00
}
interface InformationOps {
2023-07-13 10:50:12 +07:00
prefixOps: optionData[];
genderOps: optionData[];
bloodOps: optionData[];
statusOps: optionData[];
religionOps: optionData[];
employeeClassOps: optionData[];
employeeTypeOps: optionData[];
2023-06-14 17:44:16 +07:00
}
interface AddressOps {
2023-07-13 10:50:12 +07:00
provinceOps: optionData[];
districtOps: optionData[];
districtCOps: optionData[];
2023-06-14 17:44:16 +07:00
subdistrictOps: zipCodeOption[];
subdistrictCOps: zipCodeOption[];
}
2023-06-15 10:41:27 +07:00
interface InsigniaOps {
insigniaOptions: DataOptionInsignia[];
}
interface Pagination {
rowsPerPage: number;
}
2023-06-14 17:44:16 +07:00
interface treeTab {
id: string;
label: string;
children: treeTab[];
}
2023-06-15 16:07:44 +07:00
interface CheckboxItem {
id: number;
label: string;
}
2023-07-13 09:10:43 +07:00
interface Property {
name: string;
value: boolean;
}
interface PointExam {
pointA: number;
pointB: number;
pointC: number;
pointTotalA: number;
pointTotalB: number;
pointTotalC: number;
point: number;
pointTotal: number;
examNumber: number;
examRound: number;
pass: string | null;
}
interface Education {
id: string;
educationLevel: string;
institute: string;
degree: string;
field: string;
gpa: string;
country: string;
duration: string;
other: string;
fundName: string;
durationYear: number;
finishDate: Date;
isDate: string;
startDate: number;
endDate: number;
positionPath: string;
isEducation: string;
}
interface Family {
couple: string;
2023-07-13 09:10:43 +07:00
marryPrefix: string;
marryPrefixId: string;
marryFirstName: string;
marryLastName: string;
marryOccupation: string;
fatherPrefix: string;
fatherPrefixId: string;
fatherFirstName: string;
fatherLastName: string;
fatherOccupation: string;
motherPrefix: string;
motherPrefixId: string;
motherFirstName: string;
motherLastName: string;
motherOccupation: string;
}
interface Address {
registAddress: string;
2023-07-13 09:10:43 +07:00
registSubDistrict: string;
registSubDistrictId: string;
registZipCode: string;
registDistrict: string;
registDistrictId: string;
registProvince: string;
registProvinceId: string;
currentAddress: string;
2023-07-13 09:10:43 +07:00
currentSubDistrict: string;
currentSubDistrictId: string;
currentZipCode: string;
currentDistrict: string;
currentDistrictId: string;
currentProvince: string;
currentProvinceId: string;
registSame: string;
2023-07-13 09:10:43 +07:00
}
2023-07-13 09:43:09 +07:00
const AddressDataDefualt: Address = {
registAddress: "",
currentAddress: "",
2023-07-13 09:43:09 +07:00
registSubDistrict: "",
registSubDistrictId: "",
registZipCode: "",
registDistrict: "",
registDistrictId: "",
registProvince: "",
registProvinceId: "",
currentSubDistrict: "",
currentSubDistrictId: "",
currentZipCode: "",
currentDistrict: "",
currentDistrictId: "",
currentProvince: "",
currentProvinceId: "",
registSame: "0",
2023-07-13 09:43:09 +07:00
};
const FamilyDataDefualt: Family = {
couple: "0",
marryPrefix: "",
marryPrefixId: "",
marryFirstName: "",
marryLastName: "",
marryOccupation: "",
fatherPrefix: "",
fatherPrefixId: "",
fatherFirstName: "",
fatherLastName: "",
fatherOccupation: "",
motherPrefix: "",
motherPrefixId: "",
motherFirstName: "",
motherLastName: "",
motherOccupation: "",
};
export type {
DataOption,
DataOptionInsignia,
treeTab,
InformationOps,
AddressOps,
Pagination,
EduOps,
2023-07-10 09:03:56 +07:00
DataOption1,
2023-06-15 16:07:44 +07:00
InsigniaOps,
CheckboxItem,
2023-07-13 09:10:43 +07:00
Property,
PointExam,
Education,
Family,
Address,
2023-07-13 10:50:12 +07:00
optionData,
2023-06-15 10:41:27 +07:00
};
2023-07-13 10:50:12 +07:00
export { AddressDataDefualt, FamilyDataDefualt };