This commit is contained in:
parent
7ee1477ee2
commit
65e85b7194
1 changed files with 13 additions and 12 deletions
|
|
@ -501,13 +501,18 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
int calStp2 = cal % 11;
|
||||
int chkDigit = 11 - calStp2;
|
||||
|
||||
if (chkDigit == 10)
|
||||
//////if (chkDigit == 10)
|
||||
//////{
|
||||
////// chkDigit = 1;
|
||||
//////}
|
||||
//////else if (chkDigit == 11)
|
||||
//////{
|
||||
////// chkDigit = chkDigit % 10;
|
||||
//////}
|
||||
|
||||
if (chkDigit >= 10)
|
||||
{
|
||||
chkDigit = 1;
|
||||
}
|
||||
else if (chkDigit == 11)
|
||||
{
|
||||
chkDigit = chkDigit % 10;
|
||||
chkDigit = 0;
|
||||
}
|
||||
|
||||
if (citizenIdDigits[12] != chkDigit)
|
||||
|
|
@ -817,13 +822,9 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
int calStp2 = cal % 11;
|
||||
int chkDigit = 11 - calStp2;
|
||||
|
||||
if (chkDigit == 10)
|
||||
if (chkDigit >= 10)
|
||||
{
|
||||
chkDigit = 1;
|
||||
}
|
||||
else if (chkDigit == 11)
|
||||
{
|
||||
chkDigit = chkDigit % 10;
|
||||
chkDigit = 0;
|
||||
}
|
||||
|
||||
if (citizenIdDigits[12] != chkDigit)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue