merge from CreateEmployeeBug
This commit is contained in:
@@ -84,7 +84,7 @@ function checkNationalCode(nationalCode, birthDate) {
|
||||
|
||||
$("#IdentityLoading").show();
|
||||
$.ajax({
|
||||
//async: false,
|
||||
async: false,
|
||||
url: checkNationalUrl,
|
||||
method: "GET",
|
||||
data: { nationalCode: nationalCode, birthDate: birthDate },
|
||||
@@ -114,7 +114,7 @@ function checkNationalCode(nationalCode, birthDate) {
|
||||
} else {
|
||||
$("#NationalitySelect").val(response.data.nationality).trigger('change');
|
||||
}
|
||||
|
||||
|
||||
if (response.data.gender === "مرد") {
|
||||
$("#gender1").prop("checked", true);
|
||||
} else if (response.data.gender === "زن") {
|
||||
@@ -181,9 +181,8 @@ function checkNationalCode(nationalCode, birthDate) {
|
||||
|
||||
$("#IdentityLoading").hide();
|
||||
}
|
||||
|
||||
}
|
||||
else if (response.data.authorizedCanceled) {
|
||||
else if (response.data?.authorizedCanceled) {
|
||||
$(".checkByHistoryCode2").removeClass("disable");
|
||||
$("#AuthorizedCanceled").removeClass("disable");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user