diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp index 35d7accd..97057929 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp @@ -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); - - var vehicle = resp.vehicle; - - $("#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); + $("#rtpyrId--${pageName}").val(resp.rtpyrId); + + var vehicle = resp.vehicle; + + $("#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"); + $("#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.); //우편번호 - - //"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", + + } }); diff --git a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp index c7f32e60..3ea795ae 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp @@ -910,68 +910,71 @@ $(document).ready(function(){ }, success:resp => { - if(resp.rtpyrId != null && resp.vehicle != null){ - - $("#rtpyrId--${pageName}").val(resp.rtpyrId); - - var vehicle = resp.vehicle; - - $("#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); + if(!resp.found){ + dialog.alert("차량 정보가 없습니다."); + return; + } + + $("#rtpyrId--${pageName}").val(resp.rtpyrId); + + var vehicle = resp.vehicle; + + $("#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"); + $("#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.); //우편번호 - - //"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", + + } });