From 6693d7c9be137bd567af95190ba4e28ce117124e Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Tue, 29 Aug 2023 09:37:25 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B0=A8=EC=A0=81=EC=A1=B0=ED=9A=8C=20?= =?UTF-8?q?=EC=8B=A4=ED=8C=A8=20=EB=A9=94=EC=8B=9C=EC=A7=80=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/fims/crdn/crdn05030-info.jsp | 116 ++++++++--------- .../WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp | 117 +++++++++--------- 2 files changed, 119 insertions(+), 114 deletions(-) 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", + + } });