แก้ประ

This commit is contained in:
Kittapath 2024-06-07 15:47:06 +07:00
parent d47df139ed
commit b7fd1b38a6
2 changed files with 3 additions and 3 deletions

View file

@ -69,7 +69,7 @@ namespace BMA.EHR.Application.Repositories.Reports
var retire = await _dbContext.Set<RetirementPeriod>()
.Include(x => x.RetirementProfiles)
.FirstOrDefaultAsync(x => x.Id == retireId);
var retires = new List<dynamic>();
// var retires = new List<dynamic>();
if (retire == null)
{
var retireHistorys = await _dbContext.Set<RetirementPeriodHistory>().AsQueryable()
@ -126,6 +126,7 @@ namespace BMA.EHR.Application.Repositories.Reports
else
{
var profile_retire = await _dbContext.Set<RetirementProfile>()
.Include(x => x.RetirementPeriod)
.Where(x => x.RetirementPeriod == retire && (retire.TypeReport == null || retire.TypeReport == x.Remove))
.OrderBy(x => x.Order)
.Select(x => new
@ -193,7 +194,7 @@ namespace BMA.EHR.Application.Repositories.Reports
// retires.Add(data);
// }
return new { retire.Detail, retire.Id, retire.CreatedAt, Year = retire.Year.ToThaiYear().ToString().ToThaiNumber(), retire.Round, retire.Type, retire.TypeReport, Total = profile_retire.Count.ToString().ToThaiNumber(), profile = retires };
return new { retire.Detail, retire.Id, retire.CreatedAt, Year = retire.Year.ToThaiYear().ToString().ToThaiNumber(), retire.Round, retire.Type, retire.TypeReport, Total = profile_retire.Count.ToString().ToThaiNumber(), profile = profile_retire };
}
}
#endregion

View file

@ -157,7 +157,6 @@ namespace BMA.EHR.Report.Service.Controllers
var tblProfile = (Telerik.Reporting.Table)report.Items["detailSection1"].Items["table1"];
tblProfile.DataSource = _profileList;
}
// return Success(retire);
System.Collections.Hashtable deviceInfo = new System.Collections.Hashtable();
InstanceReportSource instanceReportSource = new InstanceReportSource()
{