clone code
This commit is contained in:
parent
c9597d1e38
commit
d57bcd1719
362 changed files with 104804 additions and 0 deletions
14
src/api/02_organizational/api.chart.ts
Normal file
14
src/api/02_organizational/api.chart.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/**
|
||||
* API Structure + Org Chart
|
||||
*/
|
||||
import env from "../index"
|
||||
|
||||
const treeRoot = `${env.API_URI}/Organization/treeroot`
|
||||
const structChart = `${env.API_URI}/Organization/struct-chart/`
|
||||
const orgChart = `${env.API_URI}/Organization/org-chart/`
|
||||
|
||||
export default {
|
||||
chartGetTreeRoot: `${treeRoot}`,
|
||||
chartGetStructure: (id: string) => `${structChart}${id}`,
|
||||
chartGetOrg: (id: string) => `${orgChart}${id}`
|
||||
}
|
||||
80
src/api/02_organizational/api.treelist.ts
Normal file
80
src/api/02_organizational/api.treelist.ts
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
/**
|
||||
* api ระบบจัดการ Tree
|
||||
*
|
||||
*/
|
||||
import env from "../index";
|
||||
//Dropdown เพิ่มโครงร้างหน่วยงาน
|
||||
// const organizationAgency = `${env.API_URI_ORG_SERVICE}/organization-agency/`;
|
||||
// const organizationGovernmentAgency = `${env.API_URI_ORG_SERVICE}/organization-government-agency/`;
|
||||
// const organizationPath = `${env.API_URI}/Organization/tree`;
|
||||
const organizationPath = `${env.API_URI_ORG_SERVICE}/Organization/`;
|
||||
const postionMasterPath = `${env.API_URI_ORG_SERVICE}/PositionMaster`;
|
||||
const organizationPosition = `${env.API_URI_ORG_SERVICE}/OrganizationPosition/`;
|
||||
|
||||
const report = `${env.API_URI}/report/organization/`;
|
||||
|
||||
export default {
|
||||
getOCType: `${report}oc-type`,
|
||||
getReportAccount1: (id: string) => `${report}account1/${id}`,
|
||||
getReportAccount2: (id: string) => `${report}account2/${id}`,
|
||||
getReportAccount3: (id: string) => `${report}account3/${id}`,
|
||||
|
||||
/**api หน่วยงานต้นสังกัด/ส่วนราชการต้นสังกัด
|
||||
* @param organizationType หน่วยงาน หรือ ส่วนราชการ
|
||||
* @returns organizationId and organizationName
|
||||
*/
|
||||
listOrganizationAgency: (organizationType: string) =>
|
||||
`${organizationPath}type/${organizationType}`,
|
||||
|
||||
/**api Tree
|
||||
*
|
||||
*/
|
||||
// treeList: `${organizationPath}`,
|
||||
getTreeRoot: `${organizationPath}treeroot`,
|
||||
getDraftTreeRoot: `${organizationPath}history/treeroot`,
|
||||
getTreeHistory: `${organizationPath}publish-history`,
|
||||
getTreeNode: (organizationId: string, keyId: string) =>
|
||||
`${organizationPath}tree?organizationId=${organizationId}&keyId=${keyId}`,
|
||||
getDraftTreeNode: (organizationId: string, keyId: string) =>
|
||||
`${organizationPath}history/tree?organizationId=${organizationId}&keyId=${keyId}`,
|
||||
addTreeDraft: `${organizationPosition}history`,
|
||||
editTreeOrgDraft: (organizationId: string) =>
|
||||
`${organizationPath}history/${organizationId}`,
|
||||
getOrgDraft: (organizationId: string) =>
|
||||
`${organizationPath}history/${organizationId}`,
|
||||
// /api/v1/Organization/history?organizationPositionId=65ab2ddc-b9d2-4422-83d4-b90dd8191b6f
|
||||
delTreeOrgDraft: (organizationId: string) =>
|
||||
`${organizationPath}history?organizationPositionId=${organizationId}`,
|
||||
getPostionMasterDraft: (showAll: boolean) =>
|
||||
`${postionMasterPath}/history?showall=${showAll}`,
|
||||
getPostionMaster: (showAll: boolean) =>
|
||||
`${postionMasterPath}?showall=${showAll}`,
|
||||
editTreePositionDraft: (organizationPositionId: string) =>
|
||||
`${organizationPosition}history?organizationPositionId=${organizationPositionId}`,
|
||||
// /api/v1/OrganizationPosition/history?organizationPositionId=15ec8c2b-796f-4fad-b731-667a232e723e
|
||||
delTreePositionDraft: (organizationPositionId: string) =>
|
||||
`${organizationPosition}history/${organizationPositionId}`,
|
||||
|
||||
//PUT /api/v1/OrganizationPosition/history/publish
|
||||
publishOrgPoDraft: `${organizationPosition}history/publish`,
|
||||
//PUT /api/v1/OrganizationPosition/history/sync
|
||||
delTreeOrgPoDraft: `${organizationPosition}history/sync`,
|
||||
isOrgPohasDraft: `${organizationPosition}history/has-draft`,
|
||||
isOrghasDraft: `${organizationPath}history/has-draft`,
|
||||
|
||||
/**
|
||||
* api จัดการตำแหน่ง
|
||||
*/
|
||||
getPositionMaster: `${postionMasterPath}/history`,
|
||||
getPositionMasterId: (id: string) => `${postionMasterPath}/history/${id}`,
|
||||
getPositionMasterPublish: `${postionMasterPath}/history/publish`,
|
||||
getPositionMasterSync: `${postionMasterPath}/history/sync`,
|
||||
getPositionMasterHistoryId: (id: string) =>
|
||||
`${postionMasterPath}/history/publish/${id}`,
|
||||
|
||||
getPositionMasterPositionNumber: `${postionMasterPath}/position-number`,
|
||||
getPositionMasterPositionNumberId: (id: string) =>
|
||||
`${postionMasterPath}/position-number/${id}`,
|
||||
getPositionNumberIdByOcId: (OcId: string) =>
|
||||
`${postionMasterPath}/position-number/Oc/${OcId}`,
|
||||
};
|
||||
6
src/api/05_placement/api.placement.ts
Normal file
6
src/api/05_placement/api.placement.ts
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
/**
|
||||
* api บรรจุ แต่งตั้ง ย้าย โอน
|
||||
*/
|
||||
import env from "../index";
|
||||
|
||||
export default {};
|
||||
6
src/api/06_retirement/api.retirement.ts
Normal file
6
src/api/06_retirement/api.retirement.ts
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
/**
|
||||
* api พ้นจากราชการ
|
||||
*/
|
||||
import env from "../index";
|
||||
|
||||
export default {};
|
||||
6
src/api/07_insignia/api.insignia.ts
Normal file
6
src/api/07_insignia/api.insignia.ts
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
/**
|
||||
* api เครื่องราชอิสริยาภรณ์
|
||||
*/
|
||||
import env from "../index";
|
||||
|
||||
export default {};
|
||||
62
src/api/index.ts
Normal file
62
src/api/index.ts
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
/**config api */
|
||||
import { ref } from "vue";
|
||||
|
||||
const env = ref<string>(process.env.NODE_ENV || "development");
|
||||
// if (process.env.VUE_APP_TEST) {
|
||||
// env = "test";
|
||||
// }
|
||||
|
||||
const config = ref<any>({
|
||||
development: {
|
||||
// API_URI: "https://localhost:7006/api/v1",
|
||||
API_URI: "https://bma-ehr.frappet.synology.me/api/v1",
|
||||
// API_URI_ORG_SERVICE: "https://localhost:7056/api/v1", //ใช้ชั่วคราว
|
||||
API_URI_ORG_SERVICE: "https://bma-ehr.frappet.synology.me/api/v1", //ใช้ชั่วคราว
|
||||
// API_URI_PROFILE_SERVICE: "https://localhost:7159/api/v1",
|
||||
API_URI_PROFILE_SERVICE: "https://bma-ehr.frappet.synology.me/api/v1", //ใช้ชั่วคราว
|
||||
// API_CANDIDATE_URI: "https://localhost:7007/api/v1",
|
||||
API_CANDIDATE_URI: "https://bma-ehr.frappet.synology.me/api/v1",
|
||||
// API_REPORT_URI: "https://localhost:7187/api/v1",
|
||||
API_REPORT_URI: "https://bma-ehr.frappet.synology.me/api/v1",
|
||||
MEET_URI: "meet.frappet.com",
|
||||
},
|
||||
test: {
|
||||
API_URI: "http://localhost:5010/api/v1",
|
||||
API_CANDIDATE_URI: "https://localhost:7007/api/v1",
|
||||
API_REPORT_URI: "https://localhost:7007/api/v1",
|
||||
MEET_URI: "meet.frappet.com",
|
||||
},
|
||||
production: {
|
||||
// API_URI: "https://localhost:5010",
|
||||
API_URI: `${window.location.protocol}//${window.location.host}/api/v1`,
|
||||
API_URI_ORG_SERVICE: `${window.location.protocol}//${window.location.host}/api/v1`, //ใช้ชั่วคราว
|
||||
API_URI_PROFILE_SERVICE: `${window.location.protocol}//${window.location.host}/api/v1`,
|
||||
API_CANDIDATE_URI: `${window.location.protocol}//${window.location.host}/api/v1`,
|
||||
API_REPORT_URI: `${window.location.protocol}//${window.location.host}/api/v1`,
|
||||
MEET_URI: "meet.frappet.com",
|
||||
},
|
||||
});
|
||||
|
||||
const API_URI = ref<string>(config.value[env.value].API_URI);
|
||||
const API_CANDIDATE_URI = ref<string>(
|
||||
config.value[env.value].API_CANDIDATE_URI
|
||||
);
|
||||
const API_REPORT_URI = ref<string>(config.value[env.value].API_REPORT_URI);
|
||||
const API_URI_ORG_SERVICE = ref<string>(
|
||||
config.value[env.value].API_URI_ORG_SERVICE
|
||||
);
|
||||
const MEET_URI = ref<string>(config.value[env.value].MEET_URI);
|
||||
const API_URI_PROFILE_SERVICE = ref<string>(
|
||||
config.value[env.value].API_URI_PROFILE_SERVICE
|
||||
);
|
||||
|
||||
export default {
|
||||
env: env.value,
|
||||
config: config.value,
|
||||
API_URI: API_URI.value,
|
||||
API_CANDIDATE_URI: API_CANDIDATE_URI.value,
|
||||
API_REPORT_URI: API_REPORT_URI.value,
|
||||
API_URI_ORG_SERVICE: API_URI_ORG_SERVICE.value,
|
||||
API_URI_PROFILE_SERVICE: API_URI_PROFILE_SERVICE.value,
|
||||
MEET_URI: MEET_URI.value,
|
||||
};
|
||||
23
src/api/manage/api.holiday.ts
Normal file
23
src/api/manage/api.holiday.ts
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/**
|
||||
* api ระบบจัดการข้อมูลหลัก
|
||||
* เมนูย่อย: ปฏิทินวันหยุด
|
||||
*/
|
||||
import env from "../index";
|
||||
const holiday = `${env.API_URI}/metadata/holiday/`;
|
||||
|
||||
export default {
|
||||
/**
|
||||
* api ชั้นเครื่องราชฯ
|
||||
*/
|
||||
listHolidayHistoryAdd: (category: string) =>
|
||||
`${holiday}range/add/${category}`,
|
||||
listHolidayHistoryEdit: (category: string) =>
|
||||
`${holiday}range/edit/${category}`,
|
||||
listHolidayHistoryDelete: (category: string) =>
|
||||
`${holiday}range/delete/${category}`,
|
||||
listHolidayHistoryYear: (year: number) => `${holiday}${year}`,
|
||||
listHolidayHistoryYearMonth: (year: number, month: number) =>
|
||||
`${holiday}${year}/${month}`,
|
||||
listHolidayCopy: `${holiday}copy`,
|
||||
summaryHolidayHistoryYear: (year: number) => `${holiday}summary/${year}`,
|
||||
};
|
||||
35
src/api/manage/api.insignia.ts
Normal file
35
src/api/manage/api.insignia.ts
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
/**
|
||||
* api ระบบจัดการข้อมูลหลัก
|
||||
* เมนูย่อย: ข้อมูลเครื่องราชอิสริยาภรณ์
|
||||
*/
|
||||
import env from "../index";
|
||||
const insignia = `${env.API_URI}/metadata/insignia/`;
|
||||
const insigniaType = `${env.API_URI}/metadata/insignia-type/`;
|
||||
|
||||
export default {
|
||||
/**
|
||||
* api ชั้นเครื่องราชฯ
|
||||
*/
|
||||
insignia,
|
||||
listInsigniaHistory: `${insignia}history`,
|
||||
listInsigniaHistoryId: (id: string) => `${insignia}history/${id}`,
|
||||
listInsigniaPublished: `${insignia}history/published`,
|
||||
listInsigniaPublishedHistory: `${insignia}history/published-history`,
|
||||
|
||||
/**
|
||||
* api ประเภท
|
||||
*/
|
||||
insigniaType,
|
||||
listInsigniaTypeHistory: `${insigniaType}history`,
|
||||
listInsigniaTypeHistoryId: (id: string) => `${insigniaType}history/${id}`,
|
||||
listInsigniaTypePublished: `${insigniaType}history/published`,
|
||||
listInsigniaTypePublishedHistory: `${insigniaType}history/published-history`,
|
||||
|
||||
/**
|
||||
* api เหรียญตรา
|
||||
*/
|
||||
// listInsigniaHistory: `${insignia}history`,
|
||||
// listInsigniaHistoryId: (id: string) => `${insignia}history/${id}`,
|
||||
// listInsigniaPublished: `${insignia}history/published`,
|
||||
// listInsigniaPublishedHistory: `${insignia}history/published-history`,
|
||||
};
|
||||
130
src/api/manage/api.organization.ts
Normal file
130
src/api/manage/api.organization.ts
Normal file
|
|
@ -0,0 +1,130 @@
|
|||
/**
|
||||
* api ระบบจัดการข้อมูลหลัก
|
||||
* เมนูย่อย: ข้อมูลโครงสร้างหน่วยงาน
|
||||
*/
|
||||
import env from "../index"
|
||||
const organization = `${env.API_URI}/metadata/organization/`
|
||||
const organizationOrganization = `${env.API_URI}/metadata/organization-organization/`
|
||||
const organizationShortName = `${env.API_URI}/metadata/organization-shortname/`
|
||||
const organizationCode = `${env.API_URI_ORG_SERVICE}/PositionMaster/`
|
||||
const organizationType = `${env.API_URI}/metadata/organization-type/`
|
||||
const organizationLevel = `${env.API_URI}/metadata/organization-level/`
|
||||
const organizationStatus = `${env.API_URI}/metadata/organization-status/`
|
||||
const organizationAgency = `${env.API_URI}/metadata/organization-agency/`
|
||||
const organizationGovernmentAgency = `${env.API_URI}/metadata/organization-government-agency/`
|
||||
const organizationTelExternal = `${env.API_URI}/metadata/organization-tel-external/`
|
||||
const organizationTelInternal = `${env.API_URI}/metadata/organization-tel-internal/`
|
||||
const organizationFax = `${env.API_URI}/metadata/organization-fax/`
|
||||
const dashbord = `${env.API_URI}/metadata/dashbord/`
|
||||
|
||||
export default {
|
||||
/**
|
||||
* api จำนวนข้อมูลใน ระบบจัดการข้อมูลหลัก tab ย่อยแต่ละ tab
|
||||
*/
|
||||
organization,
|
||||
countDashbordSubHistory: (type: number) => `${dashbord}${type}`,
|
||||
countDashbordHistory: `${dashbord}`,
|
||||
|
||||
/**
|
||||
* api หน่วยงาน
|
||||
*/
|
||||
listOrganizationOrganizationHistory: `${organizationOrganization}history`,
|
||||
listOrganizationOrganizationHistoryId: (id: string) =>
|
||||
`${organizationOrganization}history/${id}`,
|
||||
listOrganizationOrganizationPublished: `${organizationOrganization}history/published`,
|
||||
listOrganizationOrganizationPublishedHistory: `${organizationOrganization}history/published-history`,
|
||||
|
||||
/**
|
||||
* api ชื่อย่อหน่วยงาน
|
||||
*/
|
||||
organizationShortName,
|
||||
listOrganizationShortNameHistory: `${organizationShortName}history`,
|
||||
listOrganizationShortNameHistoryId: (id: string) =>
|
||||
`${organizationShortName}history/${id}`,
|
||||
listOrganizationShortNamePublished: `${organizationShortName}history/published`,
|
||||
listOrganizationShortNamePublishedHistory: `${organizationShortName}history/published-history`,
|
||||
organizationCode: `${organizationCode}organization-code`,
|
||||
organizationGovernmentCode: (id: string) =>
|
||||
`${organizationCode}government/${id}`,
|
||||
organizationAgencyCode: (id: string) => `${organizationCode}agency/${id}`,
|
||||
|
||||
/**
|
||||
* api ประเภท
|
||||
*/
|
||||
organizationType,
|
||||
listOrganizationTypeHistory: `${organizationType}history`,
|
||||
listOrganizationTypeHistoryId: (id: string) =>
|
||||
`${organizationType}history/${id}`,
|
||||
listOrganizationTypePublished: `${organizationType}history/published`,
|
||||
listOrganizationTypePublishedHistory: `${organizationType}history/published-history`,
|
||||
|
||||
/**
|
||||
* api ระดับ
|
||||
*/
|
||||
organizationLevel,
|
||||
listOrganizationLevelHistory: `${organizationLevel}history`,
|
||||
listOrganizationLevelHistoryId: (id: string) =>
|
||||
`${organizationLevel}history/${id}`,
|
||||
listOrganizationLevelPublished: `${organizationLevel}history/published`,
|
||||
listOrganizationLevelPublishedHistory: `${organizationLevel}history/published-history`,
|
||||
|
||||
/**
|
||||
* api สถานะ
|
||||
*/
|
||||
organizationStatus,
|
||||
listOrganizationStatusHistory: `${organizationStatus}history`,
|
||||
listOrganizationStatusHistoryId: (id: string) =>
|
||||
`${organizationStatus}history/${id}`,
|
||||
listOrganizationStatusPublished: `${organizationStatus}history/published`,
|
||||
listOrganizationStatusPublishedHistory: `${organizationStatus}history/published-history`,
|
||||
|
||||
/**
|
||||
* api หน่วยงานต้นสังกัด
|
||||
*/
|
||||
organizationAgency,
|
||||
listOrganizationAgencyHistory: `${organizationAgency}history`,
|
||||
listOrganizationAgencyHistoryId: (id: string) =>
|
||||
`${organizationAgency}history/${id}`,
|
||||
listOrganizationAgencyPublished: `${organizationAgency}history/published`,
|
||||
listOrganizationAgencyPublishedHistory: `${organizationAgency}history/published-history`,
|
||||
|
||||
/**
|
||||
* api ส่วนราชการต้นสังกัด
|
||||
*/
|
||||
organizationGovernmentAgency,
|
||||
listOrganizationGovernmentAgencyHistory: `${organizationGovernmentAgency}history`,
|
||||
listOrganizationGovernmentAgencyHistoryId: (id: string) =>
|
||||
`${organizationGovernmentAgency}history/${id}`,
|
||||
listOrganizationGovernmentAgencyPublished: `${organizationGovernmentAgency}history/published`,
|
||||
listOrganizationGovernmentAgencyPublishedHistory: `${organizationGovernmentAgency}history/published-history`,
|
||||
|
||||
/**
|
||||
* api เบอร์ติดต่อภายนอก
|
||||
*/
|
||||
organizationTelExternal,
|
||||
listOrganizationTelExternalHistory: `${organizationTelExternal}history`,
|
||||
listOrganizationTelExternalHistoryId: (id: string) =>
|
||||
`${organizationTelExternal}history/${id}`,
|
||||
listOrganizationTelExternalPublished: `${organizationTelExternal}history/published`,
|
||||
listOrganizationTelExternalPublishedHistory: `${organizationTelExternal}history/published-history`,
|
||||
|
||||
/**
|
||||
* api เบอร์ติดต่อภายใน
|
||||
*/
|
||||
organizationTelInternal,
|
||||
listOrganizationTelInternalHistory: `${organizationTelInternal}history`,
|
||||
listOrganizationTelInternalHistoryId: (id: string) =>
|
||||
`${organizationTelInternal}history/${id}`,
|
||||
listOrganizationTelInternalPublished: `${organizationTelInternal}history/published`,
|
||||
listOrganizationTelInternalPublishedHistory: `${organizationTelInternal}history/published-history`,
|
||||
|
||||
/**
|
||||
* api เบอร์โทรสาร
|
||||
*/
|
||||
organizationFax,
|
||||
listOrganizationFaxHistory: `${organizationFax}history`,
|
||||
listOrganizationFaxHistoryId: (id: string) =>
|
||||
`${organizationFax}history/${id}`,
|
||||
listOrganizationFaxPublished: `${organizationFax}history/published`,
|
||||
listOrganizationFaxPublishedHistory: `${organizationFax}history/published-history`,
|
||||
}
|
||||
108
src/api/manage/api.person.ts
Normal file
108
src/api/manage/api.person.ts
Normal file
|
|
@ -0,0 +1,108 @@
|
|||
/**
|
||||
* api ระบบจัดการข้อมูลหลัก
|
||||
* เมนูย่อย: ข้อมูลเกี่ยวกับบุคคล
|
||||
*/
|
||||
import env from "../index";
|
||||
const person = `${env.API_URI}/metadata/main/`;
|
||||
const province = `${env.API_URI}/metadata/province/`;
|
||||
const district = `${env.API_URI}/metadata/district/`;
|
||||
const subDistrict = `${env.API_URI}/metadata/sub-district/`;
|
||||
const prefix = `${env.API_URI}/metadata/prefix/`;
|
||||
const bloodGroup = `${env.API_URI}/metadata/blood-group/`;
|
||||
const educationLevel = `${env.API_URI}/metadata/education-level/`;
|
||||
const gender = `${env.API_URI}/metadata/gender/`;
|
||||
const relationship = `${env.API_URI}/metadata/relationship/`;
|
||||
const religion = `${env.API_URI}/metadata/religion/`;
|
||||
|
||||
export default {
|
||||
person: `${person}person`,
|
||||
|
||||
/**
|
||||
* api จังหวัด
|
||||
*/
|
||||
province,
|
||||
listProvinceHistory: `${province}history`,
|
||||
listProvinceHistoryId: (id: string) => `${province}history/${id}`,
|
||||
listProvincePublished: `${province}history/published`,
|
||||
listProvincePublishedHistory: `${province}history/published-history`,
|
||||
|
||||
/**
|
||||
* api เขต
|
||||
*/
|
||||
listDistrict: (id: string) => `${district}${id}`,
|
||||
listDistrictHistory: `${district}history`,
|
||||
listDistrictHistoryId: (id: string | string[]) => `${district}history/${id}`,
|
||||
listDistrictPublishedId: (id: string) => `${district}history/published/${id}`,
|
||||
listDistrictPublishedHistory: (id: string | string[]) =>
|
||||
`${district}history/published-history/${id}`,
|
||||
|
||||
/**
|
||||
* api แขวง
|
||||
*/
|
||||
listSubDistrict: (id: string) => `${subDistrict}${id}`,
|
||||
listSubDistrictHistory: `${subDistrict}history`,
|
||||
listSubDistrictHistoryProvinceId: (
|
||||
provinceId: string | string[],
|
||||
district: string | string[]
|
||||
) => `${subDistrict}history/${provinceId}/${district}`,
|
||||
listSubDistrictHistoryId: (id: string | string[]) =>
|
||||
`${subDistrict}history/${id}`,
|
||||
listSubDistrictPublishedId: (id: string) =>
|
||||
`${subDistrict}history/published/${id}`,
|
||||
listSubDistrictPublishedHistory: (id: string | string[]) =>
|
||||
`${subDistrict}history/published-history/${id}`,
|
||||
|
||||
/**
|
||||
* api คำนำหน้า
|
||||
*/
|
||||
prefix,
|
||||
listPrefixHistory: `${prefix}history`,
|
||||
listPrefixHistoryId: (id: string) => `${prefix}history/${id}`,
|
||||
listPrefixPublished: `${prefix}history/published`,
|
||||
listPrefixPublishedHistory: `${prefix}history/published-history`,
|
||||
|
||||
/**
|
||||
* api เพศ
|
||||
*/
|
||||
gender,
|
||||
listGenderHistory: `${gender}history`,
|
||||
listGenderHistoryId: (id: string) => `${gender}history/${id}`,
|
||||
listGenderPublished: `${gender}history/published`,
|
||||
listGenderPublishedHistory: `${gender}history/published-history`,
|
||||
|
||||
/**
|
||||
* api สถานภาพ
|
||||
*/
|
||||
relationship,
|
||||
listRelationshipHistory: `${relationship}history`,
|
||||
listRelationshipHistoryId: (id: string) => `${relationship}history/${id}`,
|
||||
listRelationshipPublished: `${relationship}history/published`,
|
||||
listRelationshipPublishedHistory: `${relationship}history/published-history`,
|
||||
|
||||
/**
|
||||
* api กลุ่มเลือด
|
||||
*/
|
||||
bloodGroup,
|
||||
listBloodGroupHistory: `${bloodGroup}history`,
|
||||
listBloodGroupHistoryId: (id: string) => `${bloodGroup}history/${id}`,
|
||||
listBloodGroupPublished: `${bloodGroup}history/published`,
|
||||
listBloodGroupPublishedHistory: `${bloodGroup}history/published-history`,
|
||||
|
||||
/**
|
||||
* api ศาสนา
|
||||
*/
|
||||
religion,
|
||||
listReligionHistory: `${religion}history`,
|
||||
listReligionHistoryId: (id: string) => `${religion}history/${id}`,
|
||||
listReligionPublished: `${religion}history/published`,
|
||||
listReligionPublishedHistory: `${religion}history/published-history`,
|
||||
|
||||
/**
|
||||
* api ระดับการศึกษา
|
||||
*/
|
||||
educationLevel,
|
||||
listEducationLevelHistory: `${educationLevel}history`,
|
||||
listEducationLevelHistoryId: (id: string) => `${educationLevel}history/${id}`,
|
||||
listEducationLevelPublished: `${educationLevel}history/published`,
|
||||
listEducationLevelPublishedHistory: `${educationLevel}history/published-history`,
|
||||
};
|
||||
98
src/api/manage/api.position.ts
Normal file
98
src/api/manage/api.position.ts
Normal file
|
|
@ -0,0 +1,98 @@
|
|||
/**
|
||||
* api ระบบจัดการข้อมูลหลัก
|
||||
* เมนูย่อย: ข้อมูลตำแหน่งของข้าราชการกรุงเทพมหานคร
|
||||
*/
|
||||
import env from "../index";
|
||||
const position = `${env.API_URI}/metadata/main/`;
|
||||
const positionExecutiveSide = `${env.API_URI}/metadata/position-executive-side/`;
|
||||
const positionLevel = `${env.API_URI}/metadata/position-level/`;
|
||||
const positionPath = `${env.API_URI}/metadata/position-path/`;
|
||||
const positionSide = `${env.API_URI}/metadata/position-path-side/`;
|
||||
const positionType = `${env.API_URI}/metadata/position-type/`;
|
||||
const positionStatus = `${env.API_URI}/metadata/position-status/`;
|
||||
const positionLine = `${env.API_URI}/metadata/position-line/`;
|
||||
const positionExecutive = `${env.API_URI}/metadata/position-executive/`;
|
||||
|
||||
export default {
|
||||
position: `${position}position`,
|
||||
/**
|
||||
* api ด้านทางการบริหาร
|
||||
*/
|
||||
positionExecutiveSide,
|
||||
listPositionExecutiveSideHistory: `${positionExecutiveSide}history`,
|
||||
listPositionExecutiveSideHistoryId: (id: string) =>
|
||||
`${positionExecutiveSide}history/${id}`,
|
||||
listPositionExecutiveSidePublished: `${positionExecutiveSide}history/published`,
|
||||
listPositionExecutiveSidePublishedHistory: `${positionExecutiveSide}history/published-history`,
|
||||
|
||||
/**
|
||||
* api ตำแหน่งในสายงาน
|
||||
*/
|
||||
// listPositionHistory: `${position}history`,
|
||||
// listPositionHistoryId: (id: string) => `${position}history/${id}`,
|
||||
// listPositionPublished: `${position}history/published`,
|
||||
|
||||
/**
|
||||
* api ระดับตำแหน่ง
|
||||
*/
|
||||
positionLevel,
|
||||
listPositionLevelHistory: `${positionLevel}history`,
|
||||
listPositionLevelHistoryId: (id: string) => `${positionLevel}history/${id}`,
|
||||
listPositionLevelPublished: `${positionLevel}history/published`,
|
||||
listPositionLevelPublishedHistory: `${positionLevel}history/published-history`,
|
||||
|
||||
/**
|
||||
* api ตำแหน่งในสายงาน
|
||||
*/
|
||||
positionPath,
|
||||
listPositionPathHistory: `${positionPath}history`,
|
||||
listPositionPathHistoryId: (id: string) => `${positionPath}history/${id}`,
|
||||
listPositionPathPublished: `${positionPath}history/published`,
|
||||
listPositionPathPublishedHistory: `${positionPath}history/published-history`,
|
||||
|
||||
/**
|
||||
* api ด้าน/สาขา
|
||||
*/
|
||||
positionSide,
|
||||
listPositionSideHistory: `${positionSide}history`,
|
||||
listPositionSideHistoryId: (id: string) => `${positionSide}history/${id}`,
|
||||
listPositionSidePublished: `${positionSide}history/published`,
|
||||
listPositionSidePublishedHistory: `${positionSide}history/published-history`,
|
||||
|
||||
/**
|
||||
* api ตำแหน่งประเภท
|
||||
*/
|
||||
positionType,
|
||||
listPositionTypeHistory: `${positionType}history`,
|
||||
listPositionTypeHistoryId: (id: string) => `${positionType}history/${id}`,
|
||||
listPositionTypePublished: `${positionType}history/published`,
|
||||
listPositionTypePublishedHistory: `${positionType}history/published-history`,
|
||||
|
||||
/**
|
||||
* api สถานะของตำแหน่ง
|
||||
*/
|
||||
positionStatus,
|
||||
listPositionStatusHistory: `${positionStatus}history`,
|
||||
listPositionStatusHistoryId: (id: string) => `${positionStatus}history/${id}`,
|
||||
listPositionStatusPublished: `${positionStatus}history/published`,
|
||||
listPositionStatusPublishedHistory: `${positionStatus}history/published-history`,
|
||||
|
||||
/**
|
||||
* api สายงานของตำแหน่ง
|
||||
*/
|
||||
positionLine,
|
||||
listPositionLineHistory: `${positionLine}history`,
|
||||
listPositionLineHistoryId: (id: string) => `${positionLine}history/${id}`,
|
||||
listPositionLinePublished: `${positionLine}history/published`,
|
||||
listPositionLinePublishedHistory: `${positionLine}history/published-history`,
|
||||
|
||||
/**
|
||||
* api ตำแหน่งทางการบริหาร
|
||||
*/
|
||||
positionExecutive,
|
||||
listPositionExecutiveHistory: `${positionExecutive}history`,
|
||||
listPositionExecutiveHistoryId: (id: string) =>
|
||||
`${positionExecutive}history/${id}`,
|
||||
listPositionExecutivePublished: `${positionExecutive}history/published`,
|
||||
listPositionExecutivePublishedHistory: `${positionExecutive}history/published-history`,
|
||||
};
|
||||
67
src/api/manage/api.positionEmployee.ts
Normal file
67
src/api/manage/api.positionEmployee.ts
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
/**
|
||||
* api ระบบจัดการข้อมูลหลัก
|
||||
* เมนูย่อย: ข้อมูลตำแหน่งของลูกจ้างกรุงเทพมหานคร
|
||||
*/
|
||||
import env from "../index";
|
||||
const positionEmployeePosition = `${env.API_URI}/metadata/position-employee-position/`;
|
||||
const positionEmployeePositionSide = `${env.API_URI}/metadata/position-employee-position-side/`;
|
||||
const positionEmployeeGroup = `${env.API_URI}/metadata/position-employee-group/`;
|
||||
const positionEmployeeLine = `${env.API_URI}/metadata/position-employee-line/`;
|
||||
const positionEmployeeLevel = `${env.API_URI}/metadata/position-employee-level/`;
|
||||
const positionEmployeeStatus = `${env.API_URI}/metadata/position-employee-status/`;
|
||||
|
||||
export default {
|
||||
/**
|
||||
* api ตำแหน่ง
|
||||
*/
|
||||
listPositionEmployeePositionHistory: `${positionEmployeePosition}history`,
|
||||
listPositionEmployeePositionHistoryId: (id: string) =>
|
||||
`${positionEmployeePosition}history/${id}`,
|
||||
listPositionEmployeePositionPublished: `${positionEmployeePosition}history/published`,
|
||||
listPositionEmployeePositionPublishedHistory: `${positionEmployeePosition}history/published-history`,
|
||||
|
||||
/**
|
||||
* api ด้านของตำแหน่ง
|
||||
*/
|
||||
listPositionEmployeePositionSideHistory: `${positionEmployeePositionSide}history`,
|
||||
listPositionEmployeePositionSideHistoryId: (id: string) =>
|
||||
`${positionEmployeePositionSide}history/${id}`,
|
||||
listPositionEmployeePositionSidePublished: `${positionEmployeePositionSide}history/published`,
|
||||
listPositionEmployeePositionSidePublishedHistory: `${positionEmployeePositionSide}history/published-history`,
|
||||
|
||||
/**
|
||||
* api กลุ่มงาน
|
||||
*/
|
||||
listPositionEmployeeGroupHistory: `${positionEmployeeGroup}history`,
|
||||
listPositionEmployeeGroupHistoryId: (id: string) =>
|
||||
`${positionEmployeeGroup}history/${id}`,
|
||||
listPositionEmployeeGroupPublished: `${positionEmployeeGroup}history/published`,
|
||||
listPositionEmployeeGroupPublishedHistory: `${positionEmployeeGroup}history/published-history`,
|
||||
|
||||
/**
|
||||
* api สายงาน
|
||||
*/
|
||||
listPositionEmployeeLineHistory: `${positionEmployeeLine}history`,
|
||||
listPositionEmployeeLineHistoryId: (id: string) =>
|
||||
`${positionEmployeeLine}history/${id}`,
|
||||
listPositionEmployeeLinePublished: `${positionEmployeeLine}history/published`,
|
||||
listPositionEmployeeLinePublishedHistory: `${positionEmployeeLine}history/published-history`,
|
||||
|
||||
/**
|
||||
* api ระดับชั้นงาน
|
||||
*/
|
||||
listPositionEmployeeLevelHistory: `${positionEmployeeLevel}history`,
|
||||
listPositionEmployeeLevelHistoryId: (id: string) =>
|
||||
`${positionEmployeeLevel}history/${id}`,
|
||||
listPositionEmployeeLevelPublished: `${positionEmployeeLevel}history/published`,
|
||||
listPositionEmployeeLevelPublishedHistory: `${positionEmployeeLevel}history/published-history`,
|
||||
|
||||
/**
|
||||
* api สถานะของตำแหน่ง
|
||||
*/
|
||||
listPositionEmployeeStatusHistory: `${positionEmployeeStatus}history`,
|
||||
listPositionEmployeeStatusHistoryId: (id: string) =>
|
||||
`${positionEmployeeStatus}history/${id}`,
|
||||
listPositionEmployeeStatusPublished: `${positionEmployeeStatus}history/published`,
|
||||
listPositionEmployeeStatusPublishedHistory: `${positionEmployeeStatus}history/published-history`,
|
||||
};
|
||||
39
src/api/recruiting/api.disable.ts
Normal file
39
src/api/recruiting/api.disable.ts
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
/**
|
||||
* api สรรหา
|
||||
*/
|
||||
import env from "../index"
|
||||
const disableExam = `${env.API_CANDIDATE_URI}/candidate/disable-exam/`
|
||||
const diable_report = `${env.API_URI}/report/exam/`
|
||||
|
||||
export default {
|
||||
getDisableCandidates: `${disableExam}candidate`,
|
||||
saveDisableCandidates: `${disableExam}candidate`,
|
||||
deleteDisableCandidates: (id: string) => `${disableExam}candidate/${id}`,
|
||||
getDisableExamDetail: (id: string, examId: string) =>
|
||||
`${disableExam}exam/${id}/${examId}`,
|
||||
|
||||
saveDisableScores: (id: string) => `${disableExam}score/${id}`,
|
||||
|
||||
getDisableExamResultById: (id: string) => `${disableExam}exam/${id}`,
|
||||
|
||||
// จัดการรอบการสอบ
|
||||
saveDisablePeriod: `${disableExam}period`,
|
||||
editDisablePeriod: (id: string) => `${disableExam}period/${id}`,
|
||||
getDisablePeriodById: (id: string) => `${disableExam}period/${id}`,
|
||||
uploadDisableCandidates: (id: string) => `${disableExam}candidate/${id}`,
|
||||
getDisableImportHistory: (id: string) => `${disableExam}history/${id}`,
|
||||
|
||||
// รายงาน
|
||||
downloadDisableExamReport: (id: string, examId: string, type: number = 2) =>
|
||||
`${diable_report}certificate/${type}/${id}/${examId}`,
|
||||
downloadDisableScoreReport: (id: string, examId: string) =>
|
||||
`${diable_report}score/${id}/${examId}`,
|
||||
exportDisableExam: (id: string) => `${disableExam}export/exam/${id}`,
|
||||
exportDisablePassExam: (id: string) => `${disableExam}export/pass-exam/${id}`,
|
||||
exportDisablePassResultExam: (id: string) =>
|
||||
`${disableExam}export/pass/${id}`,
|
||||
|
||||
exportDisableCandidateList: (id: string) => `${diable_report}candidate/${id}`,
|
||||
exportDisablePassExamList: (id: string) => `${diable_report}pass/${id}`,
|
||||
|
||||
}
|
||||
85
src/api/recruiting/api.period-exam.ts
Normal file
85
src/api/recruiting/api.period-exam.ts
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
/**
|
||||
* api สรรหา
|
||||
*/
|
||||
import env from "../index"
|
||||
const candidate = `${env.API_CANDIDATE_URI}/candidate/`
|
||||
const periodExam = `${env.API_CANDIDATE_URI}/candidate/period-exam/`
|
||||
const exam_report = `${env.API_URI}/report/exam/`
|
||||
|
||||
const cms = `${env.API_CANDIDATE_URI}/cms/`
|
||||
|
||||
export default {
|
||||
/**
|
||||
* api cms
|
||||
*/
|
||||
cms,
|
||||
cmsDeatail: `${cms}detail`,
|
||||
cmsAbout: `${cms}about`,
|
||||
cmsLogo: `${cms}logo`,
|
||||
cmsBanner: `${cms}banner`,
|
||||
cmsAgency: `${cms}agency`,
|
||||
cmsGoverment: `${cms}government`,
|
||||
|
||||
/**
|
||||
* api รอบการสอบ
|
||||
*/
|
||||
periodExam: `${periodExam}`,
|
||||
periodExamType: (type: string) => `${periodExam}type/${type}`,
|
||||
periodExamId: (examId: string) => `${periodExam}${examId}`,
|
||||
periodExamDoc: (examId: string) => `${periodExam}doc/${examId}`,
|
||||
periodExamImg: (examId: string) => `${periodExam}img/${examId}`,
|
||||
periodExamStatus: (examId: string) => `${periodExam}status-payment/${examId}`,
|
||||
|
||||
countDashbordPeriodExam: (examId: string) =>
|
||||
`${periodExam}dashboard/${examId}`,
|
||||
|
||||
candidateId: (candidateId: string) => `${candidate}${candidateId}`,
|
||||
candidateInformation: (candidateId: string) =>
|
||||
`${periodExam}information/${candidateId}`,
|
||||
candidateAddress: (candidateId: string) =>
|
||||
`${periodExam}address/${candidateId}`,
|
||||
candidateFamily: (candidateId: string) =>
|
||||
`${periodExam}family/${candidateId}`,
|
||||
candidateOccupation: (candidateId: string) =>
|
||||
`${periodExam}occupation/${candidateId}`,
|
||||
candidateEducation: (candidateId: string) =>
|
||||
`${periodExam}education/${candidateId}`,
|
||||
candidateAdminEducation: (candidateId: string) =>
|
||||
`${candidate}education/${candidateId}`,
|
||||
candidateDocument: (candidateId: string) =>
|
||||
`${periodExam}document/${candidateId}`,
|
||||
candidateCareer: (candidateId: string) =>
|
||||
`${periodExam}career/${candidateId}`,
|
||||
candidateAdminCareer: (candidateId: string) =>
|
||||
`${candidate}career/${candidateId}`,
|
||||
candidateProfile: (candidateId: string) =>
|
||||
`${candidate}profile-image/${candidateId}`,
|
||||
candidateUpload: (candidateId: string) => `${candidate}upload/${candidateId}`,
|
||||
candidateCheckRegister: (candidateId: string) =>
|
||||
`${candidate}check-register/${candidateId}`,
|
||||
candidateRejectRegister: (candidateId: string) =>
|
||||
`${candidate}reject-register/${candidateId}`,
|
||||
candidateCheckPayment: (candidateId: string) =>
|
||||
`${candidate}check-payment/${candidateId}`,
|
||||
candidate,
|
||||
candidateOfPeriodExam: (status: string, examId: string) =>
|
||||
`${periodExam}${status}/${examId}`,
|
||||
candidateCard: (candidateId: string) => `${candidate}card/${candidateId}`,
|
||||
|
||||
periodExamUploadSeat: (examId: string) =>
|
||||
`${periodExam}upload-seat/${examId}`,
|
||||
periodExamUploadPoint: (examId: string) =>
|
||||
`${periodExam}upload-point/${examId}`,
|
||||
periodExamDownload: (examId: string) => `${periodExam}download/${examId}`,
|
||||
periodExamDownloadDetail: (examId: string) =>
|
||||
`${periodExam}download/detail/${examId}`,
|
||||
periodExamDownloadDashboard: (examId: string) =>
|
||||
`${periodExam}download/dashboard/${examId}`,
|
||||
candidatePayment: (candidateId: string) =>
|
||||
`${candidate}payment-image/${candidateId}`,
|
||||
periodExamPayment: (examId: string) => `${periodExam}payment/${examId}`,
|
||||
|
||||
|
||||
exportExamCandidateList: (id: string) => `${exam_report}candidate-exam/${id}`,
|
||||
exportExamPassExamList: (id: string) => `${exam_report}pass-exam/${id}`,
|
||||
}
|
||||
41
src/api/recruiting/api.recruit.ts
Normal file
41
src/api/recruiting/api.recruit.ts
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
/**
|
||||
* api สรรหา - สอบแข่งขัน
|
||||
*/
|
||||
import env from "../index"
|
||||
const recruit = `${env.API_URI}/recruit/`
|
||||
const recruit_report = `${env.API_URI}/report/recruit/`
|
||||
|
||||
export default {
|
||||
getCandidates: `${recruit}candidate`,
|
||||
saveCandidates: `${recruit}candidate`,
|
||||
deleteCandidates: (id: string) => `${recruit}candidate/${id}`,
|
||||
getExamDetail: (id: string, examId: string) => `${recruit}exam/${id}/${examId}`,
|
||||
|
||||
saveScores: (id: string) => `${recruit}score/${id}`,
|
||||
|
||||
getExamResultById: (id: string) => `${recruit}exam/${id}`,
|
||||
|
||||
// จัดการรอบการสอบ
|
||||
savePeriod: `${recruit}period`,
|
||||
editPeriod: (id: string) => `${recruit}period/${id}`,
|
||||
getPeriodById: (id: string) => `${recruit}period/${id}`,
|
||||
uploadCandidates: (id: string) => `${recruit}candidate/${id}`,
|
||||
getImportHistory: (id: string) => `${recruit}history/${id}`,
|
||||
|
||||
//upload
|
||||
periodRecruitDoc: (examId: string) => `${recruit}doc/${examId}`,
|
||||
periodRecruitImg: (examId: string) => `${recruit}img/${examId}`,
|
||||
periodDeleteDoc: (docId: string) => `${recruit}doc/${docId}`,
|
||||
periodDeleteImg: (docId: string) => `${recruit}img/${docId}`,
|
||||
|
||||
// รายงาน
|
||||
downloadExamReport: (id: string, examId: string, type: number = 2) => `${recruit_report}certificate/${type}/${id}/${examId}`,
|
||||
downloadScoreReport: (id: string, examId: string) => `${recruit_report}score/${id}/${examId}`,
|
||||
exportExam: (id: string) => `${recruit}export/exam/${id}`,
|
||||
exportPassExam: (id: string) => `${recruit}export/pass-exam/${id}`,
|
||||
exportPassResultExam: (id: string) => `${recruit}export/pass/${id}`,
|
||||
|
||||
exportCandidateList: (id: string) => `${recruit_report}candidate/${id}`,
|
||||
exportPassExamList: (id: string) => `${recruit_report}pass/${id}`,
|
||||
|
||||
}
|
||||
12
src/api/recruiting/api.report2.ts
Normal file
12
src/api/recruiting/api.report2.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import env from "../index";
|
||||
const report2 = `${env.API_URI_ORG_SERVICE}/report2/`;
|
||||
|
||||
export default {
|
||||
report2Id: (id: string) => `${report2}${id}`,
|
||||
report2TreeId: (organizationId: string) => `${report2}tree/${organizationId}`,
|
||||
report2DoneId: (organizationId: string) => `${report2}done/${organizationId}`,
|
||||
report2HistoryId: (organizationId: string) =>
|
||||
`${report2}history/${organizationId}`,
|
||||
report2HistoryDetailId: (historyId: string) =>
|
||||
`${report2}history/detail/${historyId}`,
|
||||
};
|
||||
161
src/api/registry/api.profile.ts
Normal file
161
src/api/registry/api.profile.ts
Normal file
|
|
@ -0,0 +1,161 @@
|
|||
/**
|
||||
* api สรรหา - สอบแข่งขัน
|
||||
*/
|
||||
import env from "../index";
|
||||
const profile = `${env.API_URI_PROFILE_SERVICE}/profile/`;
|
||||
const report = `${env.API_REPORT_URI}/report/profile/`;
|
||||
|
||||
export default {
|
||||
profileUser: `${profile}user`,
|
||||
profileValidateId: (profileId: string) => `${profile}validate/${profileId}`,
|
||||
profilePaperDownloadId: (id: string) => `${profile}paper/download/${id}`,
|
||||
profilePaperId: (id: string) => `${profile}paper/${id}`,
|
||||
|
||||
profileMultiId: (id: string) => `${profile}multi-paper/${id}`,
|
||||
profileMultiOId: (id: string) => `${profile}multi-paper-other/${id}`,
|
||||
profileMultiKId: (id: string) => `${profile}multi-paper-kk1/${id}`,
|
||||
|
||||
profileHistoryselfId: (profileId: string) =>
|
||||
`${profile}/historyself${profileId}`,
|
||||
|
||||
profileOrganiNameId: (id: string) => `${profile}organization/name/${id}`,
|
||||
profileOrganiId: (id: string) => `${profile}organization/${id}`,
|
||||
profileOrganiSelectId: (id: string) => `${profile}organization/select/${id}`,
|
||||
profileOrganiRootId: (id: string) => `${profile}organization/root/${id}`,
|
||||
|
||||
profileLeaveOrganiId: (id: string) => `${profile}leave/organization/${id}`,
|
||||
|
||||
profileSearchNewOcId: (id: string) => `${profile}search/new/oc/${id}`,
|
||||
profileSearchNewOcIdType: (id: string, type: string) =>
|
||||
`${profile}search/new/oc/${id}/${type}`,
|
||||
profileSearchId: (id: string) => `${profile}search/${id}`,
|
||||
profileSearchOcId: (id: string) => `${profile}search/oc/${id}`,
|
||||
profileSearchNewOcLeaveId: (id: string) =>
|
||||
`${profile}search/new/oc/leave/${id}`,
|
||||
profileSearchNewOcLeaveIdType: (id: string, type: string) =>
|
||||
`${profile}search/new/oc/leave/${id}/${type}`,
|
||||
profileSearchOcLeaveId: (id: string) => `${profile}search/oc/leave/${id}`,
|
||||
profileSearchNewEmOcId: (id: string) =>
|
||||
`${profile}search/new-employee/oc/${id}`,
|
||||
profileSearchNewEmOcLeaveId: (id: string) =>
|
||||
`${profile}search/new-employee/oc/leave/${id}`,
|
||||
|
||||
profileCoupleId: (profileId: string) => `${profile}couple/${profileId}`,
|
||||
|
||||
profileFatherId: (profileId: string) => `${profile}father/${profileId}`,
|
||||
|
||||
profileMotherId: (profileId: string) => `${profile}mother/${profileId}`,
|
||||
|
||||
profileAdsId: (profileId: string) => `${profile}address/current/${profileId}`,
|
||||
profileAdsCurAdrsId: (profileId: string) =>
|
||||
`${profile}address/currentAdrs/${profileId}`,
|
||||
profileAdsRegisId: (profileId: string) =>
|
||||
`${profile}address/registration/${profileId}`,
|
||||
|
||||
profileInsignId: (profileId: string) => `${profile}insignia/${profileId}`,
|
||||
profileInsignHisId: (profileId: string) =>
|
||||
`${profile}insignia/history/${profileId}`,
|
||||
profileInsignInsignId: (profileId: string) =>
|
||||
`${profile}insignia/insigniadiocesan/${profileId}`,
|
||||
profileInsignToolList: `${profile}insignia/tool/list`,
|
||||
|
||||
profileChildId: (profileId: string) => `${profile}children/${profileId}`,
|
||||
|
||||
profileAssessmentId: (profileId: string) =>
|
||||
`${profile}assessment/${profileId}`,
|
||||
profileAssessmentHisId: (profileId: string) =>
|
||||
`${profile}assessment/history/${profileId}`,
|
||||
|
||||
profileHonorId: (profileId: string) => `${profile}honor/${profileId}`,
|
||||
profileHonorHisId: (profileId: string) =>
|
||||
`${profile}honor/history/${profileId}`,
|
||||
|
||||
profileCertId: (profileId: string) => `${profile}certificate/${profileId}`,
|
||||
profileCertHisId: (profileId: string) =>
|
||||
`${profile}certificate/history/${profileId}`,
|
||||
|
||||
profileAbiliId: (profileId: string) => `${profile}ability/${profileId}`,
|
||||
profileAbiliHisId: (profileId: string) =>
|
||||
`${profile}ability/history/${profileId}`,
|
||||
|
||||
profileDutyId: (profileId: string) => `${profile}duty/${profileId}`,
|
||||
profileDutyHisId: (profileId: string) =>
|
||||
`${profile}duty/history/${profileId}`,
|
||||
|
||||
profileOtherId: (profileId: string) => `${profile}other/${profileId}`,
|
||||
profileOtherHisId: (profileId: string) =>
|
||||
`${profile}other/history/${profileId}`,
|
||||
|
||||
profileNopaidId: (profileId: string) => `${profile}nopaid/${profileId}`,
|
||||
profileNopaidHisId: (profileId: string) =>
|
||||
`${profile}nopaid/history/${profileId}`,
|
||||
|
||||
profileAvaId: (profileId: string) => `${profile}avatar/${profileId}`,
|
||||
profileAvaCurId: (profileId: string) =>
|
||||
`${profile}avatar/current/${profileId}`,
|
||||
|
||||
profileEduId: (profileId: string) => `${profile}education/${profileId}`,
|
||||
profileEduHisId: (profileId: string) =>
|
||||
`${profile}education/history/${profileId}`,
|
||||
|
||||
profileSwapEducation: `${profile}swap_education`,
|
||||
|
||||
profileTrainId: (profileId: string) => `${profile}training/${profileId}`,
|
||||
profileTrainHisId: (profileId: string) =>
|
||||
`${profile}training/history/${profileId}`,
|
||||
|
||||
profileDisId: (profileId: string) => `${profile}discipline/${profileId}`,
|
||||
profileDisHisId: (profileId: string) =>
|
||||
`${profile}discipline/history/${profileId}`,
|
||||
|
||||
profileSwapDiscipline: `${profile}swap_discipline`,
|
||||
|
||||
profileLeaveId: (profileId: string) => `${profile}leave/${profileId}`,
|
||||
profileLeaveHisId: (profileId: string) =>
|
||||
`${profile}leave/history/${profileId}`,
|
||||
|
||||
profileSalaryId: (profileId: string) => `${profile}salary/${profileId}`,
|
||||
profileSalaryHisId: (profileId: string) =>
|
||||
`${profile}salary/history/${profileId}`,
|
||||
profileSalarySwapId: (id: string, direction: string) =>
|
||||
`${profile}salary/swap/${id}/${direction}`,
|
||||
profileSalaryCopyId: (profileId: string) =>
|
||||
`${profile}salary-copy/${profileId}`,
|
||||
|
||||
profileInforId: (profileId: string) => `${profile}information/${profileId}`,
|
||||
profileInforHisId: (profileId: string) =>
|
||||
`${profile}information/history/${profileId}`,
|
||||
|
||||
profileGovId: (profileId: string) => `${profile}government/${profileId}`,
|
||||
profileGovHisId: (profileId: string) =>
|
||||
`${profile}government/history/${profileId}`,
|
||||
|
||||
profileCalGovId: (profileId: string) => `${profile}cal/gov/${profileId}`,
|
||||
|
||||
profileFamiId: (profileId: string) => `${profile}family/${profileId}`,
|
||||
profileFamiHisId: (profileId: string) =>
|
||||
`${profile}family/history/${profileId}`,
|
||||
|
||||
profileAdrsId: (profileId: string) => `${profile}address/${profileId}`,
|
||||
profileAdrsHisId: (profileId: string) =>
|
||||
`${profile}address/history/${profileId}`,
|
||||
searchProfileByOcId: (OcId: string, type: string) =>
|
||||
`${profile}search/new/oc/${OcId}/${type}`,
|
||||
|
||||
profileAvatarId: (profileId: string) => `${profile}avatar/${profileId}`,
|
||||
profileAvatarHistoryId: (profileId: string) =>
|
||||
`${profile}avatar/history/${profileId}`,
|
||||
|
||||
profileCheckId: (profileId: string) => `${profile}check/${profileId}`,
|
||||
|
||||
profileOrganizRoot: `${profile}organization/root`,
|
||||
|
||||
profileCalRetire: `${profile}cal/retire`,
|
||||
profilePositionNumber: `${profile}position-number`,
|
||||
organizationName: (ocId: string) => `${profile}organization/${ocId}`,
|
||||
profileDeactive: (profileId: string) => `${profile}deactive/${profileId}`,
|
||||
profileReactive: (profileId: string) => `${profile}reactive/${profileId}`,
|
||||
|
||||
profileReportId: (profileId: string) => `${report}kk1/${profileId}`,
|
||||
profileKp7ShortId: (profileId: string) => `${report}kp7-short/${profileId}`,
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue