From 625bd666a65c28e1a307bb854860543b377ad1f6 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Thu, 25 Jan 2024 15:08:28 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AF=BC=EC=9B=90=EC=83=81=EC=84=B8=20?= =?UTF-8?q?=ED=99=94=EB=A9=B4=20=EC=B0=A8=EC=A0=81=EC=A1=B0=ED=9A=8C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp | 15 ++++++++++++- .../js/fims/framework/cmm/searchUtil.js | 21 ++++++++++++++++++- 2 files changed, 34 insertions(+), 2 deletions(-) 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