แก้รายงาน transfer

This commit is contained in:
Harid Promsri (Bright) 2023-10-03 13:54:51 +07:00
parent c9d0800461
commit 0b5518409a
16 changed files with 5 additions and 5 deletions

View file

@ -45,7 +45,7 @@ namespace BMA.EHR.Application.Repositories.Reports
.Where(x => x.Id == id)
.FirstOrDefaultAsync();
var currentdate = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).ToThaiFullDate().ToString().ToThaiNumber().Remove(0, 16);
var currentdate = DateTime.Parse(DateTime.Now.ToString("yyyy-MM")).ToThaiFullDate().ToString().ToThaiNumber().Remove(0, 15);
return new
{
CurrentDate = currentdate,
@ -62,7 +62,7 @@ namespace BMA.EHR.Application.Repositories.Reports
.Include(x => x.Profile)
.Where(x => x.Id == id)
.FirstOrDefaultAsync();
var currentdate = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).ToThaiFullDate().ToString().ToThaiNumber().Remove(0, 16);
var currentdate = DateTime.Parse(DateTime.Now.ToString("yyyy-MM")).ToThaiFullDate().ToString().ToThaiNumber().Remove(0, 15);
return new
{
CurrentDate = currentdate,
@ -79,7 +79,7 @@ namespace BMA.EHR.Application.Repositories.Reports
.Include(x => x.Profile)
.Where(x => x.Id == id)
.FirstOrDefaultAsync();
var currentdate = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).ToThaiFullDate().ToString().ToThaiNumber().Remove(0, 16);
var currentdate = DateTime.Parse(DateTime.Now.ToString("yyyy-MM")).ToThaiFullDate().ToString().ToThaiNumber().Remove(0, 15);
return new
{
CurrentDate = currentdate,
@ -101,7 +101,7 @@ namespace BMA.EHR.Application.Repositories.Reports
.Include(x => x.Profile)
.Where(x => x.Id == id)
.FirstOrDefaultAsync();
var currentdate = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).ToThaiFullDate().ToString().ToThaiNumber().Remove(0, 16);
var currentdate = DateTime.Parse(DateTime.Now.ToString("yyyy-MM")).ToThaiFullDate().ToString().ToThaiNumber().Remove(0, 15);
return new
{
CurrentDate = currentdate,
@ -123,7 +123,7 @@ namespace BMA.EHR.Application.Repositories.Reports
.Include(x => x.Profile)
.Where(x => x.Id == id)
.FirstOrDefaultAsync();
var currentdate = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).ToThaiFullDate().ToString().ToThaiNumber().Remove(0, 16);
var currentdate = DateTime.Parse(DateTime.Now.ToString("yyyy-MM")).ToThaiFullDate().ToString().ToThaiNumber().Remove(0, 15);
return new
{
CurrentDate = currentdate,