129 lines
2.4 KiB
TypeScript
129 lines
2.4 KiB
TypeScript
interface Pagination {
|
|
rowsPerPage: number;
|
|
}
|
|
|
|
interface DataOption {
|
|
id: string;
|
|
name: string;
|
|
}
|
|
interface DataOption2 {
|
|
id: number;
|
|
name: string;
|
|
}
|
|
|
|
interface DataOptionInsignia {
|
|
id: string;
|
|
name: string;
|
|
typeName: string;
|
|
}
|
|
|
|
interface zipCodeOption {
|
|
id: string;
|
|
name: string;
|
|
zipCode: string;
|
|
}
|
|
|
|
interface InformationOps {
|
|
prefixOps: DataOption[];
|
|
prefixOldOps: 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[];
|
|
}
|
|
|
|
interface InsigniaOps {
|
|
insigniaOptions: DataOptionInsignia[];
|
|
}
|
|
|
|
interface Information {
|
|
cardid: string | null;
|
|
prefix: string | null;
|
|
age: string | null;
|
|
prefixId: string | null;
|
|
firstname: string | null;
|
|
lastname: string | null;
|
|
birthDate: Date | null;
|
|
genderId: string | null;
|
|
bloodId: string | null;
|
|
nationality: string | null;
|
|
ethnicity: string | null;
|
|
statusId: string | null;
|
|
religionId: string | null;
|
|
tel: string | null;
|
|
employeeType: string | null;
|
|
employeeClass: string | null;
|
|
profileType: string | null;
|
|
}
|
|
|
|
interface Address {
|
|
address: string | null;
|
|
provinceId: string | null;
|
|
districtId: string | null;
|
|
subdistrictId: string | null;
|
|
addressC: string | null;
|
|
provinceIdC: string | null;
|
|
districtIdC: string | null;
|
|
subdistrictIdC: string | null;
|
|
same: string | null;
|
|
codec: string | null;
|
|
codep: string | null;
|
|
}
|
|
|
|
const defaultInformation: Information = {
|
|
cardid: null,
|
|
age: null,
|
|
prefix: null,
|
|
prefixId: null,
|
|
firstname: null,
|
|
lastname: null,
|
|
birthDate: null,
|
|
genderId: null,
|
|
bloodId: null,
|
|
nationality: null,
|
|
ethnicity: null,
|
|
statusId: null,
|
|
religionId: null,
|
|
tel: null,
|
|
employeeType: null,
|
|
employeeClass: null,
|
|
profileType: null,
|
|
};
|
|
|
|
const defaultAddress: Address = {
|
|
address: null,
|
|
provinceId: null,
|
|
districtId: null,
|
|
subdistrictId: null,
|
|
addressC: null,
|
|
provinceIdC: null,
|
|
districtIdC: null,
|
|
subdistrictIdC: null,
|
|
codec: null,
|
|
codep: null,
|
|
same: "0",
|
|
};
|
|
|
|
export { defaultAddress, defaultInformation };
|
|
export type {
|
|
Pagination,
|
|
DataOption,
|
|
DataOption2,
|
|
DataOptionInsignia,
|
|
zipCodeOption,
|
|
InformationOps,
|
|
AddressOps,
|
|
InsigniaOps,
|
|
Information,
|
|
Address,
|
|
};
|