diff --git a/Services/CandidateService.cs b/Services/CandidateService.cs index 07daa19..a3452a4 100644 --- a/Services/CandidateService.cs +++ b/Services/CandidateService.cs @@ -2291,7 +2291,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Services foreach (var candidate in candidates) { - if (candidate.Status.Trim().ToUpper() != "CHECKSEAT") + if (candidate.Status.Trim().ToUpper() != "CHECKSEAT" || (candidate.PeriodExam.Fee > 0 && candidate.Status.Trim().ToUpper() != "CHECKPOINT")) continue; candidate.IsShowExamInfo = true; @@ -2621,10 +2621,10 @@ namespace BMA.EHR.Recurit.Exam.Service.Services int calStp2 = cal % 11; int chkDigit = 11 - calStp2; - if (chkDigit == 10) - chkDigit = 1; - else if (chkDigit == 11) - chkDigit = chkDigit % 10; + if (chkDigit >= 10) + { + chkDigit = 0; + } if (citizenIdDigits[12] != chkDigit) throw new Exception(GlobalMessages.CitizenIncorrect);