This commit is contained in:
parent
0e74ad730c
commit
f2d01b8505
1 changed files with 7 additions and 4 deletions
|
|
@ -1186,6 +1186,9 @@ namespace BMA.EHR.Leave.Service.Controllers
|
||||||
var checkout_base = DateTime.Parse($"{DateTime.Now.ToString("yyyy-MM-dd")} {duty.EndTimeAfternoon}");
|
var checkout_base = DateTime.Parse($"{DateTime.Now.ToString("yyyy-MM-dd")} {duty.EndTimeAfternoon}");
|
||||||
|
|
||||||
|
|
||||||
|
// var test = await _processUserTimeStampRepository.GetTimeStampHistoryAsync(userId, year);
|
||||||
|
// return Success(test);
|
||||||
|
|
||||||
var data = (await _processUserTimeStampRepository.GetTimeStampHistoryAsync(userId, year))
|
var data = (await _processUserTimeStampRepository.GetTimeStampHistoryAsync(userId, year))
|
||||||
.Select(d => new CheckInHistoryDto
|
.Select(d => new CheckInHistoryDto
|
||||||
{
|
{
|
||||||
|
|
@ -2491,8 +2494,8 @@ namespace BMA.EHR.Leave.Service.Controllers
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
resultCheckInDateAndTime = DateTime.Parse($"{resultCheckInDate.Value.Date.ToString("yyyy-MM-dd")} {resultCheckInTime}");
|
resultCheckInDateAndTime = resultCheckInDate is null ? null : DateTime.Parse($"{resultCheckInDate.Value.Date.ToString("yyyy-MM-dd")} {resultCheckInTime}");
|
||||||
resultCheckOutDateAndTime = DateTime.Parse($"{resultCheckOutDate.Value.Date.ToString("yyyy-MM-dd")} {resultCheckOutTime}");
|
resultCheckOutDateAndTime = resultCheckOutDate is null ? null : DateTime.Parse($"{resultCheckOutDate.Value.Date.ToString("yyyy-MM-dd")} {resultCheckOutTime}");
|
||||||
|
|
||||||
|
|
||||||
// create result object to return
|
// create result object to return
|
||||||
|
|
@ -2515,8 +2518,8 @@ namespace BMA.EHR.Leave.Service.Controllers
|
||||||
"LATE" :
|
"LATE" :
|
||||||
"NORMAL",
|
"NORMAL",
|
||||||
|
|
||||||
CheckOutStatus = resultCheckInDate == null ? null :
|
CheckOutStatus = resultCheckInDateAndTime == null ? null :
|
||||||
resultCheckOutDate == null ? null :
|
resultCheckOutDateAndTime == null ? null :
|
||||||
DateTime.Parse(resultCheckOutDateAndTime.Value.ToString("yyyy-MM-dd HH:mm")) <
|
DateTime.Parse(resultCheckOutDateAndTime.Value.ToString("yyyy-MM-dd HH:mm")) <
|
||||||
DateTime.Parse($"{resultCheckInDate.Value.Date.ToString("yyyy-MM-dd")} {duty.EndTimeAfternoon}") ?
|
DateTime.Parse($"{resultCheckInDate.Value.Date.ToString("yyyy-MM-dd")} {duty.EndTimeAfternoon}") ?
|
||||||
"ABSENT" :
|
"ABSENT" :
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue