차적조회 실패 메시지 추가

main
이범준 1 year ago
parent 5407edcba7
commit 6693d7c9be

@ -483,69 +483,71 @@ $(document).ready(function(){
levy_stdde : crdnYmd levy_stdde : crdnYmd
}, },
success:resp => { success:resp => {
if(!resp.found){
dialog.alert("차량 정보가 없습니다.");
return;
}
if(resp.rtpyrId != null && resp.vehicle != null){ $("#rtpyrId--${pageName}").val(resp.rtpyrId);
$("#rtpyrId--${pageName}").val(resp.rtpyrId); var vehicle = resp.vehicle;
var vehicle = resp.vehicle; $("#rtpyrNm--${pageName}").val(vehicle.mber_nm);
$("#rtpyrNm--${pageName}").val(vehicle.mber_nm); var pyrSeCd = "";
switch(vehicle.mber_se_code){
var pyrSeCd = ""; case "11" : pyrSeCd = "01"; break;
switch(vehicle.mber_se_code){ case "12" : pyrSeCd = "02"; break;
case "11" : pyrSeCd = "01"; break; case "13" : pyrSeCd = "03"; break;
case "12" : pyrSeCd = "02"; break; case "14" : pyrSeCd = "04"; break;
case "13" : pyrSeCd = "03"; break; case "15" : pyrSeCd = "05"; break;
case "14" : pyrSeCd = "04"; break; }
case "15" : pyrSeCd = "05"; break; $("#rtpyrSeCd--${pageName}").val(pyrSeCd);
}
$("#rtpyrSeCd--${pageName}").val(pyrSeCd);
$("#rtpyrNo--${pageName}").val(vehicle.mber_se_no); $("#rtpyrNo--${pageName}").val(vehicle.mber_se_no);
$("#vin--${pageName}").val(vehicle.vin); $("#vin--${pageName}").val(vehicle.vin);
$("#vhclNm--${pageName}").val(vehicle.cnm); $("#vhclNm--${pageName}").val(vehicle.cnm);
$("#vhclColor--${pageName}").val(vehicle.color_nm); $("#vhclColor--${pageName}").val(vehicle.color_nm);
$("#useFuelCd--${pageName}").val(vehicle.use_fuel_code); $("#useFuelCd--${pageName}").val(vehicle.use_fuel_code);
if(vehicle.vhcty_asort_code == "1"){ //승용 if(vehicle.vhcty_asort_code == "1"){ //승용
$("#ffnlgCarmdlCd--${pageName}").val("11"); $("#ffnlgCarmdlCd--${pageName}").val("11");
} else if(vehicle.vhcty_asort_code == "2"){ //승합 } else if(vehicle.vhcty_asort_code == "2"){ //승합
$("#ffnlgCarmdlCd--${pageName}").val("12"); $("#ffnlgCarmdlCd--${pageName}").val("12");
} else if(vehicle.vhcty_asort_code == "3"){ //화물 } else if(vehicle.vhcty_asort_code == "3"){ //화물
if(vehicle.vhcle_tot_wt <= 4000){ if(vehicle.vhcle_tot_wt <= 4000){
$("#ffnlgCarmdlCd--${pageName}").val("13"); $("#ffnlgCarmdlCd--${pageName}").val("13");
} else {
$("#ffnlgCarmdlCd--${pageName}").val("14");
}
} else if(vehicle.vhcty_asort_code == "4"){ //특수
$("#ffnlgCarmdlCd--${pageName}").val("15");
} else { } else {
//$("#ffnlgCarmdlCd--${pageName}").val("21"); //건설기계 $("#ffnlgCarmdlCd--${pageName}").val("14");
//$("#ffnlgCarmdlCd--${pageName}").val("31"); //이륜차
} }
} else if(vehicle.vhcty_asort_code == "4"){ //특수
$("#ffnlgCarmdlCd--${pageName}").val("15");
} else {
//$("#ffnlgCarmdlCd--${pageName}").val("21"); //건설기계
//$("#ffnlgCarmdlCd--${pageName}").val("31"); //이륜차
//$("#--${pageName}").val(vehicle.);
//$("#addr--${pageName}").val(vehicle.); //주소
//$("#dtlAddr--${pageName}").val(vehicle.); //상세주소
//$("#zip--${pageName}").val(vehicle.); //우편번호
//"use_strnghld_legaldong_code" : "4136010300",
//"use_strnghld_adstrd_code" : "4136053000",
//"use_strnghld_mntn" : "",
//"use_strnghld_lnbr" : "",
//"use_strnghld_ho" : "",
//"use_strnghld_adres_nm" : "402호(금곡동, 힐하우스)",
//"use_strnghld_road_nm_code" : "413604391125",
//"usgsrhld_undgrnd_buld_se_code" : "0",
//"use_strnghld_buld_main_no" : "16",
//"use_strnghld_buld_sub_no" : "2",
} }
//$("#--${pageName}").val(vehicle.);
//$("#addr--${pageName}").val(vehicle.); //주소
//$("#dtlAddr--${pageName}").val(vehicle.); //상세주소
//$("#zip--${pageName}").val(vehicle.); //우편번호
//"use_strnghld_legaldong_code" : "4136010300",
//"use_strnghld_adstrd_code" : "4136053000",
//"use_strnghld_mntn" : "",
//"use_strnghld_lnbr" : "",
//"use_strnghld_ho" : "",
//"use_strnghld_adres_nm" : "402호(금곡동, 힐하우스)",
//"use_strnghld_road_nm_code" : "413604391125",
//"usgsrhld_undgrnd_buld_se_code" : "0",
//"use_strnghld_buld_main_no" : "16",
//"use_strnghld_buld_sub_no" : "2",
} }
}); });

@ -910,68 +910,71 @@ $(document).ready(function(){
}, },
success:resp => { success:resp => {
if(resp.rtpyrId != null && resp.vehicle != null){ if(!resp.found){
dialog.alert("차량 정보가 없습니다.");
$("#rtpyrId--${pageName}").val(resp.rtpyrId); return;
}
var vehicle = resp.vehicle;
$("#rtpyrId--${pageName}").val(resp.rtpyrId);
$("#rtpyrNm--${pageName}").val(vehicle.mber_nm);
var vehicle = resp.vehicle;
var pyrSeCd = "";
switch(vehicle.mber_se_code){ $("#rtpyrNm--${pageName}").val(vehicle.mber_nm);
case "11" : pyrSeCd = "01"; break;
case "12" : pyrSeCd = "02"; break; var pyrSeCd = "";
case "13" : pyrSeCd = "03"; break; switch(vehicle.mber_se_code){
case "14" : pyrSeCd = "04"; break; case "11" : pyrSeCd = "01"; break;
case "15" : pyrSeCd = "05"; break; case "12" : pyrSeCd = "02"; break;
} case "13" : pyrSeCd = "03"; break;
$("#rtpyrSeCd--${pageName}").val(pyrSeCd); case "14" : pyrSeCd = "04"; break;
case "15" : pyrSeCd = "05"; break;
}
$("#rtpyrSeCd--${pageName}").val(pyrSeCd);
$("#rtpyrNo--${pageName}").val(vehicle.mber_se_no); $("#rtpyrNo--${pageName}").val(vehicle.mber_se_no);
$("#vin--${pageName}").val(vehicle.vin); $("#vin--${pageName}").val(vehicle.vin);
$("#vhclNm--${pageName}").val(vehicle.cnm); $("#vhclNm--${pageName}").val(vehicle.cnm);
$("#vhclColor--${pageName}").val(vehicle.color_nm); $("#vhclColor--${pageName}").val(vehicle.color_nm);
$("#useFuelCd--${pageName}").val(vehicle.use_fuel_code); $("#useFuelCd--${pageName}").val(vehicle.use_fuel_code);
if(vehicle.vhcty_asort_code == "1"){ //승용 if(vehicle.vhcty_asort_code == "1"){ //승용
$("#ffnlgCarmdlCd--${pageName}").val("11"); $("#ffnlgCarmdlCd--${pageName}").val("11");
} else if(vehicle.vhcty_asort_code == "2"){ //승합 } else if(vehicle.vhcty_asort_code == "2"){ //승합
$("#ffnlgCarmdlCd--${pageName}").val("12"); $("#ffnlgCarmdlCd--${pageName}").val("12");
} else if(vehicle.vhcty_asort_code == "3"){ //화물 } else if(vehicle.vhcty_asort_code == "3"){ //화물
if(vehicle.vhcle_tot_wt <= 4000){ if(vehicle.vhcle_tot_wt <= 4000){
$("#ffnlgCarmdlCd--${pageName}").val("13"); $("#ffnlgCarmdlCd--${pageName}").val("13");
} else {
$("#ffnlgCarmdlCd--${pageName}").val("14");
}
} else if(vehicle.vhcty_asort_code == "4"){ //특수
$("#ffnlgCarmdlCd--${pageName}").val("15");
} else { } else {
//$("#ffnlgCarmdlCd--${pageName}").val("21"); //건설기계 $("#ffnlgCarmdlCd--${pageName}").val("14");
//$("#ffnlgCarmdlCd--${pageName}").val("31"); //이륜차
} }
} else if(vehicle.vhcty_asort_code == "4"){ //특수
$("#ffnlgCarmdlCd--${pageName}").val("15");
} else {
//$("#ffnlgCarmdlCd--${pageName}").val("21"); //건설기계
//$("#ffnlgCarmdlCd--${pageName}").val("31"); //이륜차
//$("#--${pageName}").val(vehicle.);
//$("#addr--${pageName}").val(vehicle.); //주소
//$("#dtlAddr--${pageName}").val(vehicle.); //상세주소
//$("#zip--${pageName}").val(vehicle.); //우편번호
//"use_strnghld_legaldong_code" : "4136010300",
//"use_strnghld_adstrd_code" : "4136053000",
//"use_strnghld_mntn" : "",
//"use_strnghld_lnbr" : "",
//"use_strnghld_ho" : "",
//"use_strnghld_adres_nm" : "402호(금곡동, 힐하우스)",
//"use_strnghld_road_nm_code" : "413604391125",
//"usgsrhld_undgrnd_buld_se_code" : "0",
//"use_strnghld_buld_main_no" : "16",
//"use_strnghld_buld_sub_no" : "2",
} }
//$("#--${pageName}").val(vehicle.);
//$("#addr--${pageName}").val(vehicle.); //주소
//$("#dtlAddr--${pageName}").val(vehicle.); //상세주소
//$("#zip--${pageName}").val(vehicle.); //우편번호
//"use_strnghld_legaldong_code" : "4136010300",
//"use_strnghld_adstrd_code" : "4136053000",
//"use_strnghld_mntn" : "",
//"use_strnghld_lnbr" : "",
//"use_strnghld_ho" : "",
//"use_strnghld_adres_nm" : "402호(금곡동, 힐하우스)",
//"use_strnghld_road_nm_code" : "413604391125",
//"usgsrhld_undgrnd_buld_se_code" : "0",
//"use_strnghld_buld_main_no" : "16",
//"use_strnghld_buld_sub_no" : "2",
} }
}); });

Loading…
Cancel
Save