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 b522f769..2b9266df 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 @@ -891,7 +891,10 @@ $(document).ready(function(){ return; } - var resp = await getVhclInfo($("#sggCd--${pageName}").val(), vhrno, crdnYmd); + + var resp = null; + + resp = await getVhclInfo($("#sggCd--${pageName}").val(), vhrno, crdnYmd); if(!resp.found){ dialog.alert({ @@ -960,7 +963,17 @@ $(document).ready(function(){ $("#addr--${pageName}").val(vehicle.road_nm_adres); //주소 $("#dtlAddr--${pageName}").val(vehicle.use_strnghld_adres_nm); //상세주소 + if("${taskSeCd}" == "DPV"){ + resp = await getVhclDisabledParkingInfo(vhrno); + if(resp.parkingInfo.BOHUN_PARKING_PSBL_YN == "Y" || resp.parkingInfo.PARKING_PSBL_YN == "Y") { + $("#parkngPsbltyRsltCd--${pageName}").val("2"); + } else { + $("#parkngPsbltyRsltCd--${pageName}").val("1"); + } + + } + }); if("${taskSeCd}" == "DPV"){ diff --git a/src/main/webapp/resources/js/fims/framework/cmm/searchUtil.js b/src/main/webapp/resources/js/fims/framework/cmm/searchUtil.js index 017b69b1..1b4b087b 100644 --- a/src/main/webapp/resources/js/fims/framework/cmm/searchUtil.js +++ b/src/main/webapp/resources/js/fims/framework/cmm/searchUtil.js @@ -35,4 +35,23 @@ async function getVhclInfo(sggCd, vhrno, levy_stdde){ } }); }); -}; \ No newline at end of file +}; + +/************************************************************************** +* 장애인 차량여부 조회 +**************************************************************************/ +async function getVhclDisabledParkingInfo(vhrno){ + return new Promise((resolve, reject) => { + json.get({ + url: wctx.url("/intf/disabledParking/parkingInfo"), + data: { + vehicleNo : vhrno + }, + success: function(resp, textStatus, jqXHR) { + resolve(resp); + }, + error: function(jqXHR, textStatus, error) { + } + }); + }); +} \ No newline at end of file