hrms-mgt/src/api/05_placement/api.placement.ts

107 lines
4.3 KiB
TypeScript
Raw Normal View History

2023-06-01 12:54:58 +07:00
import env from "../index";
2023-07-13 12:30:57 +07:00
const placement = `${env.API_PLACEMENT_URI}/placement`;
const orgTree = `${env.API_URI_ORG_TREE}`;
2023-08-04 12:07:24 +07:00
const order = `${env.API_PLACEMENT_URI}`;
const receive = `${env.API_PLACEMENT_URI}/placement/Receive`;
2023-07-13 09:10:43 +07:00
export default {
2023-07-12 14:50:35 +07:00
MainDetail: (year: number) => `${placement}/exam/${year}`,
yearOptions: () => `${placement}/fiscal`,
personalList: (examId: string) => `${placement}/pass/${examId}`,
2023-07-12 14:50:35 +07:00
disclaimF: () => `${placement}/pass/disclaim`,
2023-07-12 16:56:52 +07:00
deferment: () => `${placement}/pass/deferment`,
2023-07-12 14:50:35 +07:00
getStatCard: (examId: string) => `${placement}/pass/stat/${examId}`,
getDatapersonal: (id: string) => `${placement}/personal/${id}`,
putProperty: (id: string) => `${placement}/property/${id}`,
orgTree: orgTree,
placementPass: () => `${placement}/pass`,
placementDefermentInfo: (id: string) => `${placement}/pass/deferment/${id}`,
placementDisclaimInfo: (id: string) => `${placement}/pass/disclaim/${id}`,
2023-07-13 09:10:43 +07:00
//personal
placementPersonalId: (personalId: string) =>
2023-07-13 09:38:48 +07:00
`${placement}/personal/${personalId}`,
2023-07-13 09:10:43 +07:00
//personal
placementPropertyId: (personalId: string) =>
2023-07-13 09:38:48 +07:00
`${placement}/property/${personalId}`,
2023-07-13 09:10:43 +07:00
//information
placementInformationId: (personalId: string) =>
2023-07-13 09:38:48 +07:00
`${placement}/information/${personalId}`,
2023-07-13 09:10:43 +07:00
//address
placementAddressId: (personalId: string) =>
2023-07-13 09:38:48 +07:00
`${placement}/address/${personalId}`,
2023-07-13 09:10:43 +07:00
//family
2023-07-13 09:38:48 +07:00
placementFamilyId: (personalId: string) =>
`${placement}/family/${personalId}`,
2023-07-13 09:10:43 +07:00
//certificate
placementCertId: (personalId: string) =>
2023-07-13 09:38:48 +07:00
`${placement}/certificate/${personalId}`,
2023-07-13 09:10:43 +07:00
placementCertDetailId: (personalId: string, certificateId: string) =>
2023-07-13 09:38:48 +07:00
`${placement}/certificate/${personalId}/${certificateId}`,
2023-07-13 09:10:43 +07:00
//education
2023-07-13 09:38:48 +07:00
placementEducationId: (id: string) => `${placement}/education/${id}`,
// position
2023-07-13 17:30:16 +07:00
placementPosition: () => `${placement}/position/use`,
2023-07-20 17:57:05 +07:00
// putPositiom
2023-08-04 12:07:24 +07:00
putPosition: (id: any) => `${placement}/position/${id}`,
// clear Position
clearPosition: (personalId: string) =>
`${placement}/position/clear/${personalId}`,
2023-08-04 12:07:24 +07:00
// order
yearOptionsOrder: () => `${order}/order/fiscal-year`,
listOrder: () => `${order}/order`,
2023-08-07 18:12:26 +07:00
detailOrder: (orderId: string) => `${order}/order/detail/${orderId}`,
deleteOrder: (orderId: string) => `${order}/order/${orderId}`,
2023-08-04 12:07:24 +07:00
typeOrder: () => `${order}/order/order-type`,
createOrder: () => `${order}/order/detail`,
2023-08-04 12:07:24 +07:00
examroundOrder: () => `${order}/order/detail/exam-round`,
//ข้อมูลเลือกรายชื่อออกคำสั่ง, ลบรายชื่อ
personsOrder: (orderId: string) => `${order}/order/persons/${orderId}`,
//เปลี่ยน status ของคำสั่งไปขั้นตอนถัดไป
nextOrder: (orderId: string) => `${order}/order/next/${orderId}`,
//เปลี่ยน status ของคำสั่งไปขั้นตอนถัดไป
preventOrder: (orderId: string) => `${order}/order/prev/${orderId}`,
//สลับลำดับข้อมูลในบัญชีแนบท้ายขึ้น
swapUpOrder: (personalId: string) => `${order}/order/swap/up/${personalId}`,
//สลับลำดับข้อมูลในบัญชีแนบท้ายลง
swapDownOrder: (personalId: string) =>
`${order}/order/swap/down/${personalId}`,
//บันทึกข้อมูลเงินเดือนสำหรับผู้บรรจุ
salaryOrder: (id: string) => `${order}/order/salary/${id}`,
// popup แสดงรายชื่อตามหน่วยงานที่เลือก , popup เลือกรายชื่อส่งสำเนา
copyOrderPersonsId: (id: string) => `${order}/order/copy-order/persons/${id}`,
copyOrder: `${order}/order/copy-order`,
copyOrderId: (id: string) => `${order}/order/copy-order/${id}`,
attachmentId: (id: string) => `${order}/order/attachment/${id}`,
attachmentOrderId: (orderId: string) =>
`${order}/order/attachment/order-file/${orderId}`,
attachmentFileId: (orderId: string) =>
`${order}/order/attachment/file/${orderId}`,
orderReady: (id: string) => `${order}/order/ready/${id}`,
attachmentOrder: (orderId: string) => `${order}/order/attachment/${orderId}`,
receiveData: () => `${receive}`,
receiveDataId: (id: string) => `${receive}/${id}`,
receivePosition: (id: string) => `${receive}/position/${id}`,
2023-07-13 09:10:43 +07:00
};