แก้รายงานทดลองงาน, เครื่องราช

This commit is contained in:
Harid Promsri (Bright) 2023-10-20 16:19:28 +07:00
parent 443c42252c
commit 929d9d5c96
5 changed files with 48 additions and 18 deletions

View file

@ -872,7 +872,7 @@ namespace BMA.EHR.Application.Repositories.Reports
foreach (var ins in insigniaList)
{
var count = data.Where(x => x.InsigniaId == ins.InsigniaId).Count();
var mod_val = count <= 50 ? 50 - count : count % 50.0;
var mod_val = count <= 50 ? 50 - count : 50-(count % 50.0);
for (int i = 0; i < mod_val; i++)
{
var p = new
@ -890,7 +890,7 @@ namespace BMA.EHR.Application.Repositories.Reports
data.Add(p);
}
}
return data;
return data.OrderBy(x => x.InsigniaName);
}
//46-ประวัติสำหรับการเสนอขอพระราชทานเหรียญจักรพรรดิมาลา