test เพิ่มฟังก์ชั่นให้ยิงไประบบ exprofile #2190
All checks were successful
Build & Deploy on Dev / build (push) Successful in 59s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 59s
This commit is contained in:
parent
38e2ec6586
commit
78778e0eb0
6 changed files with 510 additions and 152 deletions
|
|
@ -453,7 +453,7 @@ export async function checkCommandType(commandId: string) {
|
|||
].includes(String(_type?.commandType.code))
|
||||
) {
|
||||
// return false;
|
||||
return { status: false, LeaveType: null, leaveRemark: null };
|
||||
return { status: false, LeaveType: null, leaveRemark: null, retireTypeName: null };
|
||||
}
|
||||
// return true;
|
||||
const _commandRecive = await commandReciveRepository.findOne({
|
||||
|
|
@ -461,47 +461,58 @@ export async function checkCommandType(commandId: string) {
|
|||
});
|
||||
|
||||
let _leaveType: string = "";
|
||||
let _retireTypeName: string = ""; //อิงตามเหตุผลการพ้นจากราชการ ข้อมูลทะเบียนประวัติผู้พ้นจากราชการ
|
||||
switch (String(_type?.commandType.code)) {
|
||||
case "C-PM-12": {
|
||||
_leaveType = "PROBATION_REPORT";
|
||||
_retireTypeName = "ผลการทดลองฯ ต่ำกว่ามาตรฐานที่กำหนด"
|
||||
break;
|
||||
}
|
||||
case "C-PM-13": {
|
||||
_leaveType = "PLACEMENT_TRANSFER";
|
||||
_retireTypeName = "โอนออก";
|
||||
break;
|
||||
}
|
||||
case "C-PM-17": {
|
||||
_leaveType = "RETIRE_RESIGN";
|
||||
_retireTypeName = "ลาออกจากราชการ";
|
||||
break;
|
||||
}
|
||||
case "C-PM-18": {
|
||||
_leaveType = "RETIRE_OUT";
|
||||
_retireTypeName = "ให้ออกจากราชการ";
|
||||
break;
|
||||
}
|
||||
case "C-PM-19": {
|
||||
_leaveType = "DISCIPLINE_RESULT_REMOVE";
|
||||
_retireTypeName = "ปลดออกจากราชการ";
|
||||
break;
|
||||
}
|
||||
case "C-PM-20": {
|
||||
_leaveType = "DISCIPLINE_RESULT_DISMISS";
|
||||
_retireTypeName = "ไล่ออกจากราชการ";
|
||||
break;
|
||||
}
|
||||
case "C-PM-23": {
|
||||
_leaveType = "RETIRE_RESIGN_EMP";
|
||||
_retireTypeName = "ลาออกจากราชการ";
|
||||
break;
|
||||
}
|
||||
case "C-PM-43": {
|
||||
_leaveType = "RETIRE_OUT_EMP";
|
||||
_retireTypeName = "ให้ออกจากราชการ";
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
_leaveType = "";
|
||||
_retireTypeName = "";
|
||||
}
|
||||
}
|
||||
return {
|
||||
status: true,
|
||||
LeaveType: _leaveType,
|
||||
leaveRemark: _commandRecive ? _commandRecive.remarkVertical : null,
|
||||
retireTypeName: _retireTypeName ? _retireTypeName : null
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue