แก้วันที่ในรายงานเป็นเลขไทย

This commit is contained in:
Suphonchai Phoonsawat 2024-01-03 17:07:04 +07:00
parent 7dd51aa629
commit a61bc8fc77

View file

@ -883,8 +883,8 @@ namespace BMA.EHR.Leave.Service.Controllers
reportName = "LeaveHalfYear-Officer",
data = new
{
leaveDateStart = req.StartDate.Date.ToThaiShortDate(),
leaveDateEnd = req.EndDate.Date.ToThaiShortDate(),
leaveDateStart = req.StartDate.Date.ToThaiShortDate().ToThaiNumber(),
leaveDateEnd = req.EndDate.Date.ToThaiShortDate().ToThaiNumber(),
organizationName = profile.First().Oc ?? "",
leaveTitleType = req.Type == "FULL" ? "หนึ่งปี" : "ครึ่งปี",
employees = employees
@ -1051,8 +1051,8 @@ namespace BMA.EHR.Leave.Service.Controllers
reportName = "LeaveHalfYear-Employee",
data = new
{
leaveDateStart = req.StartDate.Date.ToThaiShortDate(),
leaveDateEnd = req.EndDate.Date.ToThaiShortDate(),
leaveDateStart = req.StartDate.Date.ToThaiShortDate().ToThaiNumber(),
leaveDateEnd = req.EndDate.Date.ToThaiShortDate().ToThaiNumber(),
organizationName = profile.First().Oc ?? "",
leaveTitleType = req.Type == "FULL" ? "หนึ่งปี" : "ครึ่งปี",
employees = employees
@ -1137,7 +1137,7 @@ namespace BMA.EHR.Leave.Service.Controllers
{
DateTimeStamp = date.Date.ToThaiFullDate(),
officerTotal = profile.Count,
workTotal = count - 1,
workTotal = (count - 1),
restTotal = 0,
sickTotal = 0,
lateTotal = 0,