Refactoring code module 04_registryPerson

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-09-18 17:24:21 +07:00
parent 1164d79122
commit eeb92dfb5d
46 changed files with 1935 additions and 2230 deletions

View file

@ -10,6 +10,7 @@ interface DataOption2 {
id: number;
name: string;
}
interface DataOptionSys {
id: string;
name: string;
@ -21,6 +22,16 @@ interface DataOptionInsignia {
typeName: string;
}
interface DataOptionEducation {
label: string;
value: boolean;
}
interface DataOptionEducationLevel {
label: string;
value: string;
}
interface zipCodeOption {
id: string;
name: string;
@ -50,6 +61,12 @@ interface InsigniaOps {
insigniaOptions: DataOptionInsignia[];
}
interface ItemTab {
name: string;
icon: string;
label: string;
}
export type {
Pagination,
DataOption,
@ -60,4 +77,7 @@ export type {
AddressOps,
InsigniaOps,
DataOptionSys,
ItemTab,
DataOptionEducation,
DataOptionEducationLevel,
};

View file

@ -25,6 +25,7 @@ interface FormFilter {
interface DataOption {
id: string;
name: string;
disable?: boolean;
}
interface DisciplineOps {

View file

@ -1,8 +1,8 @@
interface DetailData {
id: string;
typeLeave: string;
dateStartLeave: Date | null;
dateEndLeave: Date | null;
dateStartLeave: Date | null | string;
dateEndLeave: Date | null | string;
numLeave: number;
status: string;
reason: string;
@ -26,7 +26,8 @@ interface FormFilter {
interface DataOptionLeave {
id: string;
name: string;
totalLeave: number;
totalLeave?: number;
code?: string;
}
interface DataOption {

View file

@ -12,7 +12,7 @@ interface FormFilter {
isProbation: boolean | null;
isAll?: boolean;
nodeId?: string | null;
node?: string | null;
node?: string | null | number;
}
interface FormAddPerson {
@ -39,4 +39,38 @@ interface MyObjectRef {
[key: string]: any;
}
export type { FormFilter, FormAddPerson, MyObjectRef };
interface DataNodeData {
name: string;
nodeId: string | null | undefined;
node: string | null | undefined | number;
}
interface QueryParams {
page: number;
pageSize: number;
isProbation?: boolean;
isRetire?: boolean;
type?: string;
node?: number | string | null | undefined;
nodeId?: string;
isAll?: boolean;
}
interface FormChangeName {
profileId: string;
prefixId: string | null | undefined;
prefix: string | null | undefined;
firstName: string | null | undefined;
lastName: string | null | undefined;
status: string | null | undefined;
documentId: string | null | undefined;
}
export type {
FormFilter,
FormAddPerson,
MyObjectRef,
DataNodeData,
QueryParams,
FormChangeName,
};

View file

@ -29,5 +29,13 @@ interface ResponseObject {
lastUpdateUserID: string;
lastUpdatedAt: Date;
}
interface DataEducationLevel {
createdAt: string;
createdFullName: string;
id: string;
lastUpdatedAt: string;
name: string;
rank: number;
}
export type { ResponseObject };
export type { ResponseObject, DataEducationLevel };

View file

@ -14,6 +14,7 @@ interface DataLevel {
interface DataPerson {
avatar?: string;
avatarName?: string;
citizenId: string;
firstName: string;
id: string;
@ -25,4 +26,138 @@ interface DataPerson {
rank?: string;
}
export type { DataType, DataLevel, DataPerson };
interface DateRequest {
createdAt: string;
createdFullName: string;
detail: string;
fullname: string;
id: string;
lastUpdateFullName: string;
lastUpdatedAt: string;
remark: string;
status: string;
topic: string;
}
interface DataProfile {
avatar: string;
avatarName: string;
birthDate: string;
bloodGroup: string;
citizenId: string;
createdAt: string;
createdFullName: string;
createdUserId: string;
currentAddress: string;
currentDistrictId: string;
currentProvinceId: string;
currentSubDistrictId: string;
currentZipCode: string;
dateAppoint: string;
dateLeave: string;
dateRetire: string;
dateRetireLaw: string;
dateStart: string;
dutyTimeEffectiveDate: string;
dutyTimeId: string;
email: string;
ethnicity: string;
firstName: string;
gender: string;
govAgeAbsent: number;
govAgePlus: number;
id: string;
isLeave: boolean;
isProbation: boolean;
keycloak: string;
lastName: string;
lastUpdateFullName: string;
lastUpdateUserId: string;
lastUpdatedAt: string;
leaveReason: string;
nationality: string;
posLevelId: string;
phone: string;
posTypeId: string;
position: string;
prefix: string;
rank: string;
reasonSameDate: null;
registrationAddress: string;
registrationDistrictId: string;
registrationProvinceId: string;
registrationSubDistrictId: string;
registrationZipCode: string;
relationship: string;
religion: string;
telephoneNumber: string;
posLevel: {
createdAt: string;
createdFullName: string;
createdUserId: string;
id: string;
lastUpdateFullName: string;
lastUpdateUserId: string;
lastUpdatedAt: string;
posLevelAuthority: string;
posLevelName: string;
posLevelRank: number;
posTypeId: string;
};
posType: {
createdAt: string;
createdFullName: string;
createdUserId: string;
id: string;
lastUpdateFullName: string;
lastUpdateUserId: string;
lastUpdatedAt: string;
posTypeName: string;
posTypeRank: number;
};
}
interface DataLeave {
createdAt: string;
createdFullName: string;
createdUserId: string;
dateLeaveEnd: string;
dateLeaveStart: string;
id: string;
lastUpdateFullName: string;
lastUpdateUserId: string;
lastUpdatedAt: string;
leaveCount: number;
leaveDays: number;
leaveType: DataLeaveType;
leaveTypeId: string;
profileEmployeeId: string;
profileId: string;
reason: string;
status: string;
totalLeave: number;
typeLeaveId: string;
}
interface DataLeaveType {
code: string;
createdAt: string;
createdUserId: string;
id: string;
lastUpdateFullName: string;
lastUpdateUserId: string;
lastUpdatedAt: string;
limit: number;
name: string;
refCommandDate: string;
}
export type {
DataType,
DataLevel,
DataPerson,
DateRequest,
DataProfile,
DataLeave,
DataLeaveType,
};