From c40e0fc6388a59724edfa9cacfac29163fe1ac5d Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Wed, 11 Oct 2023 15:22:32 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A3=BC=EC=86=8C=EA=B2=80=EC=83=89(API?= =?UTF-8?q?=EC=97=B0=EA=B3=84)=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jsp/fims/payer/payer01020-info.jsp | 36 ++- .../webapp/resources/html/searchAddr.html | 296 ++++++++++++++++++ 2 files changed, 330 insertions(+), 2 deletions(-) create mode 100644 src/main/webapp/resources/html/searchAddr.html diff --git a/src/main/webapp/WEB-INF/jsp/fims/payer/payer01020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/payer/payer01020-info.jsp index 5761a765..fa3371c3 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/payer/payer01020-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/payer/payer01020-info.jsp @@ -335,9 +335,41 @@ // 우편번호 검색 fnZip${pageName} = () => { - + + var callbackFuncName = "fnZipReturn${pageName}"; + + var popupWidth = 900; + var popupHeight = 700; + + var popupX = (window.screen.width / 2) - (popupWidth / 2); + var popupY= (window.screen.height / 2) - (popupHeight / 2); + + window.open( + wctx.url("/resources/html/searchAddr.html"+"?callbackFuncName="+callbackFuncName) + ,"searchAddr" + ,'status=no, height=' + popupHeight + ', width=' + popupWidth + ', left='+ popupX + ', top='+ popupY + ); } - + // 우편번호 검색 결과 + fnZipReturn${pageName} = (obj) => { + + $("#addr--${pageName}").val(obj.ADDR); // 주소 + $("#zip--${pageName}").val(obj.ZIP); // 우편번호 + $("#dtlAddr--${pageName}").val(obj.DTL_ADDR); // 상세 주소 + + $("#roadNmCd--${pageName}").val(obj.ROAD_NM_CD); // + $("#udgdSeCd--${pageName}").val(obj.UDGD_SE_CD); // + $("#bmno--${pageName}").val(obj.BMNO); // + $("#bsno--${pageName}").val(obj.BSNO); // + $("#bldgMngNo--${pageName}").val(obj.BLDG_MNG_NO); // + $("#stdgCd--${pageName}").val(obj.STDG_CD); // + $("#mtnSeCd--${pageName}").val(obj.MTN_SE_CD); // + $("#mno--${pageName}").val(obj.MNO); // + $("#sno--${pageName}").val(obj.SNO); // + $("#dongCd--${pageName}").val(obj.DONG_CD); // + + } + // 화면에서 보여주는 주소입력 부분 수정 fnEdit${pageName} = () => { $("#rtpyrInptSeCd--${pageName}").val("01"); // 입력 구분 diff --git a/src/main/webapp/resources/html/searchAddr.html b/src/main/webapp/resources/html/searchAddr.html new file mode 100644 index 00000000..a9f79a59 --- /dev/null +++ b/src/main/webapp/resources/html/searchAddr.html @@ -0,0 +1,296 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +주소검색 + + +
+
+ + + + + + + +
+
+ +
+ +
+ +
+ +
    +
+
+
+
+
+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file