fix report
This commit is contained in:
parent
78b0ad7d1d
commit
9b81e22599
4 changed files with 12 additions and 6 deletions
|
|
@ -1116,7 +1116,7 @@ namespace BMA.EHR.Leave.Service.Controllers
|
||||||
{
|
{
|
||||||
no = count,
|
no = count,
|
||||||
fullName = fullName,
|
fullName = fullName,
|
||||||
dutyTimeName = $"{duty.StartTimeMorning} น.",
|
dutyTimeName = $"{duty.StartTimeMorning} - {duty.EndTimeAfternoon} น.",
|
||||||
checkInLocation = timeStamps == null ? "" : timeStamps.CheckInPOI,
|
checkInLocation = timeStamps == null ? "" : timeStamps.CheckInPOI,
|
||||||
checkInTime = timeStamps == null ? "" : $"{timeStamps.CheckIn.ToString("HH:mm")} น.",
|
checkInTime = timeStamps == null ? "" : $"{timeStamps.CheckIn.ToString("HH:mm")} น.",
|
||||||
|
|
||||||
|
|
@ -1126,7 +1126,13 @@ namespace BMA.EHR.Leave.Service.Controllers
|
||||||
$"{timeStamps.CheckOut.Value.ToString("HH:mm")} น." :
|
$"{timeStamps.CheckOut.Value.ToString("HH:mm")} น." :
|
||||||
"",
|
"",
|
||||||
|
|
||||||
remark = ""
|
remark = timeStamps == null ? "ขาดราชการ" : "",
|
||||||
|
|
||||||
|
checkInDate = timeStamps == null ? "" : timeStamps.CheckIn.Date.ToThaiFullDate2().ToThaiNumber(),
|
||||||
|
checkedOutDate = timeStamps == null ? "" :
|
||||||
|
timeStamps.CheckOut != null ?
|
||||||
|
timeStamps.CheckOut.Value.ToThaiFullDate2().ToThaiNumber() :
|
||||||
|
"",
|
||||||
};
|
};
|
||||||
|
|
||||||
employees.Add(emp);
|
employees.Add(emp);
|
||||||
|
|
|
||||||
|
|
@ -894,7 +894,7 @@ namespace BMA.EHR.Leave.Service.Controllers
|
||||||
LeaveLastEnd = lastLeaveRequest == null ? null : lastLeaveRequest.LeaveEndDate,
|
LeaveLastEnd = lastLeaveRequest == null ? null : lastLeaveRequest.LeaveEndDate,
|
||||||
|
|
||||||
//LeaveTotal = rawData.LeaveStartDate.DiffDay(rawData.LeaveEndDate),
|
//LeaveTotal = rawData.LeaveStartDate.DiffDay(rawData.LeaveEndDate),
|
||||||
LeaveTotal = sumLeave - (sumWeekend + sumHoliday),
|
LeaveTotal = rawData.LeaveTotal,
|
||||||
|
|
||||||
|
|
||||||
LeaveBirthDate = profile.BirthDate,
|
LeaveBirthDate = profile.BirthDate,
|
||||||
|
|
@ -1401,7 +1401,7 @@ namespace BMA.EHR.Leave.Service.Controllers
|
||||||
|
|
||||||
|
|
||||||
//LeaveTotal = rawData.LeaveStartDate.DiffDay(rawData.LeaveEndDate),
|
//LeaveTotal = rawData.LeaveStartDate.DiffDay(rawData.LeaveEndDate),
|
||||||
LeaveTotal = sumLeave - (sumHoliday + sumWeekend),
|
LeaveTotal = rawData.LeaveTotal,
|
||||||
|
|
||||||
LeaveBirthDate = profile.BirthDate,
|
LeaveBirthDate = profile.BirthDate,
|
||||||
LeaveGovernmentDate = profile.DateAppoint == null ? null : profile.DateAppoint.Value,
|
LeaveGovernmentDate = profile.DateAppoint == null ? null : profile.DateAppoint.Value,
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest
|
||||||
|
|
||||||
public DateTime? LeaveLastEnd { get; set; } = DateTime.MinValue;
|
public DateTime? LeaveLastEnd { get; set; } = DateTime.MinValue;
|
||||||
|
|
||||||
public float LeaveTotal { get; set; } = 0;
|
public double LeaveTotal { get; set; } = 0;
|
||||||
|
|
||||||
public DateTime? LeaveBirthDate { get; set; } = DateTime.MinValue;
|
public DateTime? LeaveBirthDate { get; set; } = DateTime.MinValue;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ namespace BMA.EHR.Leave.Service.DTOs.LeaveRequest
|
||||||
|
|
||||||
public DateTime? LeaveLastEnd { get; set; } = DateTime.MinValue;
|
public DateTime? LeaveLastEnd { get; set; } = DateTime.MinValue;
|
||||||
|
|
||||||
public float LeaveTotal { get; set; } = 0;
|
public double LeaveTotal { get; set; } = 0;
|
||||||
|
|
||||||
public DateTime? LeaveBirthDate { get; set; } = DateTime.MinValue;
|
public DateTime? LeaveBirthDate { get; set; } = DateTime.MinValue;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue