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

172 lines
3.2 KiB
TypeScript
Raw Normal View History

import type { zipCodeOption } from "../../components/PersonalDetail/profileType";
interface DataOption {
2023-07-13 09:43:09 +07:00
id: number | null;
name: string | null;
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
}
interface EduOps {
levelOptions: DataOption[];
positionPathOptions: DataOption[];
}
interface InformationOps {
prefixOps: DataOption[];
genderOps: DataOption[];
bloodOps: DataOption[];
statusOps: DataOption[];
religionOps: DataOption[];
employeeClassOps: DataOption[];
employeeTypeOps: DataOption[];
}
interface AddressOps {
provinceOps: DataOption[];
districtOps: DataOption[];
districtCOps: DataOption[];
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: boolean;
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 {
registSubDistrict: string;
registSubDistrictId: string;
registZipCode: string;
registDistrict: string;
registDistrictId: string;
registProvince: string;
registProvinceId: string;
currentSubDistrict: string;
currentSubDistrictId: string;
currentZipCode: string;
currentDistrict: string;
currentDistrictId: string;
currentProvince: string;
currentProvinceId: string;
registSame: boolean;
}
2023-07-13 09:43:09 +07:00
const AddressDataDefualt: Address = {
registSubDistrict: "",
registSubDistrictId: "",
registZipCode: "",
registDistrict: "",
registDistrictId: "",
registProvince: "",
registProvinceId: "",
currentSubDistrict: "",
currentSubDistrictId: "",
currentZipCode: "",
currentDistrict: "",
currentDistrictId: "",
currentProvince: "",
currentProvinceId: "",
registSame: false,
};
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 09:43:09 +07:00
AddressDataDefualt,
2023-06-15 10:41:27 +07:00
};