clone code
This commit is contained in:
parent
c9597d1e38
commit
d57bcd1719
362 changed files with 104804 additions and 0 deletions
89
src/modules/02_organizational/interface/index/Main.ts
Normal file
89
src/modules/02_organizational/interface/index/Main.ts
Normal file
|
|
@ -0,0 +1,89 @@
|
|||
import { readonly } from "vue";
|
||||
interface Pagination {
|
||||
rowsPerPage: number;
|
||||
}
|
||||
|
||||
interface DataOption {
|
||||
id: string;
|
||||
name: string;
|
||||
note?: string;
|
||||
}
|
||||
|
||||
interface GovermentOption {
|
||||
id: string;
|
||||
shortName: string;
|
||||
agencyCode: string;
|
||||
governmentCode: string;
|
||||
}
|
||||
|
||||
interface OrganizaOption {
|
||||
organizationOrganizationId: string; // หน่วยงาน
|
||||
organizationShortNameId: string; // Idย่อหน่วยงาน
|
||||
organizationShortName: string; // ชื่อย่อหน่วยงาน
|
||||
organizationAgencyCode: string; // รหัสหน่วยงาน
|
||||
organizationGovernmentCode: string; // รหัสส่วนราชการ
|
||||
organizationAgencyId: string; // หน่วยงานต้นสังกัด
|
||||
organizationGovernmentAgencyId: string; // ส่วนราชการต้นสังกัด
|
||||
organizationTypeId: string; // ประเภทหน่วยงาน
|
||||
organizationLevelId: string; //ระดับหน่วยงาน
|
||||
organizationInternalPhoneId: string; //เบอร์ติดต่อภายใน
|
||||
organizationExternalPhoneId: string; //เบอร์ติดต่อภายนอก
|
||||
organizationFaxId: string; //เบอร์โทรสาร
|
||||
organizationOrder: Number; // ลำดับผังโครงสร้าง
|
||||
organizationUserNote: string; // User Note
|
||||
organizationStatusId: string; //status
|
||||
organizationGovernmentCodeOption: GovermentOption[];
|
||||
organizationGovernmentCodeOptionFilter: GovermentOption[];
|
||||
agency: string; // หน่วยงาน
|
||||
government: string; // ส่วนราชการ
|
||||
department: string; // ฝ่าย/ส่วน
|
||||
pile: string; // กอง
|
||||
// organizationAgencyCodeOption: GovermentOption[];
|
||||
// organizationAgencyCodeOptionFilter: GovermentOption[];
|
||||
}
|
||||
|
||||
// const organizationSet = readonly<OrganizaOption>({
|
||||
// organizationOrganizationId: "", // หน่วยงาน
|
||||
// organizationShortNameId: "", // รหัสส่วนราชการ
|
||||
// organizationShortName: "", // ชื่อย่อหน่วยงาน
|
||||
// organizationShortCode: "", // รหัสหน่วยงาน
|
||||
// organizationAgencyId: "", // หน่วยงานต้นสังกัด
|
||||
// organizationGovernmentAgencyId: "", // ส่วนราชการต้นสังกัด
|
||||
// organizationTypeId: "", // ประเภทหน่วยงาน
|
||||
// organizationLevelId: "", //ระดับหน่วยงาน
|
||||
// organizationInternalPhoneId: "", //เบอร์ติดต่อภายใน
|
||||
// organizationExternalPhoneId: "", //เบอร์ติดต่อภายนอก
|
||||
// organizationFaxId: "", //เบอร์โทรสาร
|
||||
// organizationOrder: 0, // ลำดับผังโครงสร้าง
|
||||
// organizationUserNote: "", // User Note
|
||||
// });
|
||||
|
||||
interface UploadType {
|
||||
id: string;
|
||||
fileName: string;
|
||||
fileSize: number;
|
||||
fileType: string;
|
||||
detail: string;
|
||||
}
|
||||
|
||||
interface Columns {
|
||||
[index: number]: {
|
||||
name: String;
|
||||
align: String;
|
||||
label: String;
|
||||
sortable: Boolean;
|
||||
field: String;
|
||||
headerStyle: String;
|
||||
style: String;
|
||||
};
|
||||
}
|
||||
|
||||
// export { organizationSet };
|
||||
export type {
|
||||
Pagination,
|
||||
DataOption,
|
||||
OrganizaOption,
|
||||
GovermentOption,
|
||||
UploadType,
|
||||
Columns,
|
||||
};
|
||||
68
src/modules/02_organizational/interface/request/Mapping.ts
Normal file
68
src/modules/02_organizational/interface/request/Mapping.ts
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
//ข้อมูลประวัติแก้ไข
|
||||
interface RequestItemsPublishHistoryObject {
|
||||
id: string;
|
||||
items: RequestItemsObject[];
|
||||
publishedDate: string;
|
||||
}
|
||||
|
||||
//ข้อมูล
|
||||
interface RequestItemsObject {
|
||||
id: string;
|
||||
positionMasterId: string; //ประเภท
|
||||
positionType: string; //ประเภท
|
||||
positionLine: string; //สายงาน
|
||||
positionPath: string; //ตำแหน่งในสายงาน
|
||||
positionPathSide: string; //ด้านของสายงาน
|
||||
positionExecutive: string; //ตำแหน่งบริหาร
|
||||
positionExecutiveSide: string; //ด้านบริหาร
|
||||
positionLevel: any; //ระดับ array text
|
||||
positionStatus: string; //สถานภาพของตำแหน่ง
|
||||
positionTypeId: string;
|
||||
positionLineId: string;
|
||||
positionPathId: string;
|
||||
positionPathSideId: string;
|
||||
positionExecutiveId: string;
|
||||
positionExecutiveSideId: string;
|
||||
positionStatusId: string; //สถานภาพของตำแหน่ง ไม่แน่ใจ DB
|
||||
positionCondition: string; //เงื่อนไขตำแหน่ง
|
||||
positionMasterUserNote: string; //หมายเหตุ
|
||||
positionLevelId: any; //ระดับ array id
|
||||
isDirector: boolean; //หัวหน้า
|
||||
isActive: boolean;
|
||||
isPublished?: boolean;
|
||||
lastUpdateFullName?: String;
|
||||
lastUpdatedAt?: Date;
|
||||
}
|
||||
|
||||
//columns
|
||||
interface Columns {
|
||||
[index: number]: {
|
||||
name: String;
|
||||
align: String;
|
||||
label: String;
|
||||
sortable: Boolean;
|
||||
field: String;
|
||||
headerStyle: String;
|
||||
style: String;
|
||||
};
|
||||
}
|
||||
|
||||
interface RequestReport2 {
|
||||
organizationShortNameId: string;
|
||||
organizationOrganizationId: string;
|
||||
positionNumId: string;
|
||||
positionTypeId: string;
|
||||
positionExecutiveId: string;
|
||||
positionExecutiveSideId: string;
|
||||
positionPathId: string;
|
||||
positionPathSideId: string;
|
||||
positionLevelId: string;
|
||||
status: string | null;
|
||||
}
|
||||
|
||||
export type {
|
||||
RequestItemsObject,
|
||||
RequestItemsPublishHistoryObject,
|
||||
Columns,
|
||||
RequestReport2,
|
||||
};
|
||||
103
src/modules/02_organizational/interface/response/Mapping.ts
Normal file
103
src/modules/02_organizational/interface/response/Mapping.ts
Normal file
|
|
@ -0,0 +1,103 @@
|
|||
//ข้อมูล
|
||||
interface ResponseObject {
|
||||
id: string;
|
||||
positionType: string;
|
||||
positionLine: string;
|
||||
positionPath: string;
|
||||
positionPathSide: string;
|
||||
positionExecutive: string;
|
||||
positionExecutiveSide: string;
|
||||
positionLevel: any;
|
||||
positionTypeId: string;
|
||||
positionLineId: string;
|
||||
positionPathId: string;
|
||||
positionPathSideId: string;
|
||||
positionExecutiveId: string;
|
||||
positionExecutiveSideId: string;
|
||||
positionStatus: string;
|
||||
titleStatus: string;
|
||||
positionLevelId: any;
|
||||
owner: boolean;
|
||||
isActive: boolean;
|
||||
}
|
||||
|
||||
interface ResponseTree {
|
||||
no: number;
|
||||
profilePositionId: string | null;
|
||||
name: string | null;
|
||||
edu: string | null;
|
||||
posiNumOld: string | null;
|
||||
posiNumNew: string | null;
|
||||
posiOld: string | null;
|
||||
posiNew: string | null;
|
||||
levelOld: string | null;
|
||||
levelNew: string | null;
|
||||
change: string | null;
|
||||
statusPosition: Boolean;
|
||||
report2Id: string | null;
|
||||
}
|
||||
|
||||
interface ResponseDetail {
|
||||
report2Id: string;
|
||||
name: string;
|
||||
edu: string;
|
||||
salary: number;
|
||||
salary2: number;
|
||||
salary3: number;
|
||||
goverment: string;
|
||||
agency: string;
|
||||
posiNum: string;
|
||||
category: string;
|
||||
posiManage: string;
|
||||
sideManage: string;
|
||||
posiWork: string;
|
||||
sideWork: string;
|
||||
level: string;
|
||||
goverment2: string;
|
||||
agency2: string;
|
||||
posiNum2: string;
|
||||
category2: string;
|
||||
posiManage2: string;
|
||||
sideManage2: string;
|
||||
posiWork2: string;
|
||||
sideWork2: string;
|
||||
level2: string;
|
||||
}
|
||||
|
||||
interface ResponseHistoryHead {
|
||||
historyId: string;
|
||||
date: Date;
|
||||
}
|
||||
interface ResponseHistory {
|
||||
fullName: string;
|
||||
education: string;
|
||||
salary: number;
|
||||
salaryPosition: number;
|
||||
salaryMonth: number;
|
||||
oldOrganizationShortName: string;
|
||||
oldOrganizationOrganization: string;
|
||||
oldPositionNum: string;
|
||||
oldPositionType: string;
|
||||
oldPositionExecutive: string;
|
||||
oldPositionExecutiveSide: string;
|
||||
oldPositionPath: string;
|
||||
oldPositionPathSide: string;
|
||||
oldPositionLevel: string;
|
||||
newOrganizationShortName: string;
|
||||
newOrganizationOrganization: string;
|
||||
newPositionNum: string;
|
||||
newPositionType: string;
|
||||
newPositionExecutive: string;
|
||||
newPositionExecutiveSide: string;
|
||||
newPositionPath: string;
|
||||
newPositionPathSide: string;
|
||||
newPositionLevel: string;
|
||||
}
|
||||
|
||||
export type {
|
||||
ResponseObject,
|
||||
ResponseTree,
|
||||
ResponseDetail,
|
||||
ResponseHistory,
|
||||
ResponseHistoryHead,
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue