Fix Defect 13/12/66 09:17
This commit is contained in:
parent
7fa4ba9750
commit
389a99fce6
6 changed files with 26 additions and 5 deletions
|
|
@ -553,7 +553,7 @@ namespace BMA.EHR.Leave.Service.Controllers
|
|||
"LATE" :
|
||||
"NORMAL",
|
||||
|
||||
IsEdit = (d.EditStatus != null || d.EditStatus != "")
|
||||
IsEdit = (d.EditStatus != null && d.EditStatus != "")
|
||||
|
||||
//EditReason = d.EditReason ?? "",
|
||||
//EditStatus = d.EditStatus ?? ""
|
||||
|
|
@ -610,12 +610,20 @@ namespace BMA.EHR.Leave.Service.Controllers
|
|||
CheckInLon = d.CheckInLon,
|
||||
CheckInImage = $"{imgUrl}/{d.CheckInImageUrl}",
|
||||
|
||||
// add from new specification
|
||||
IsLocationCheckIn = d.IsLocationCheckIn,
|
||||
CheckInLocationName = d.CheckInLocationName ?? "",
|
||||
|
||||
CheckOutDate = d.CheckOut == null ? null : d.CheckOut.Value.Date,
|
||||
CheckOutTime = d.CheckOut == null ? "" : d.CheckOut.Value.ToString("HH:mm:ss"),
|
||||
CheckOutLocation = d.CheckOut == null ? "" : d.CheckOutPOI,
|
||||
CheckOutLat = d.CheckOut == null ? null : d.CheckOutLat,
|
||||
CheckOutLon = d.CheckOut == null ? null : d.CheckOutLon,
|
||||
CheckOutImage = d.CheckOut == null ? "" : $"{imgUrl}/{d.CheckOutImageUrl}",
|
||||
|
||||
// add from new specification
|
||||
IsLocationCheckOut = d.IsLocationCheckOut,
|
||||
CheckOutLocationName = d.CheckOutLocationName ?? ""
|
||||
})
|
||||
.ToList();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue