Merge branch 'develop' of github.com:Frappet/bma-ehr-salary into develop

This commit is contained in:
DESKTOP-2S5P7D1\Windows 10 2025-02-04 15:34:53 +07:00
commit a499a4a15b

View file

@ -1260,7 +1260,7 @@ export class ReportController extends Controller {
? "หนึ่งขั้น" ? "หนึ่งขั้น"
: "ไม่ได้เลื่อนขั้น"; : "ไม่ได้เลื่อนขั้น";
})() })()
: null, //การเลื่อนเงินเดือนปีก่อนๆหน้า : "-", //การเลื่อนเงินเดือนปีก่อนๆหน้า
salaryIncrease2: salaryIncrease2:
salaryProfile2.length > 0 salaryProfile2.length > 0
? (() => { ? (() => {
@ -1274,7 +1274,7 @@ export class ReportController extends Controller {
? "หนึ่งขั้น" ? "หนึ่งขั้น"
: "ไม่ได้เลื่อนขั้น"; : "ไม่ได้เลื่อนขั้น";
})() })()
: null, //การเลื่อนเงินเดือนปีก่อนหน้า : "-", //การเลื่อนเงินเดือนปีก่อนหน้า
score: item.result, //ผลการประเมินฯ score: item.result, //ผลการประเมินฯ
remark: item.remark, //หมายเหตุ remark: item.remark, //หมายเหตุ
})) }))
@ -1311,7 +1311,7 @@ export class ReportController extends Controller {
? "หนึ่งขั้น" ? "หนึ่งขั้น"
: "ไม่ได้เลื่อนขั้น"; : "ไม่ได้เลื่อนขั้น";
})() })()
: null, //การเลื่อนเงินเดือนปีก่อนๆหน้า : "-", //การเลื่อนเงินเดือนปีก่อนๆหน้า
salaryIncrease2: salaryIncrease2:
salaryProfile2.length > 0 salaryProfile2.length > 0
? (() => { ? (() => {
@ -1325,7 +1325,7 @@ export class ReportController extends Controller {
? "หนึ่งขั้น" ? "หนึ่งขั้น"
: "ไม่ได้เลื่อนขั้น"; : "ไม่ได้เลื่อนขั้น";
})() })()
: null, //การเลื่อนเงินเดือนปีก่อนหน้า : "-", //การเลื่อนเงินเดือนปีก่อนหน้า
score: item.result, //ผลการประเมินฯ score: item.result, //ผลการประเมินฯ
remark: item.remark, //หมายเหตุ remark: item.remark, //หมายเหตุ
})) }))
@ -1541,7 +1541,7 @@ export class ReportController extends Controller {
? "หนึ่งขั้นครึ่ง" ? "หนึ่งขั้นครึ่ง"
: "ไม่ได้เลื่อนขั้น"; : "ไม่ได้เลื่อนขั้น";
})() })()
: null, //การเลื่อนเงินเดือนปีก่อนๆหน้า : "-", //การเลื่อนเงินเดือนปีก่อนๆหน้า
salaryIncrease2: salaryIncrease2:
salaryProfile2.length > 0 salaryProfile2.length > 0
? (() => { ? (() => {
@ -1557,7 +1557,7 @@ export class ReportController extends Controller {
? "หนึ่งขั้นครึ่ง" ? "หนึ่งขั้นครึ่ง"
: "ไม่ได้เลื่อนขั้น"; : "ไม่ได้เลื่อนขั้น";
})() })()
: null, //การเลื่อนเงินเดือนปีก่อนหน้า : "-", //การเลื่อนเงินเดือนปีก่อนหน้า
salaryIncreaseAPR: salaryIncreaseAPR:
salaryProfile_APR.length > 0 salaryProfile_APR.length > 0
? (() => { ? (() => {
@ -1573,15 +1573,15 @@ export class ReportController extends Controller {
? "หนึ่งขั้นครึ่ง" ? "หนึ่งขั้นครึ่ง"
: "ไม่ได้เลื่อนขั้น"; : "ไม่ได้เลื่อนขั้น";
})() })()
: null, //การเลื่อนเงินเดือนรอบเมษา : "-", //การเลื่อนเงินเดือนรอบเมษา
Type: Type:
item.type === "FULL" item.type === "FULL"
? "หนึ่งขั้น" ? "หนึ่งขั้น"
: item.type === "FULLHAFT" : item.type === "FULLHAFT"
? "หนึ่งขั้นครึ่ง" ? "หนึ่งขั้นครึ่ง"
: null, : "-",
score1: item.result, //ผลการประเมินฯ ครั้งที่ 1 score1: item.result??"-", //ผลการประเมินฯ ครั้งที่ 1
score2: null, //ผลการประเมินฯ ครั้งที่ 2 score2: "-", //ผลการประเมินฯ ครั้งที่ 2
})) }))
: null, : null,
profileGroup2: salaryProfile_current profileGroup2: salaryProfile_current
@ -1621,7 +1621,7 @@ export class ReportController extends Controller {
? "หนึ่งขั้นครึ่ง" ? "หนึ่งขั้นครึ่ง"
: "ไม่ได้เลื่อนขั้น"; : "ไม่ได้เลื่อนขั้น";
})() })()
: null, //การเลื่อนเงินเดือนปีก่อนๆหน้า : "-", //การเลื่อนเงินเดือนปีก่อนๆหน้า
salaryIncrease2: salaryIncrease2:
salaryProfile2.length > 0 salaryProfile2.length > 0
? (() => { ? (() => {
@ -1637,7 +1637,7 @@ export class ReportController extends Controller {
? "หนึ่งขั้นครึ่ง" ? "หนึ่งขั้นครึ่ง"
: "ไม่ได้เลื่อนขั้น"; : "ไม่ได้เลื่อนขั้น";
})() })()
: null, //การเลื่อนเงินเดือนปีก่อนหน้า : "-", //การเลื่อนเงินเดือนปีก่อนหน้า
salaryIncreaseAPR: salaryIncreaseAPR:
salaryProfile_APR.length > 0 salaryProfile_APR.length > 0
? (() => { ? (() => {
@ -1653,15 +1653,15 @@ export class ReportController extends Controller {
? "หนึ่งขั้นครึ่ง" ? "หนึ่งขั้นครึ่ง"
: "ไม่ได้เลื่อนขั้น"; : "ไม่ได้เลื่อนขั้น";
})() })()
: null, //การเลื่อนเงินเดือนรอบเมษา : "-", //การเลื่อนเงินเดือนรอบเมษา
Type: Type:
item.type === "FULL" item.type === "FULL"
? "หนึ่งขั้น" ? "หนึ่งขั้น"
: item.type === "FULLHAFT" : item.type === "FULLHAFT"
? "หนึ่งขั้นครึ่ง" ? "หนึ่งขั้นครึ่ง"
: null, : "-",
score1: item.result, //ผลการประเมินฯ ครั้งที่ 1 score1: item.result??"-", //ผลการประเมินฯ ครั้งที่ 1
score2: null, //ผลการประเมินฯ ครั้งที่ 2 score2: "-", //ผลการประเมินฯ ครั้งที่ 2
})) }))
: null, : null,
}, },
@ -2179,7 +2179,7 @@ export class ReportController extends Controller {
? "" ? ""
: Extension.ToThaiNumber(String(item.positionSalaryAmount.toLocaleString())) + : Extension.ToThaiNumber(String(item.positionSalaryAmount.toLocaleString())) +
(item.amountSpecial > 0 (item.amountSpecial > 0
? `(${Extension.ToThaiNumber(String(item.positionSalaryAmount))})` ? `(${Extension.ToThaiNumber(String(item.amountSpecial))})`
: ""), : ""),
remark: [ remark: [
item.type === "FULL" ? "หนึ่งขั้น" : "", item.type === "FULL" ? "หนึ่งขั้น" : "",
@ -4475,7 +4475,7 @@ export class ReportController extends Controller {
affiliation: affiliation, affiliation: affiliation,
position: profile.position ?? "-", position: profile.position ?? "-",
posLevel: profile.posLevel posLevel: profile.posLevel
? Extension.ToThaiNumber(profile.posLevel.toLocaleString()) ? `${profile.posTypeShort} ${Extension.ToThaiNumber(profile.posLevel.toLocaleString())}`
: "-", : "-",
posNumber: posNumber:
profile.orgShortName || profile.posMasterNo profile.orgShortName || profile.posMasterNo
@ -4741,16 +4741,19 @@ export class ReportController extends Controller {
fullName: fullName, fullName: fullName,
affiliation: affiliation, affiliation: affiliation,
position: profile.position, position: profile.position,
posLevel: profile.posLevel, posLevel: profile.posLevel
? `${profile.posTypeShort} ${Extension.ToThaiNumber(profile.posLevel.toLocaleString())}`
: "-",
posNumber: posNumber:
Extension.ToThaiNumber(profile.orgShortName) + Extension.ToThaiNumber(profile.orgShortName) +
Extension.ToThaiNumber(profile.posMasterNo.toLocaleString()), Extension.ToThaiNumber(profile.posMasterNo.toLocaleString()),
positionSalaryAmount: profile.positionSalaryAmount positionSalaryAmount: profile.positionSalaryAmount
? Extension.ToThaiNumber(profile.positionSalaryAmount.toLocaleString()) ? Extension.ToThaiNumber(profile.positionSalaryAmount.toLocaleString())
: null, : "-",
amountSpecial: profile.amountSpecial amountSpecial: profile.amountSpecial
? Extension.ToThaiNumber(profile.amountSpecial.toLocaleString()) ? Extension.ToThaiNumber(profile.amountSpecial.toLocaleString())
: null, : "-",
score: profile.result??"-",
reason: null, reason: null,
}; };
}); });
@ -5783,7 +5786,7 @@ export class ReportController extends Controller {
affiliation: affiliation, affiliation: affiliation,
position: profile.position ?? "-", position: profile.position ?? "-",
posLevel: profile.posLevel posLevel: profile.posLevel
? Extension.ToThaiNumber(profile.posLevel.toLocaleString()) ? `${profile.posTypeShort} ${Extension.ToThaiNumber(profile.posLevel.toLocaleString())}`
: "-", : "-",
posNumber: posNumber:
profile.orgShortName || profile.posMasterNo profile.orgShortName || profile.posMasterNo