change report fix time

This commit is contained in:
Suphonchai Phoonsawat 2023-12-24 22:13:26 +07:00
parent bcbac7814d
commit fe957e48b2

View file

@ -1117,12 +1117,12 @@ namespace BMA.EHR.Leave.Service.Controllers
fullName = fullName, fullName = fullName,
dutyTimeName = $"{duty.StartTimeMorning} น.", dutyTimeName = $"{duty.StartTimeMorning} น.",
checkInLocation = timeStamps == null ? "" : timeStamps.CheckInLocationName, checkInLocation = timeStamps == null ? "" : timeStamps.CheckInLocationName,
checkInTime = timeStamps == null ? "" : $"{timeStamps.CheckIn.Date.ToString("HH:mm")} น.", checkInTime = timeStamps == null ? "" : $"{timeStamps.CheckIn.ToString("HH:mm")} น.",
checkOutLocation = timeStamps == null ? "" : timeStamps.CheckOutLocationName ?? "", checkOutLocation = timeStamps == null ? "" : timeStamps.CheckOutLocationName ?? "",
checkOutTime = timeStamps == null ? "" : checkOutTime = timeStamps == null ? "" :
timeStamps.CheckOut != null ? timeStamps.CheckOut != null ?
$"{timeStamps.CheckOut.Value.Date.ToString("HH:mm")} น." : $"{timeStamps.CheckOut.Value.ToString("HH:mm")} น." :
"", "",
remark = "" remark = ""