merge from CreateEmployeeBug

This commit is contained in:
MahanCh
2025-07-15 11:08:40 +03:30
3 changed files with 80 additions and 5 deletions

View File

@@ -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");