วันที่รอบเครื่องราชรายงาน
This commit is contained in:
parent
928a4f80f6
commit
410a92820d
1 changed files with 13 additions and 0 deletions
|
|
@ -65,6 +65,19 @@ namespace BMA.EHR.Application.Repositories.Reports
|
|||
return period;
|
||||
}
|
||||
|
||||
public async Task<dynamic> GetDateInsigniaPeriod(Guid id)
|
||||
{
|
||||
var period = await _dbContext.Set<InsigniaPeriod>()
|
||||
.FirstOrDefaultAsync(x => x.Id == id);
|
||||
if (period == null)
|
||||
throw new Exception(GlobalMessages.InsigniaPeriodNotFound);
|
||||
return new
|
||||
{
|
||||
StartDater = period.StartDate.ToThaiFullDate().ToString().ToThaiNumber(),
|
||||
EndDate = period.EndDate.ToThaiFullDate().ToString().ToThaiNumber(),
|
||||
};
|
||||
}
|
||||
|
||||
public async Task<dynamic> GetKhr1Report(Guid id)
|
||||
{
|
||||
var period = await _dbContext.Set<InsigniaPeriod>()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue