no message
This commit is contained in:
parent
c8cb25e1a9
commit
d41632e4c5
1 changed files with 4 additions and 4 deletions
|
|
@ -2621,10 +2621,10 @@ namespace BMA.EHR.Recurit.Exam.Service.Services
|
||||||
int calStp2 = cal % 11;
|
int calStp2 = cal % 11;
|
||||||
int chkDigit = 11 - calStp2;
|
int chkDigit = 11 - calStp2;
|
||||||
|
|
||||||
if (chkDigit == 10)
|
if (chkDigit >= 10)
|
||||||
chkDigit = 1;
|
{
|
||||||
else if (chkDigit == 11)
|
chkDigit = 0;
|
||||||
chkDigit = chkDigit % 10;
|
}
|
||||||
|
|
||||||
if (citizenIdDigits[12] != chkDigit)
|
if (citizenIdDigits[12] != chkDigit)
|
||||||
throw new Exception(GlobalMessages.CitizenIncorrect);
|
throw new Exception(GlobalMessages.CitizenIncorrect);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue