From 3f769d0d75e0f1320982c45e0b5176682e9db5f8 Mon Sep 17 00:00:00 2001 From: harid Date: Wed, 26 Nov 2025 17:36:56 +0700 Subject: [PATCH] =?UTF-8?q?User=20=E0=B8=95=E0=B9=89=E0=B8=AD=E0=B8=87?= =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B9=83=E0=B8=AB=E0=B9=89=E0=B8=AA?= =?UTF-8?q?=E0=B8=B2=E0=B8=A1=E0=B8=B2=E0=B8=A3=E0=B8=96=20"=E0=B8=9B?= =?UTF-8?q?=E0=B8=B4=E0=B8=94"=20=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=94?= =?UTF-8?q?=E0=B8=B2=E0=B8=A7=E0=B8=99=E0=B9=8C=E0=B9=82=E0=B8=AB=E0=B8=A5?= =?UTF-8?q?=E0=B8=94=E0=B9=83=E0=B8=9A=E0=B8=AA=E0=B8=A1=E0=B8=B1=E0=B8=84?= =?UTF-8?q?=E0=B8=A3=E0=B8=AA=E0=B8=AD=E0=B8=9A=E0=B9=84=E0=B8=94=E0=B9=89?= =?UTF-8?q?=20#2041?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Request/RequestApproveShowExamInfo.cs | 2 ++ Services/CandidateService.cs | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Request/RequestApproveShowExamInfo.cs b/Request/RequestApproveShowExamInfo.cs index b4c5431..f5d5ab8 100644 --- a/Request/RequestApproveShowExamInfo.cs +++ b/Request/RequestApproveShowExamInfo.cs @@ -5,5 +5,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Request public class RequestApproveShowExamInfo { public string? ExamId { get; set; } + + public bool? Status { get; set; } } } diff --git a/Services/CandidateService.cs b/Services/CandidateService.cs index 8139318..e760bbe 100644 --- a/Services/CandidateService.cs +++ b/Services/CandidateService.cs @@ -2276,7 +2276,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Services await _context.SaveChangesAsync(); } - public async Task AdminCheckShowExamInfoService(string examId) + public async Task AdminCheckShowExamInfoService(string examId, bool status) { var examGuid = Guid.Parse(examId); var periodExam = await _context.PeriodExams.AsQueryable() @@ -2287,7 +2287,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Services var candidates = await _context.Candidates.AsQueryable() .Include(x => x.PeriodExam) - .Where(x => x.PeriodExam.Id == examGuid && x.IsShowExamInfo == false) + .Where(x => x.PeriodExam.Id == examGuid /*&& x.IsShowExamInfo == false*/) .ToListAsync(); foreach (var candidate in candidates) @@ -2295,7 +2295,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Services if (candidate.Status.Trim().ToUpper() == "REGISTER" && candidate.Status.Trim().ToUpper() == "CHECKREGISTER" && candidate.Status.Trim().ToUpper() == "PAYMENT") continue; - candidate.IsShowExamInfo = true; + candidate.IsShowExamInfo = status; } await _context.SaveChangesAsync();