hrms-recruit/src/modules/01_exam/interface/index/Main.ts

145 lines
3.3 KiB
TypeScript
Raw Normal View History

interface Pagination {
rowsPerPage: number
}
interface DataDateMonthObject {
month: number
year: number
}
interface ChangeActive {
name: string
id: number
}
//ข้อมูลส่วนตัว
interface Information {
cardid: string
prefix: string
prefixId: string
firstname: string
lastname: string
birthDate: Date
genderId: string
bloodId: string
nationality: string
ethnicity: string
religionId: string
tel: string
phone: string
email: string
provinceId: string
cardIdDate: Date
}
interface Family {
prefixC: string // couple
prefixIdC: string
firstnameC: string
lastnameC: string
occupationC: string
nationalityC: string
prefixM: string // male
prefixIdM: string
firstnameM: string
lastnameM: string
occupationM: string
nationalityM: string
prefixF: string // female
prefixIdF: string
firstnameF: string
lastnameF: string
occupationF: string
nationalityF: string
same: string
}
interface Address {
address: string
provinceId: string
districtId: string
subdistrictId: string
addressC: string
provinceIdC: string
districtIdC: string
subdistrictIdC: string
same: string
}
interface DataOption {
id: string
name: string
zipCode?: string
}
interface zipCodeOption {
id: string
name: string
zipCode: string
}
const defaultAddress: Address = {
address: 'บ้านเลขที่ 1/2 ซอย 56 ถนนตัดใหม่',
provinceId: 'f122211c-7e35-4bbc-ad0f-b3a853ed1cea',
districtId: '16813e59-c03a-4c97-ab6f-59438a44e422',
subdistrictId: '0d21e8af-6507-4312-a214-3e5a870f856d',
addressC: 'บ้านเลขที่ 1/2 ซอย 56 ถนนตัดใหม่',
provinceIdC: 'f122211c-7e35-4bbc-ad0f-b3a853ed1cea',
districtIdC: '16813e59-c03a-4c97-ab6f-59438a44e422',
subdistrictIdC: '0d21e8af-6507-4312-a214-3e5a870f856d',
same: '0'
}
const defaultInformation: Information = {
cardid: '10238002345325',
prefix: 'นางสาว',
prefixId: '0f6dc562-e4a4-4014-9b20-5c97ea811755',
firstname: 'ณัฐกา',
lastname: 'ชมสิน',
birthDate: new Date('2002-01-01'),
genderId: 'ee1063a0-8ceb-4f9c-af06-107a58823957',
bloodId: '5c0c5185-ca99-4593-a7a3-c5ec56230e03',
nationality: 'ไทย',
ethnicity: 'ไทย',
religionId: '1fe77f89-c3b2-4b2c-b255-558375acc35b',
tel: '0914569982',
phone: '0914569982',
email: 'test@test.test',
provinceId: 'zxczxczxcasc',
cardIdDate: new Date('2000-01-10')
}
const defaultFamily: Family = {
prefixC: 'นาย',
prefixIdC: 'b3033046-20a8-46fc-9f9c-47447f49830b',
firstnameC: 'ธนาคาร',
lastnameC: 'กสิกร',
occupationC: 'ว่าง',
nationalityC: 'ไทย',
prefixM: 'นาย',
prefixIdM: 'b3033046-20a8-46fc-9f9c-47447f49830b',
firstnameM: 'ธนายุทธ',
lastnameM: 'ชมสิน',
occupationM: 'ว่าง',
nationalityM: 'ไทย',
prefixF: 'นางสาว',
prefixIdF: '0f6dc562-e4a4-4014-9b20-5c97ea811755',
firstnameF: 'ณัฐกาล',
lastnameF: 'ชมสิน',
occupationF: 'ว่าง',
nationalityF: 'ไทย',
same: '1'
}
export { defaultInformation, defaultFamily, defaultAddress }
export type {
Pagination,
DataOption,
DataDateMonthObject,
ChangeActive,
Information,
Family,
Address,
zipCodeOption
}