ปรับบรรจุ แต่งตั้ง
This commit is contained in:
parent
0973093813
commit
6a4568ec36
2 changed files with 30 additions and 22 deletions
|
|
@ -234,14 +234,14 @@ function convertBmaOfficer(val: string) {
|
|||
* แปลงสถานะบรรจุ
|
||||
* @param val type
|
||||
*/
|
||||
function convertContainStatus(val: string) {
|
||||
function convertContainStatus(val: string, type: string = "") {
|
||||
switch (val) {
|
||||
case "UN-CONTAIN":
|
||||
return "ยังไม่บรรจุ";
|
||||
case "PREPARE-CONTAIN":
|
||||
return "เตรียมบรรจุ";
|
||||
return "เตรียม" + (type != "" ? type : "บรรจุ");
|
||||
case "CONTAIN":
|
||||
return "บรรจุแล้ว";
|
||||
return (type != "" ? type : "บรรจุ") + "แล้ว";
|
||||
case "DISCLAIM":
|
||||
return "สละสิทธิ์";
|
||||
default:
|
||||
|
|
@ -249,6 +249,21 @@ function convertContainStatus(val: string) {
|
|||
}
|
||||
}
|
||||
|
||||
function convertTypeCommand(val: string) {
|
||||
switch (val) {
|
||||
case "APPOINTED":
|
||||
return "บรรจุแต่งตั้ง";
|
||||
case "APPOINT":
|
||||
return "แต่งตั้ง";
|
||||
case "SLIP":
|
||||
return "เลื่อน";
|
||||
case "MOVE":
|
||||
return "ย้าย";
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* แปลงสถานะการส่งรายชื่อ
|
||||
* @param val true/false
|
||||
|
|
@ -322,7 +337,11 @@ async function getTable() {
|
|||
posLevelCandidateName: data.posLevelCandidateName,
|
||||
posmasterId: data.posmasterId,
|
||||
|
||||
statusName: convertContainStatus(data.statusId),
|
||||
statusName:
|
||||
convertContainStatus(data.statusId) +
|
||||
(data.typeCommand != ""
|
||||
? convertTypeCommand(data.typeCommand)
|
||||
: ""),
|
||||
organizationName:
|
||||
data.root +
|
||||
" " +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue