แก้ส่งออกข้อมูลเรียงลำดับ

This commit is contained in:
Suphonchai Phoonsawat 2023-06-16 16:16:35 +07:00
parent 27b2c187ee
commit f6f52f68e9
25 changed files with 61 additions and 46 deletions

View file

@ -1857,6 +1857,7 @@ namespace BMA.EHR.Recruit.Service.Controllers
{
var result = (from r in data.Recruits.ToList()
join s in data_pass.ScoreImport.Scores.Where(x => x.AStatus == "ผ่าน").ToList() on r.ExamId equals s.ExamId
orderby s.SumA descending
select new
{
r.ExamId,
@ -1972,7 +1973,9 @@ namespace BMA.EHR.Recruit.Service.Controllers
Status = s.ExamStatus,
r.PositionName,
s.Number
}).ToList();
}).ToList()
.OrderByDescending(x => x.Sum)
.ToList();
// copy template
System.IO.File.Copy(template_file, exportFile);