From c780578acef2bc902844ba1c22066ad940f57bfd Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Thu, 21 Mar 2024 15:54:18 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A3=BC=EC=86=8C=EA=B2=80=EC=83=89=20?= =?UTF-8?q?=EC=B0=BD=EC=9D=B4=20=EB=8B=A4=EC=9D=B4=EC=96=BC=EB=A1=9C?= =?UTF-8?q?=EA=B7=B8=20=EC=B0=BD=EC=9C=BC=EB=A1=9C=20=ED=91=9C=EC=8B=9C?= =?UTF-8?q?=EB=90=98=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95=ED=95=A8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/fims/excl/excl02020-info.jsp | 28 +++---- .../jsp/fims/payer/payer01020-info.jsp | 29 ++++--- .../webapp/resources/html/searchAddr.html | 75 ++++--------------- 3 files changed, 45 insertions(+), 87 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/fims/excl/excl02020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/excl/excl02020-info.jsp index c583d819..3d37a0aa 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/excl/excl02020-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/excl/excl02020-info.jsp @@ -304,19 +304,21 @@ } // 주소 검색 - $P.fnSearchAddr = (title) => { - let popupWidth = 900; - let popupHeight = 700; - let popupX = (window.screen.width / 2) - (popupWidth / 2); - let popupY = (window.screen.height / 2) - (popupHeight / 2); - - window.open( - encodeURI(wctx.url("/resources/html/searchAddr.html" - + "?openerPageName=${pageName}" - )) - , "searchAddr" - , 'status=no, height=' + popupHeight + ', width=' + popupWidth + ', left='+ popupX + ', top='+ popupY - ); + $P.fnSearchAddr = async(title) => { + + var resp = await fetch(wctx.url("/resources/html/searchAddr.html")); + var template = await resp.text(); + + dialog.open({ + id : "searchAddrDialog", + title: title, + size : "lg", + content: template, + init : () => { + $("#searchAddrCallback").val("pageObject['${pageName}'].callbackSearchAddr"); + } + }); + } // 첨부파일 조회 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 7eadc6ab..86c02bd7 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 @@ -317,21 +317,20 @@ } // 우편번호 검색 - 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 - ); + fnZip${pageName} = async() => { + + var resp = await fetch(wctx.url("/resources/html/searchAddr.html")); + var template = await resp.text(); + + dialog.open({ + id : "searchAddrDialog", + title: "주소검색", + size : "lg", + content: template, + init : () => { + $("#searchAddrCallback").val("fnZipReturn${pageName}"); + } + }); } // 우편번호 검색 결과 fnZipReturn${pageName} = (obj) => { diff --git a/src/main/webapp/resources/html/searchAddr.html b/src/main/webapp/resources/html/searchAddr.html index 12a688e2..0b4b7e11 100644 --- a/src/main/webapp/resources/html/searchAddr.html +++ b/src/main/webapp/resources/html/searchAddr.html @@ -1,37 +1,3 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -주소검색 - -
@@ -40,6 +6,7 @@