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();
|
||||
|
||||
|
|
|
|||
|
|
@ -301,6 +301,8 @@ namespace BMA.EHR.Leave.Service.Controllers
|
|||
approver = list.First().Name;
|
||||
}
|
||||
|
||||
var leaveLast = await _leaveRequestRepository.GetLeaveLastByTypeForUserAsync(userId, req.Type);
|
||||
|
||||
var result = new GetUserLeaveProfileResultDto
|
||||
{
|
||||
DateSendLeave = DateTime.Now.Date,
|
||||
|
|
@ -318,6 +320,7 @@ namespace BMA.EHR.Leave.Service.Controllers
|
|||
DateAppoint = profile.DateAppoint == null ? null : profile.DateAppoint.Value.Date,
|
||||
Salary = lastSalary == null ? 0 : (int)lastSalary.Amount.Value,
|
||||
SalaryText = lastSalary == null ? "" : ((int)lastSalary.Amount.Value).ToThaiBahtText(false),
|
||||
LeaveLast = leaveLast == null ? null : leaveLast
|
||||
};
|
||||
|
||||
return Success(result);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue