108 lines
4.5 KiB
TypeScript
108 lines
4.5 KiB
TypeScript
import env from "../index";
|
|
const placement = `${env.API_PLACEMENT_URI}/placement`;
|
|
const orgTree = `${env.API_URI_ORG_TREE}`;
|
|
const order = `${env.API_PLACEMENT_URI}`;
|
|
const receive = `${env.API_PLACEMENT_URI}/placement/Receive`;
|
|
|
|
export default {
|
|
MainDetail: (year: number) => `${placement}/exam/${year}`,
|
|
yearOptions: () => `${placement}/fiscal`,
|
|
personalList: (examId: string) => `${placement}/pass/${examId}`,
|
|
disclaimF: () => `${placement}/pass/disclaim`,
|
|
deferment: () => `${placement}/pass/deferment`,
|
|
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}`,
|
|
|
|
//personal
|
|
placementPersonalId: (personalId: string) =>
|
|
`${placement}/personal/${personalId}`,
|
|
|
|
//personal
|
|
placementPropertyId: (personalId: string) =>
|
|
`${placement}/property/${personalId}`,
|
|
|
|
//information
|
|
placementInformationId: (personalId: string) =>
|
|
`${placement}/information/${personalId}`,
|
|
|
|
//address
|
|
placementAddressId: (personalId: string) =>
|
|
`${placement}/address/${personalId}`,
|
|
|
|
//family
|
|
placementFamilyId: (personalId: string) =>
|
|
`${placement}/family/${personalId}`,
|
|
|
|
//certificate
|
|
placementCertId: (personalId: string) =>
|
|
`${placement}/certificate/${personalId}`,
|
|
placementCertDetailId: (personalId: string, certificateId: string) =>
|
|
`${placement}/certificate/${personalId}/${certificateId}`,
|
|
|
|
//education
|
|
placementEducationId: (id: string) => `${placement}/education/${id}`,
|
|
// position
|
|
placementPosition: () => `${placement}/position/use`,
|
|
// putPositiom
|
|
putPosition: (id: any) => `${placement}/position/${id}`,
|
|
// clear Position
|
|
clearPosition: (personalId: string) =>
|
|
`${placement}/position/clear/${personalId}`,
|
|
|
|
// order
|
|
yearOptionsOrder: () => `${order}/order/fiscal-year`,
|
|
listOrder: () => `${order}/order`,
|
|
detailOrder: (orderId: string) => `${order}/order/detail/${orderId}`,
|
|
deleteOrder: (orderId: string) => `${order}/order/${orderId}`,
|
|
typeOrder: () => `${order}/order/order-type`,
|
|
nextStep: (orderId: string) => `${order}/order/next/${orderId}`,
|
|
prevStep: (orderId: string) => `${order}/order/prev/${orderId}`,
|
|
executeOrder: (orderId: string) => `${order}/order/execute/${orderId}`,
|
|
|
|
createOrder: () => `${order}/order/detail`,
|
|
|
|
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}`,
|
|
};
|