ปรับโครงสร้างเมนู, เพิ่มเมนูในทะเบียนประวัติ
This commit is contained in:
parent
6fbc73300c
commit
054802c8b7
26 changed files with 1337 additions and 250 deletions
218
src/modules/10_order/interface/index/Main.ts
Normal file
218
src/modules/10_order/interface/index/Main.ts
Normal file
|
|
@ -0,0 +1,218 @@
|
|||
interface DataOption {
|
||||
id: number | null;
|
||||
name: string;
|
||||
disable?: boolean;
|
||||
}
|
||||
interface DataOption1 {
|
||||
id: string | null;
|
||||
name: string | null;
|
||||
disable?: boolean;
|
||||
}
|
||||
interface DataOptionInsignia {
|
||||
id: string;
|
||||
name: string;
|
||||
typeName: string;
|
||||
}
|
||||
|
||||
interface optionData {
|
||||
id: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
interface EduOps {
|
||||
levelOptions: optionData[];
|
||||
positionPathOptions: optionData[];
|
||||
}
|
||||
|
||||
interface InformationOps {
|
||||
prefixOps: optionData[];
|
||||
genderOps: optionData[];
|
||||
bloodOps: optionData[];
|
||||
statusOps: optionData[];
|
||||
religionOps: optionData[];
|
||||
employeeClassOps: optionData[];
|
||||
employeeTypeOps: optionData[];
|
||||
}
|
||||
|
||||
interface InsigniaOps {
|
||||
insigniaOptions: DataOptionInsignia[];
|
||||
}
|
||||
|
||||
interface Pagination {
|
||||
rowsPerPage: number;
|
||||
}
|
||||
|
||||
interface treeTab {
|
||||
id: string;
|
||||
label: string;
|
||||
children: treeTab[];
|
||||
}
|
||||
|
||||
interface CheckboxItem {
|
||||
id: number;
|
||||
label: string;
|
||||
}
|
||||
|
||||
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;
|
||||
educationLevelId: string;
|
||||
institute: string;
|
||||
degree: string;
|
||||
field: string;
|
||||
gpa: string;
|
||||
country: string;
|
||||
duration: string;
|
||||
other: string;
|
||||
fundName: string;
|
||||
durationYear: number;
|
||||
finishDate: Date;
|
||||
isDate: string;
|
||||
startDate: Date;
|
||||
endDate: Date;
|
||||
positionPath: string;
|
||||
isEducation: boolean;
|
||||
}
|
||||
|
||||
interface Family {
|
||||
couple: string;
|
||||
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;
|
||||
registSubDistrict: string;
|
||||
registSubDistrictId: string;
|
||||
registZipCode: string;
|
||||
registDistrict: string;
|
||||
registDistrictId: string;
|
||||
registProvince: string;
|
||||
registProvinceId: string;
|
||||
currentAddress: string;
|
||||
currentSubDistrict: string;
|
||||
currentSubDistrictId: string;
|
||||
currentZipCode: string;
|
||||
currentDistrict: string;
|
||||
currentDistrictId: string;
|
||||
currentProvince: string;
|
||||
currentProvinceId: string;
|
||||
registSame: string;
|
||||
}
|
||||
|
||||
interface Certificate {
|
||||
id: string;
|
||||
certificateNo: string;
|
||||
issuer: string;
|
||||
issueDate: Date;
|
||||
expireDate: Date;
|
||||
certificateType: string;
|
||||
}
|
||||
|
||||
const AddressDataDefualt: Address = {
|
||||
registAddress: "",
|
||||
currentAddress: "",
|
||||
registSubDistrict: "",
|
||||
registSubDistrictId: "",
|
||||
registZipCode: "",
|
||||
registDistrict: "",
|
||||
registDistrictId: "",
|
||||
registProvince: "",
|
||||
registProvinceId: "",
|
||||
currentSubDistrict: "",
|
||||
currentSubDistrictId: "",
|
||||
currentZipCode: "",
|
||||
currentDistrict: "",
|
||||
currentDistrictId: "",
|
||||
currentProvince: "",
|
||||
currentProvinceId: "",
|
||||
registSame: "0",
|
||||
};
|
||||
|
||||
const FamilyDataDefualt: Family = {
|
||||
couple: "0",
|
||||
marryPrefix: "",
|
||||
marryPrefixId: "",
|
||||
marryFirstName: "",
|
||||
marryLastName: "",
|
||||
marryOccupation: "",
|
||||
fatherPrefix: "",
|
||||
fatherPrefixId: "",
|
||||
fatherFirstName: "",
|
||||
fatherLastName: "",
|
||||
fatherOccupation: "",
|
||||
motherPrefix: "",
|
||||
motherPrefixId: "",
|
||||
motherFirstName: "",
|
||||
motherLastName: "",
|
||||
motherOccupation: "",
|
||||
};
|
||||
interface Assign {
|
||||
id: number;
|
||||
personal_id: string;
|
||||
knowlage_skill_map_no: number;
|
||||
round_no: number;
|
||||
date_start: Date;
|
||||
date_finish: Date;
|
||||
behavior_desc: string;
|
||||
other_desc: string;
|
||||
other4_desc: string;
|
||||
othor5_no1_desc: string;
|
||||
othor5_no2_desc: string;
|
||||
experimenter_dated: Date;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}
|
||||
export type {
|
||||
DataOption,
|
||||
DataOptionInsignia,
|
||||
treeTab,
|
||||
InformationOps,
|
||||
Pagination,
|
||||
EduOps,
|
||||
DataOption1,
|
||||
InsigniaOps,
|
||||
CheckboxItem,
|
||||
Property,
|
||||
PointExam,
|
||||
Education,
|
||||
Family,
|
||||
Address,
|
||||
optionData,
|
||||
Certificate,
|
||||
Assign,
|
||||
};
|
||||
|
||||
export { AddressDataDefualt, FamilyDataDefualt };
|
||||
12
src/modules/10_order/interface/request/Main.ts
Normal file
12
src/modules/10_order/interface/request/Main.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
interface FormOrderPlacementMainData {
|
||||
Order: string;
|
||||
OrderNum: string;
|
||||
fiscalYear: number;
|
||||
OrderDate: string;
|
||||
OrderBy: string;
|
||||
Signer: string;
|
||||
OrderStatus: string;
|
||||
OrderType: string;
|
||||
}
|
||||
|
||||
export type { FormOrderPlacementMainData };
|
||||
7
src/modules/10_order/interface/request/Order.ts
Normal file
7
src/modules/10_order/interface/request/Order.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
interface RequestCopyOrder {
|
||||
personalId: string;
|
||||
emailChannel: boolean;
|
||||
inboxChannel: boolean;
|
||||
}
|
||||
|
||||
export type { RequestCopyOrder };
|
||||
1
src/modules/10_order/interface/response/Main.ts
Normal file
1
src/modules/10_order/interface/response/Main.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export type {};
|
||||
44
src/modules/10_order/interface/response/Order.ts
Normal file
44
src/modules/10_order/interface/response/Order.ts
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
interface ResponseData {
|
||||
education: string;
|
||||
idCard: string;
|
||||
name: string;
|
||||
personalId: string;
|
||||
selectStatus: boolean;
|
||||
sequence: number;
|
||||
refRecordId: string
|
||||
}
|
||||
|
||||
interface ResponseOrganiz {
|
||||
firstName: string;
|
||||
idCard: string;
|
||||
lastName: string;
|
||||
name: string;
|
||||
position: string;
|
||||
prefixId: string;
|
||||
profileId: string;
|
||||
unit: string;
|
||||
}
|
||||
|
||||
interface ResponseCopyOrder {
|
||||
emailChannel: boolean;
|
||||
idCard: string;
|
||||
inboxChannel: boolean;
|
||||
name: string;
|
||||
personalId: string;
|
||||
position: string;
|
||||
selectStatus: boolean;
|
||||
sequence: number;
|
||||
unit: string;
|
||||
}
|
||||
|
||||
interface DataCopyOrder {
|
||||
personalId: string;
|
||||
name: string;
|
||||
idCard: string;
|
||||
position: string;
|
||||
unit: string;
|
||||
send: string;
|
||||
mutiselect: number[];
|
||||
}
|
||||
|
||||
export type { ResponseData, ResponseOrganiz, ResponseCopyOrder, DataCopyOrder };
|
||||
Loading…
Add table
Add a link
Reference in a new issue