지역명 검증 추가

main
이범준 2 months ago
parent 2d9d648ccf
commit 38c19d0746

@ -398,7 +398,20 @@
let hirerRegNo = $P.$findn("hirerRegNo").val();
if (hirerSeCd == "01") { // 면허번호 라면..
// 지역번호 확인
let hangul = hirerRegNo.replace(/[^ㄱ-힣]/g, "");
if(hangul != ""){
if (["서울","부산","경기","강원","충북","충남","전북","전남","경북","경남","제주","대구","인천","광주","대전","울산"].indexOf(hangul) == -1) {
dialog.alert({
content: "면허등록번호 정보가 정확하지 않습니다."
, init: () => { AppSupport.setDialogZindex(); }
, onOK: () => { }
});
return;
}
}
// 지역번호 확인
if (hirerRegNo.indexOf("서울") != -1) {
hirerRegNo = hirerRegNo.replace("서울", "11");
} else if (hirerRegNo.indexOf("부산") != -1) {

Loading…
Cancel
Save