แก้ model สอบคัดเลือก

This commit is contained in:
Kittapath 2023-10-08 13:58:03 +07:00
parent 5456eda96f
commit 4fb8439968
6 changed files with 131 additions and 63 deletions

View file

@ -123,7 +123,7 @@ namespace BMA.EHR.Report.Service.Controllers
Year = (p.PeriodExam.Year.Value.ToThaiYear().ToString()),
FullName = $"{p.Prefix}{p.FirstName} {p.LastName}",
ExamResult = sr == null ? "" : sr.ExamStatus,
EndDate = (p.PeriodExam.RegisterEndDate.ToThaiFullDate3()),
EndDate = p.PeriodExam.RegisterEndDate == null ? "" : (p.PeriodExam.RegisterEndDate.Value.ToThaiFullDate3()),
AuthName = "นายณัฐพงศ์ ดิษยบุตร",
AuthPosition = "หัวหน้าสำนักงาน ก.ก."
})
@ -206,7 +206,7 @@ namespace BMA.EHR.Report.Service.Controllers
Number = sr == null ? "" : (sr.Number),
// ExamCount = 10,
// ExamCount = GetExamCountTes(p.CitizenId),
ScoreExpire = p.PeriodExam.AnnouncementDate == null ? "" : (p.PeriodExam.AnnouncementDate.AddYears(2).ToThaiShortDate()),
ScoreExpire = p.PeriodExam.AnnouncementDate == null ? "" : (p.PeriodExam.AnnouncementDate.Value.AddYears(2).ToThaiShortDate()),
FullA = sr == null ? "" : (sr.FullA.ToString()),
SumA = sr == null ? "" : (sr.SumA.ToString()),
FullB = sr == null ? "" : (sr.FullB.ToString()),