fix ตรวจสอบเงื่อไข
Some checks failed
release-dev / release-dev (push) Failing after 11s

This commit is contained in:
Suphonchai Phoonsawat 2024-12-24 12:55:36 +07:00
parent fa10260013
commit eef2e809dc

View file

@ -1034,12 +1034,12 @@ namespace BMA.EHR.Leave.Service.Controllers
if (timeStamps.CheckOut != null) if (timeStamps.CheckOut != null)
{ {
if (timeStamps.CheckOutStatus == "ABSENT") if (timeStamps.CheckOutStatus == "ABSENT")
remarkStr = "ขาดราชการ" + (timeStamps.IsLocationCheckOut ? $" (นอกสถานที่:{ timeStamps.CheckOutLocationName })".Trim() : "") ; remarkStr = "ขาดราชการ" + (!timeStamps.IsLocationCheckOut ? $" (นอกสถานที่:{ timeStamps.CheckOutLocationName })".Trim() : "") ;
else if (timeStamps.CheckInStatus == "ABSENT") else if (timeStamps.CheckInStatus == "ABSENT")
remarkStr = "ขาดราชการ" + (timeStamps.IsLocationCheckIn ? $" (นอกสถานที่:{timeStamps.CheckInLocationName})".Trim() : ""); remarkStr = "ขาดราชการ" + (!timeStamps.IsLocationCheckIn ? $" (นอกสถานที่:{timeStamps.CheckInLocationName})".Trim() : "");
else if (timeStamps.CheckInStatus == "LATE") else if (timeStamps.CheckInStatus == "LATE")
{ {
remarkStr = "สาย" + (timeStamps.IsLocationCheckIn ? $" (นอกสถานที่:{timeStamps.CheckInLocationName})".Trim() : ""); remarkStr = "สาย" + (!timeStamps.IsLocationCheckIn ? $" (นอกสถานที่:{timeStamps.CheckInLocationName})".Trim() : "");
lateTotal += 1; lateTotal += 1;
} }
else else
@ -1048,10 +1048,10 @@ namespace BMA.EHR.Leave.Service.Controllers
else else
{ {
if (timeStamps.CheckInStatus == "ABSENT") if (timeStamps.CheckInStatus == "ABSENT")
remarkStr = "ขาดราชการ" + (timeStamps.IsLocationCheckIn ? $" (นอกสถานที่:{timeStamps.CheckInLocationName})".Trim() : ""); remarkStr = "ขาดราชการ" + (!timeStamps.IsLocationCheckIn ? $" (นอกสถานที่:{timeStamps.CheckInLocationName})".Trim() : "");
else if (timeStamps.CheckInStatus == "LATE") else if (timeStamps.CheckInStatus == "LATE")
{ {
remarkStr = "สาย" + (timeStamps.IsLocationCheckIn ? $" (นอกสถานที่:{timeStamps.CheckInLocationName})".Trim() : ""); remarkStr = "สาย" + (!timeStamps.IsLocationCheckIn ? $" (นอกสถานที่:{timeStamps.CheckInLocationName})".Trim() : "");
lateTotal += 1; lateTotal += 1;
} }
else else