차적조회 실패 메시지 추가

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

@ -483,69 +483,71 @@ $(document).ready(function(){
levy_stdde : crdnYmd
},
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){
case "11" : pyrSeCd = "01"; break;
case "12" : pyrSeCd = "02"; break;
case "13" : pyrSeCd = "03"; break;
case "14" : pyrSeCd = "04"; break;
case "15" : pyrSeCd = "05"; break;
}
$("#rtpyrSeCd--${pageName}").val(pyrSeCd);
$("#rtpyrNo--${pageName}").val(vehicle.mber_se_no);
$("#vin--${pageName}").val(vehicle.vin);
$("#vhclNm--${pageName}").val(vehicle.cnm);
$("#vhclColor--${pageName}").val(vehicle.color_nm);
$("#useFuelCd--${pageName}").val(vehicle.use_fuel_code);
if(vehicle.vhcty_asort_code == "1"){ //승용
$("#ffnlgCarmdlCd--${pageName}").val("11");
} else if(vehicle.vhcty_asort_code == "2"){ //승합
$("#ffnlgCarmdlCd--${pageName}").val("12");
} else if(vehicle.vhcty_asort_code == "3"){ //화물
if(vehicle.vhcle_tot_wt <= 4000){
$("#ffnlgCarmdlCd--${pageName}").val("13");
} else {
$("#ffnlgCarmdlCd--${pageName}").val("14");
}
} else if(vehicle.vhcty_asort_code == "4"){ //특수
$("#ffnlgCarmdlCd--${pageName}").val("15");
var pyrSeCd = "";
switch(vehicle.mber_se_code){
case "11" : pyrSeCd = "01"; break;
case "12" : pyrSeCd = "02"; break;
case "13" : pyrSeCd = "03"; break;
case "14" : pyrSeCd = "04"; break;
case "15" : pyrSeCd = "05"; break;
}
$("#rtpyrSeCd--${pageName}").val(pyrSeCd);
$("#rtpyrNo--${pageName}").val(vehicle.mber_se_no);
$("#vin--${pageName}").val(vehicle.vin);
$("#vhclNm--${pageName}").val(vehicle.cnm);
$("#vhclColor--${pageName}").val(vehicle.color_nm);
$("#useFuelCd--${pageName}").val(vehicle.use_fuel_code);
if(vehicle.vhcty_asort_code == "1"){ //승용
$("#ffnlgCarmdlCd--${pageName}").val("11");
} else if(vehicle.vhcty_asort_code == "2"){ //승합
$("#ffnlgCarmdlCd--${pageName}").val("12");
} else if(vehicle.vhcty_asort_code == "3"){ //화물
if(vehicle.vhcle_tot_wt <= 4000){
$("#ffnlgCarmdlCd--${pageName}").val("13");
} else {
//$("#ffnlgCarmdlCd--${pageName}").val("21"); //건설기계
//$("#ffnlgCarmdlCd--${pageName}").val("31"); //이륜차
$("#ffnlgCarmdlCd--${pageName}").val("14");
}
} 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.); //우편번호
//$("#--${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",
//"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 => {
if(resp.rtpyrId != null && resp.vehicle != null){
if(!resp.found){
dialog.alert("차량 정보가 없습니다.");
return;
}
$("#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){
case "11" : pyrSeCd = "01"; break;
case "12" : pyrSeCd = "02"; break;
case "13" : pyrSeCd = "03"; break;
case "14" : pyrSeCd = "04"; break;
case "15" : pyrSeCd = "05"; break;
}
$("#rtpyrSeCd--${pageName}").val(pyrSeCd);
$("#rtpyrNo--${pageName}").val(vehicle.mber_se_no);
$("#vin--${pageName}").val(vehicle.vin);
$("#vhclNm--${pageName}").val(vehicle.cnm);
$("#vhclColor--${pageName}").val(vehicle.color_nm);
$("#useFuelCd--${pageName}").val(vehicle.use_fuel_code);
if(vehicle.vhcty_asort_code == "1"){ //승용
$("#ffnlgCarmdlCd--${pageName}").val("11");
} else if(vehicle.vhcty_asort_code == "2"){ //승합
$("#ffnlgCarmdlCd--${pageName}").val("12");
} else if(vehicle.vhcty_asort_code == "3"){ //화물
if(vehicle.vhcle_tot_wt <= 4000){
$("#ffnlgCarmdlCd--${pageName}").val("13");
} else {
$("#ffnlgCarmdlCd--${pageName}").val("14");
}
} else if(vehicle.vhcty_asort_code == "4"){ //특수
$("#ffnlgCarmdlCd--${pageName}").val("15");
var pyrSeCd = "";
switch(vehicle.mber_se_code){
case "11" : pyrSeCd = "01"; break;
case "12" : pyrSeCd = "02"; break;
case "13" : pyrSeCd = "03"; break;
case "14" : pyrSeCd = "04"; break;
case "15" : pyrSeCd = "05"; break;
}
$("#rtpyrSeCd--${pageName}").val(pyrSeCd);
$("#rtpyrNo--${pageName}").val(vehicle.mber_se_no);
$("#vin--${pageName}").val(vehicle.vin);
$("#vhclNm--${pageName}").val(vehicle.cnm);
$("#vhclColor--${pageName}").val(vehicle.color_nm);
$("#useFuelCd--${pageName}").val(vehicle.use_fuel_code);
if(vehicle.vhcty_asort_code == "1"){ //승용
$("#ffnlgCarmdlCd--${pageName}").val("11");
} else if(vehicle.vhcty_asort_code == "2"){ //승합
$("#ffnlgCarmdlCd--${pageName}").val("12");
} else if(vehicle.vhcty_asort_code == "3"){ //화물
if(vehicle.vhcle_tot_wt <= 4000){
$("#ffnlgCarmdlCd--${pageName}").val("13");
} else {
//$("#ffnlgCarmdlCd--${pageName}").val("21"); //건설기계
//$("#ffnlgCarmdlCd--${pageName}").val("31"); //이륜차
$("#ffnlgCarmdlCd--${pageName}").val("14");
}
} 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.); //우편번호
//$("#--${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",
//"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