รายงานสอบคัดเลือก

This commit is contained in:
Suphonchai Phoonsawat 2023-05-23 11:08:57 +07:00
parent e98888ee3a
commit 58b890d6a5
2 changed files with 130 additions and 0 deletions

View file

@ -236,6 +236,8 @@ namespace BMA.EHR.Report.Service.Controllers
$"{p.RecruitImport.Name} ครั้งที่ {p.RecruitImport.Order}/{p.RecruitImport.Year.ToThaiYear()}",
}).ToListAsync();
if (data.Count == 0) return Success();
var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Report", "Recruit", $"rptCandidateList.trdp");
ReportPackager reportPackager = new ReportPackager();
Telerik.Reporting.Report report = null;
@ -329,6 +331,8 @@ namespace BMA.EHR.Report.Service.Controllers
.Where(x => x.ExamResult == "ผ่าน")
.ToListAsync();
if (data.Count == 0) return Success();
var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Report", "Recruit", $"rptPassExamList.trdp");
ReportPackager reportPackager = new ReportPackager();
Telerik.Reporting.Report report = null;