fix : LV1_007 - ประวัติการลงเวลา (USER)_defect_005#181
This commit is contained in:
parent
bc2e7b8b5e
commit
90f7667242
1 changed files with 5 additions and 1 deletions
|
|
@ -549,9 +549,13 @@ namespace BMA.EHR.Leave.Service.Controllers
|
|||
CheckOutDate = d.CheckOut == null ? null : d.CheckOut.Value.Date,
|
||||
CheckOutTime = d.CheckOut == null ? "" : d.CheckOut.Value.ToString("HH:mm:ss"),
|
||||
CheckOutLocation = d.CheckOutPOI ?? "",
|
||||
CheckOutStatus = d.CheckOut == null ? null : DateTime.Parse(d.CheckOut.Value.ToString("yyyy-MM-dd HH:mm")) <
|
||||
CheckOutStatus = d.CheckOut == null ? null :
|
||||
DateTime.Parse(d.CheckOut.Value.ToString("yyyy-MM-dd HH:mm")) <
|
||||
DateTime.Parse($"{d.CheckIn.Date.ToString("yyyy-MM-dd")} {duty.EndTimeAfternoon}") ?
|
||||
"LATE" :
|
||||
DateTime.Parse(d.CheckOut.Value.ToString("yyyy-MM-dd HH:mm")) <
|
||||
DateTime.Parse($"{d.CheckIn.Date.ToString("yyyy-MM-dd")} {duty.EndTimeMorning}") ?
|
||||
"ABSENT" :
|
||||
"NORMAL",
|
||||
|
||||
IsEdit = _processUserTimeStampRepository.IsEditRequest(userId, d.CheckIn.Date)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue