get รอบเครื่องราชรายงาน

This commit is contained in:
DESKTOP-2S5P7D1\Windows 10 2023-09-05 10:48:48 +07:00
parent b75c3a2c47
commit 928a4f80f6

View file

@ -56,6 +56,15 @@ namespace BMA.EHR.Application.Repositories.Reports
return thaiYear.Substring(2);
}
public async Task<dynamic> GetInsigniaPeriod(Guid id)
{
var period = await _dbContext.Set<InsigniaPeriod>()
.FirstOrDefaultAsync(x => x.Id == id);
if (period == null)
throw new Exception(GlobalMessages.InsigniaPeriodNotFound);
return period;
}
public async Task<dynamic> GetKhr1Report(Guid id)
{
var period = await _dbContext.Set<InsigniaPeriod>()