clone code
This commit is contained in:
parent
c9597d1e38
commit
d57bcd1719
362 changed files with 104804 additions and 0 deletions
349
src/modules/03_recruiting/interface/index/Main.ts
Normal file
349
src/modules/03_recruiting/interface/index/Main.ts
Normal file
|
|
@ -0,0 +1,349 @@
|
|||
import { ref } from "vue";
|
||||
interface Pagination {
|
||||
rowsPerPage: number;
|
||||
}
|
||||
|
||||
interface DataDateMonthObject {
|
||||
month: number;
|
||||
year: number;
|
||||
}
|
||||
|
||||
interface ChangeActive {
|
||||
name: string;
|
||||
id: number;
|
||||
}
|
||||
|
||||
//ข้อมูลส่วนตัว
|
||||
interface Information {
|
||||
cardid: string | null;
|
||||
prefix: 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;
|
||||
religionId: string | null;
|
||||
tel: string | null;
|
||||
phone: string | null;
|
||||
email: string | null;
|
||||
province: string | null;
|
||||
provinceId: string | null;
|
||||
districtId: string | null;
|
||||
cardIdDate: Date | null;
|
||||
relationshipId: string | null;
|
||||
statusId: string | null;
|
||||
knowledge: string | null;
|
||||
profileImg: string | null;
|
||||
}
|
||||
|
||||
interface Family {
|
||||
prefixC: string | null; // couple
|
||||
prefixIdC: string | null;
|
||||
firstnameC: string | null;
|
||||
lastnameC: string | null;
|
||||
occupationC: string | null;
|
||||
nationalityC: string | null;
|
||||
prefixM: string | null; // male
|
||||
prefixIdM: string | null;
|
||||
firstnameM: string | null;
|
||||
lastnameM: string | null;
|
||||
occupationM: string | null;
|
||||
nationalityM: string | null;
|
||||
prefixF: string | null; // female
|
||||
prefixIdF: string | null;
|
||||
firstnameF: string | null;
|
||||
lastnameF: string | null;
|
||||
occupationF: string | null;
|
||||
nationalityF: string | null;
|
||||
same: string | null;
|
||||
}
|
||||
|
||||
interface Occupation {
|
||||
status: string | null;
|
||||
company: string | null;
|
||||
department: string | null;
|
||||
email: string | null;
|
||||
tel: string | null;
|
||||
official: string | null;
|
||||
personnel: string | null;
|
||||
officialsOther: string | null;
|
||||
employee: string | null;
|
||||
other: string | null;
|
||||
}
|
||||
|
||||
interface Address {
|
||||
address: string | null;
|
||||
provinceId: string | null;
|
||||
districtId: string | null;
|
||||
subdistrictId: string | null;
|
||||
code?: number | null;
|
||||
addressC: string | null;
|
||||
provinceIdC: string | null;
|
||||
districtIdC: string | null;
|
||||
subdistrictIdC: string | null;
|
||||
codeC?: number | null;
|
||||
same: string | null;
|
||||
}
|
||||
|
||||
interface DataOption {
|
||||
id: string;
|
||||
name: string;
|
||||
zipCode?: number | null;
|
||||
}
|
||||
|
||||
interface zipCodeOption {
|
||||
id: string;
|
||||
name: string;
|
||||
zipCode: string | null;
|
||||
}
|
||||
|
||||
interface UploadType {
|
||||
id: string;
|
||||
fileName: string;
|
||||
fileSize: number;
|
||||
fileType: string;
|
||||
detail: string;
|
||||
}
|
||||
|
||||
interface WebType {
|
||||
by: string;
|
||||
thai: string;
|
||||
eng: string;
|
||||
descripstion: string;
|
||||
}
|
||||
|
||||
interface AddressWeb {
|
||||
address: string | null;
|
||||
provinceId: string | null;
|
||||
districtId: string | null;
|
||||
subdistrictId: string | null;
|
||||
tel: string | null;
|
||||
code: string | null;
|
||||
}
|
||||
|
||||
interface EnableType {
|
||||
photo: boolean;
|
||||
web: boolean;
|
||||
about: boolean;
|
||||
}
|
||||
|
||||
interface CmsTable {
|
||||
id: string;
|
||||
name: string;
|
||||
link: string;
|
||||
createdAt: Date;
|
||||
lastUpdatedAt: Date;
|
||||
}
|
||||
|
||||
interface ExamCard {
|
||||
id: string;
|
||||
title: string;
|
||||
announcementDate: Date;
|
||||
registerRound: Number;
|
||||
registerDateStart: Date;
|
||||
registerDateEnd: Date;
|
||||
yearly: Date;
|
||||
}
|
||||
|
||||
const defaultCard: ExamCard[] = [
|
||||
{
|
||||
id: "1",
|
||||
title: "การสอบภาค ข. พิเศษ สำหรับผู้สอบผ่านของส่วนราชการแล้ว",
|
||||
registerRound: 2,
|
||||
announcementDate: new Date("2022-11-23"),
|
||||
registerDateStart: new Date("2022-11-09"),
|
||||
registerDateEnd: new Date("2022-11-10"),
|
||||
yearly: new Date("2022-01-01"),
|
||||
},
|
||||
{
|
||||
id: "2",
|
||||
title: "การสอบภาค ก. พิเศษ สำหรับผู้สอบผ่านของส่วนราชการแล้ว",
|
||||
registerRound: 1,
|
||||
announcementDate: new Date("2022-10-14"),
|
||||
registerDateStart: new Date("2022-10-09"),
|
||||
registerDateEnd: new Date("2022-11-30"),
|
||||
yearly: new Date("2022-01-01"),
|
||||
},
|
||||
{
|
||||
id: "2",
|
||||
title: "การสอบภาค ก. พิเศษ สำหรับผู้สอบผ่านของส่วนราชการแล้ว",
|
||||
registerRound: 1,
|
||||
announcementDate: new Date("2022-10-14"),
|
||||
registerDateStart: new Date("2022-10-09"),
|
||||
registerDateEnd: new Date("2022-11-30"),
|
||||
yearly: new Date("2022-01-01"),
|
||||
},
|
||||
{
|
||||
id: "2",
|
||||
title: "การสอบภาค ก. พิเศษ สำหรับผู้สอบผ่านของส่วนราชการแล้ว",
|
||||
registerRound: 1,
|
||||
announcementDate: new Date("2022-10-14"),
|
||||
registerDateStart: new Date("2022-10-09"),
|
||||
registerDateEnd: new Date("2022-11-30"),
|
||||
yearly: new Date("2022-01-01"),
|
||||
},
|
||||
{
|
||||
id: "2",
|
||||
title: "การสอบภาค ก. พิเศษ สำหรับผู้สอบผ่านของส่วนราชการแล้ว",
|
||||
registerRound: 1,
|
||||
announcementDate: new Date("2022-10-14"),
|
||||
registerDateStart: new Date("2022-10-09"),
|
||||
registerDateEnd: new Date("2022-11-30"),
|
||||
yearly: new Date("2022-01-01"),
|
||||
},
|
||||
{
|
||||
id: "2",
|
||||
title: "การสอบภาค ก. พิเศษ สำหรับผู้สอบผ่านของส่วนราชการแล้ว",
|
||||
registerRound: 1,
|
||||
announcementDate: new Date("2022-10-14"),
|
||||
registerDateStart: new Date("2022-10-09"),
|
||||
registerDateEnd: new Date("2022-11-30"),
|
||||
yearly: new Date("2022-01-01"),
|
||||
},
|
||||
{
|
||||
id: "2",
|
||||
title: "การสอบภาค ก. พิเศษ สำหรับผู้สอบผ่านของส่วนราชการแล้ว",
|
||||
registerRound: 1,
|
||||
announcementDate: new Date("2022-10-14"),
|
||||
registerDateStart: new Date("2022-10-09"),
|
||||
registerDateEnd: new Date("2022-11-30"),
|
||||
yearly: new Date("2022-01-01"),
|
||||
},
|
||||
{
|
||||
id: "2",
|
||||
title: "การสอบภาค ก. พิเศษ สำหรับผู้สอบผ่านของส่วนราชการแล้ว",
|
||||
registerRound: 1,
|
||||
announcementDate: new Date("2022-10-14"),
|
||||
registerDateStart: new Date("2022-10-09"),
|
||||
registerDateEnd: new Date("2022-11-30"),
|
||||
yearly: new Date("2022-01-01"),
|
||||
},
|
||||
{
|
||||
id: "2",
|
||||
title: "การสอบภาค ก. พิเศษ สำหรับผู้สอบผ่านของส่วนราชการแล้ว",
|
||||
registerRound: 1,
|
||||
announcementDate: new Date("2022-10-14"),
|
||||
registerDateStart: new Date("2022-10-09"),
|
||||
registerDateEnd: new Date("2022-11-30"),
|
||||
yearly: new Date("2022-01-01"),
|
||||
},
|
||||
{
|
||||
id: "2",
|
||||
title: "การสอบภาค ก. พิเศษ สำหรับผู้สอบผ่านของส่วนราชการแล้ว",
|
||||
registerRound: 1,
|
||||
announcementDate: new Date("2022-10-14"),
|
||||
registerDateStart: new Date("2022-10-09"),
|
||||
registerDateEnd: new Date("2022-11-30"),
|
||||
yearly: new Date("2022-01-01"),
|
||||
},
|
||||
];
|
||||
|
||||
const defaultAddress = ref<Address>({
|
||||
address: null,
|
||||
provinceId: null,
|
||||
districtId: null,
|
||||
subdistrictId: null,
|
||||
// code: ,
|
||||
addressC: null,
|
||||
provinceIdC: null,
|
||||
districtIdC: null,
|
||||
subdistrictIdC: null,
|
||||
// codeC: ,
|
||||
same: "1",
|
||||
});
|
||||
|
||||
const defaultInformation = ref<Information>({
|
||||
cardid: null,
|
||||
prefix: null,
|
||||
prefixId: null,
|
||||
firstname: null,
|
||||
lastname: null,
|
||||
birthDate: new Date(),
|
||||
genderId: null,
|
||||
bloodId: null,
|
||||
nationality: null,
|
||||
ethnicity: null,
|
||||
religionId: null,
|
||||
tel: null,
|
||||
phone: null,
|
||||
email: null,
|
||||
province: null,
|
||||
cardIdDate: new Date(),
|
||||
relationshipId: null,
|
||||
knowledge: null,
|
||||
districtId: null,
|
||||
provinceId: null,
|
||||
statusId: null,
|
||||
profileImg: null,
|
||||
});
|
||||
|
||||
const defaultFamily = ref<Family>({
|
||||
prefixC: null,
|
||||
prefixIdC: null,
|
||||
firstnameC: null,
|
||||
lastnameC: null,
|
||||
occupationC: null,
|
||||
nationalityC: null,
|
||||
prefixM: null,
|
||||
prefixIdM: null,
|
||||
firstnameM: null,
|
||||
lastnameM: null,
|
||||
occupationM: null,
|
||||
nationalityM: null,
|
||||
prefixF: null,
|
||||
prefixIdF: null,
|
||||
firstnameF: null,
|
||||
lastnameF: null,
|
||||
occupationF: null,
|
||||
nationalityF: null,
|
||||
same: "0",
|
||||
});
|
||||
|
||||
const defaultOccupation = ref<Occupation>({
|
||||
status: null,
|
||||
company: null,
|
||||
department: null,
|
||||
email: null,
|
||||
tel: null,
|
||||
official: null,
|
||||
personnel: null,
|
||||
officialsOther: null,
|
||||
employee: null,
|
||||
other: null,
|
||||
});
|
||||
|
||||
const changeData = (system: String, val: any) => {
|
||||
if (system == "information") defaultInformation.value = val;
|
||||
if (system == "address") defaultAddress.value = val;
|
||||
if (system == "famliy") defaultFamily.value = val;
|
||||
if (system == "occupation") defaultOccupation.value = val;
|
||||
};
|
||||
|
||||
export {
|
||||
defaultInformation,
|
||||
defaultFamily,
|
||||
defaultAddress,
|
||||
defaultOccupation,
|
||||
defaultCard,
|
||||
changeData,
|
||||
};
|
||||
export type {
|
||||
Pagination,
|
||||
DataOption,
|
||||
DataDateMonthObject,
|
||||
ChangeActive,
|
||||
Information,
|
||||
Family,
|
||||
Address,
|
||||
zipCodeOption,
|
||||
Occupation,
|
||||
ExamCard,
|
||||
UploadType,
|
||||
WebType,
|
||||
AddressWeb,
|
||||
EnableType,
|
||||
CmsTable,
|
||||
};
|
||||
29
src/modules/03_recruiting/interface/request/Career.ts
Normal file
29
src/modules/03_recruiting/interface/request/Career.ts
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
interface DataProps {
|
||||
row: RequestItemsObject
|
||||
rowIndex: number
|
||||
}
|
||||
|
||||
//ข้อมูล
|
||||
interface RequestItemsObject {
|
||||
id: string
|
||||
location: string
|
||||
position: string
|
||||
salary: number | null
|
||||
duration: [Date, Date]
|
||||
reason: string
|
||||
}
|
||||
|
||||
//columns
|
||||
interface Columns {
|
||||
[index: number]: {
|
||||
name: String
|
||||
align: String
|
||||
label: String
|
||||
sortable: Boolean
|
||||
field: String
|
||||
headerStyle: String
|
||||
style: String
|
||||
}
|
||||
}
|
||||
|
||||
export type { RequestItemsObject, Columns, DataProps }
|
||||
6
src/modules/03_recruiting/interface/request/Editor.ts
Normal file
6
src/modules/03_recruiting/interface/request/Editor.ts
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
interface DataLink {
|
||||
name: string | null;
|
||||
link: string | null;
|
||||
}
|
||||
|
||||
export type { DataLink };
|
||||
30
src/modules/03_recruiting/interface/request/Education.ts
Normal file
30
src/modules/03_recruiting/interface/request/Education.ts
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
interface DataProps {
|
||||
row: RequestItemsObject;
|
||||
rowIndex: number;
|
||||
}
|
||||
|
||||
//ข้อมูล
|
||||
interface RequestItemsObject {
|
||||
id: string;
|
||||
educationLevelId: string;
|
||||
educationLevel: string;
|
||||
major: string;
|
||||
scores: number | null;
|
||||
name: string;
|
||||
duration: [Date, Date];
|
||||
}
|
||||
|
||||
//columns
|
||||
interface Columns {
|
||||
[index: number]: {
|
||||
name: String;
|
||||
align: String;
|
||||
label: String;
|
||||
sortable: Boolean;
|
||||
field: String;
|
||||
headerStyle: String;
|
||||
style: String;
|
||||
};
|
||||
}
|
||||
|
||||
export type { RequestItemsObject, Columns, DataProps };
|
||||
30
src/modules/03_recruiting/interface/request/Main.ts
Normal file
30
src/modules/03_recruiting/interface/request/Main.ts
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
//ข้อมูล
|
||||
interface RequestItemsObject {
|
||||
id: number;
|
||||
fullname: String;
|
||||
avatar: String;
|
||||
citizenId: String;
|
||||
position: String;
|
||||
line: String;
|
||||
linePosition: String;
|
||||
level: String;
|
||||
positionFormalManage: String;
|
||||
positionManage: String;
|
||||
numberPosition: String;
|
||||
government: String;
|
||||
}
|
||||
|
||||
//columns
|
||||
interface Columns {
|
||||
[index: number]: {
|
||||
name: String;
|
||||
align: String;
|
||||
label: String;
|
||||
sortable: Boolean;
|
||||
field: String;
|
||||
headerStyle: String;
|
||||
style: String;
|
||||
};
|
||||
}
|
||||
|
||||
export type { RequestItemsObject, Columns };
|
||||
89
src/modules/03_recruiting/interface/request/Period.ts
Normal file
89
src/modules/03_recruiting/interface/request/Period.ts
Normal file
|
|
@ -0,0 +1,89 @@
|
|||
//ข้อมูล
|
||||
interface RequestPeriodExam {
|
||||
announcementDate: string;
|
||||
announcementEndDate: string;
|
||||
announcementStartDate: string;
|
||||
examDate: string;
|
||||
announcementExam: boolean;
|
||||
bankExam: RequestPayment[];
|
||||
checkDisability: boolean;
|
||||
checkDocument: boolean;
|
||||
detail: string;
|
||||
fee: number;
|
||||
id: string;
|
||||
isActive: boolean;
|
||||
name: string;
|
||||
note: string;
|
||||
organizationCodeId: string;
|
||||
organizationCodeName: string;
|
||||
organizationId: string;
|
||||
organizationName: string;
|
||||
paymentEndDate: string;
|
||||
paymentKrungThai: string;
|
||||
paymentStartDate: string;
|
||||
positionExam: RequestPosition[];
|
||||
registerEndDate: string;
|
||||
registerStartDate: string;
|
||||
round: number;
|
||||
year: number;
|
||||
category: string;
|
||||
}
|
||||
|
||||
interface RequestPeriodCompete {
|
||||
announcementEndDate: string;
|
||||
announcementStartDate: string;
|
||||
examDate: string;
|
||||
detail: string;
|
||||
fee: number;
|
||||
id: string;
|
||||
name: string;
|
||||
note: string;
|
||||
paymentEndDate: string;
|
||||
paymentStartDate: string;
|
||||
registerEndDate: string;
|
||||
registerStartDate: string;
|
||||
order: number;
|
||||
year: number;
|
||||
announcementDate: string;
|
||||
}
|
||||
|
||||
interface RequestPeriodDisable {
|
||||
announcementEndDate: string;
|
||||
announcementStartDate: string;
|
||||
examDate: string;
|
||||
detail: string;
|
||||
fee: number;
|
||||
id: string;
|
||||
name: string;
|
||||
note: string;
|
||||
paymentEndDate: string;
|
||||
paymentStartDate: string;
|
||||
registerEndDate: string;
|
||||
registerStartDate: string;
|
||||
round: number;
|
||||
year: number;
|
||||
announcementDate: string;
|
||||
}
|
||||
|
||||
interface RequestPosition {
|
||||
id: string;
|
||||
positionId: string;
|
||||
positionName: string;
|
||||
typeId: string;
|
||||
typeName: string;
|
||||
}
|
||||
|
||||
interface RequestPayment {
|
||||
id: string;
|
||||
accountNumber: string;
|
||||
bankName: string;
|
||||
accountName: string;
|
||||
}
|
||||
|
||||
export type {
|
||||
RequestPeriodExam,
|
||||
RequestPosition,
|
||||
RequestPayment,
|
||||
RequestPeriodCompete,
|
||||
RequestPeriodDisable,
|
||||
};
|
||||
12
src/modules/03_recruiting/interface/response/Career.ts
Normal file
12
src/modules/03_recruiting/interface/response/Career.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
//ข้อมูล
|
||||
interface ResponseObject {
|
||||
id: string;
|
||||
name: string;
|
||||
position: string;
|
||||
salary: number | null;
|
||||
durationStart: Date;
|
||||
durationEnd: Date;
|
||||
reason: string;
|
||||
}
|
||||
|
||||
export type { ResponseObject };
|
||||
13
src/modules/03_recruiting/interface/response/Education.ts
Normal file
13
src/modules/03_recruiting/interface/response/Education.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
//ข้อมูล
|
||||
interface ResponseObject {
|
||||
id: string;
|
||||
educationLevelId: string;
|
||||
educationLevelName: string;
|
||||
major: string;
|
||||
scores: number | null;
|
||||
name: string;
|
||||
durationStart: Date;
|
||||
durationEnd: Date;
|
||||
}
|
||||
|
||||
export type { ResponseObject };
|
||||
17
src/modules/03_recruiting/interface/response/Main.ts
Normal file
17
src/modules/03_recruiting/interface/response/Main.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
//ข้อมูล
|
||||
interface ResponseObject {
|
||||
id: number;
|
||||
fullname: String;
|
||||
avatar: String;
|
||||
citizenId: String;
|
||||
position: String;
|
||||
line: String;
|
||||
linePosition: String;
|
||||
level: String;
|
||||
positionFormalManage: String;
|
||||
positionManage: String;
|
||||
numberPosition: String;
|
||||
government: String;
|
||||
}
|
||||
|
||||
export type { ResponseObject };
|
||||
113
src/modules/03_recruiting/interface/response/Period.ts
Normal file
113
src/modules/03_recruiting/interface/response/Period.ts
Normal file
|
|
@ -0,0 +1,113 @@
|
|||
//ข้อมูล
|
||||
interface ResponseHistoryObject {
|
||||
createdAt?: Date;
|
||||
createdFullName: String;
|
||||
createdUserId: String;
|
||||
id: String;
|
||||
isActive: Boolean;
|
||||
lastUpdateFullName: String;
|
||||
lastUpdateUserId: String;
|
||||
lastUpdatedAt?: Date;
|
||||
description: String;
|
||||
}
|
||||
|
||||
interface ResponsePeriodExam {
|
||||
id: string;
|
||||
category: string;
|
||||
announcementExam: boolean;
|
||||
name: string;
|
||||
checkDocument: boolean;
|
||||
checkDisability: boolean;
|
||||
round: number;
|
||||
yearly: number;
|
||||
fee: number;
|
||||
dateAnnounce: Date;
|
||||
dateAnnouncement: [Date, Date];
|
||||
dateExam: Date;
|
||||
dateRegister: [Date, Date];
|
||||
datePayment: [Date, Date];
|
||||
organizationName: {
|
||||
id: string;
|
||||
name: string;
|
||||
};
|
||||
organizationShortName: {
|
||||
id: string;
|
||||
name: string;
|
||||
};
|
||||
positionExam: ResponsePosition[];
|
||||
pay: string;
|
||||
bankExam: ResponsePayment[];
|
||||
editor: string;
|
||||
note: string;
|
||||
}
|
||||
interface ResponsePosition {
|
||||
id: string;
|
||||
position: {
|
||||
id: string;
|
||||
name: string;
|
||||
};
|
||||
type: {
|
||||
id: string;
|
||||
name: string;
|
||||
};
|
||||
}
|
||||
interface ResponsePayment {
|
||||
id: string;
|
||||
accountNumber: string;
|
||||
bankName: string;
|
||||
accountName: string;
|
||||
}
|
||||
|
||||
interface ResponseRecruitPeriod {
|
||||
id: string;
|
||||
name: string;
|
||||
year: number;
|
||||
order: number;
|
||||
importDate: string;
|
||||
examCount: number;
|
||||
scoreImportDate: string;
|
||||
scoreCount: number;
|
||||
score: {
|
||||
ID: string;
|
||||
importYear: number;
|
||||
importDate: string;
|
||||
scoreCount: number;
|
||||
};
|
||||
}
|
||||
|
||||
interface RecruitDetailResponseHeader {
|
||||
count: number;
|
||||
pass: number;
|
||||
notpass: number;
|
||||
}
|
||||
|
||||
interface RecruitDetailResponse {
|
||||
examID: string;
|
||||
profileID: string;
|
||||
prefix: string;
|
||||
fullName: string;
|
||||
dateOfBirth: string;
|
||||
gender: string;
|
||||
major: string;
|
||||
degree: string;
|
||||
applyDate: string;
|
||||
certificateIssueDate: string;
|
||||
certificateNo: string;
|
||||
examAttribute: string;
|
||||
examScore: string;
|
||||
examResult: string;
|
||||
personName: string;
|
||||
exam_name: string;
|
||||
exam_order: string;
|
||||
score_year: string;
|
||||
}
|
||||
|
||||
export type {
|
||||
ResponsePeriodExam,
|
||||
ResponsePosition,
|
||||
ResponsePayment,
|
||||
ResponseRecruitPeriod,
|
||||
RecruitDetailResponseHeader,
|
||||
RecruitDetailResponse,
|
||||
ResponseHistoryObject,
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue