From 2ec9e80796acf5719cca59b20f00719338875740 Mon Sep 17 00:00:00 2001 From: Kittapath Date: Fri, 13 Oct 2023 17:34:37 +0700 Subject: [PATCH] no message --- Services/PeriodExamService.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Services/PeriodExamService.cs b/Services/PeriodExamService.cs index 3761704..c989cbd 100644 --- a/Services/PeriodExamService.cs +++ b/Services/PeriodExamService.cs @@ -1077,7 +1077,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Services candidate.ExamReason = item.ExamReason; candidate.Number = item.Number; var subject = "แจ้งผลการสมัครสอบคัดเลือก " + periodExam.Name; - var body = candidate.FirstName + " " + candidate.LastName + " สถานะการสมัครสอบ: สอบคัดเลือกสำเร็จ"; + var body = candidate.FirstName + " " + candidate.LastName + " สถานะการสมัครสอบ: สอบคัดเลือกสำเร็จ
" + "ผลการสอบของท่าน คือ " + candidate.Pass; if (candidate.Email != null && candidate.Email != "") _mailService.SendMailToUser(subject, body, candidate.Email); candidate.Status = "done"; } @@ -1254,9 +1254,9 @@ namespace BMA.EHR.Recurit.Exam.Service.Services summarySheet.Cells[row, 22].Value = item.ResultC; summarySheet.Cells[row, 23].Value = item.Pass; - summarySheet.Cells[row, 24].Value = item.PaymentDate == null ? "ยังไม่ชำระเงิน" : "ชำระแล้ว"; - summarySheet.Cells[row, 25].Value = item.PaymentDate == null ? "" : item.PaymentDate.Value.ToThaiShortDateTime(); - summarySheet.Cells[row, 26].Value = item.RegisterDate == null ? "" : item.RegisterDate.Value.ToThaiShortDateTime(); + summarySheet.Cells[row, 24].Value = item.PeriodExam.Fee <= 0 ? "ไม่มีชำระเงิน" : (item.PaymentDate == null ? "ยังไม่ชำระเงิน" : "ชำระแล้ว"); + summarySheet.Cells[row, 25].Value = item.PaymentDate == null ? "-" : item.PaymentDate.Value.ToThaiShortDateTime(); + summarySheet.Cells[row, 26].Value = item.RegisterDate == null ? "-" : item.RegisterDate.Value.ToThaiShortDateTime(); summarySheet.Cells[row, 27].Value = item.ExamReason; row++; }