From 46497805ac18fd0631f9e5bc59801db52697ba15 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Mon, 30 Oct 2023 14:01:55 +0900 Subject: [PATCH] =?UTF-8?q?=EB=82=A9=EB=B6=80=EC=9E=90=EB=B2=88=ED=98=B8?= =?UTF-8?q?=20=EB=B3=B5=EC=82=AC=20=EA=B8=B0=EB=8A=A5=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/fims/sprt/sprt01010-main.jsp | 147 +++++++++++------- .../WEB-INF/jsp/fims/sprt/sprt01030-info.jsp | 6 +- .../WEB-INF/jsp/fims/sprt/sprt01040-info.jsp | 6 +- .../WEB-INF/jsp/fims/sprt/sprt01050-info.jsp | 2 +- 4 files changed, 95 insertions(+), 66 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp index 3de73b07..1000858d 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp @@ -11,6 +11,14 @@ + +
+ +
+
@@ -111,6 +119,69 @@ integrationSearchControl.downdataset.onSelectionChange = (selected) => { **************************************************************************/ var integrationSearch = {}; +integrationSearch.toast = new bootstrap.Toast(document.getElementById('divToast--${pageName}'), { + animation: true, + autohide: true, + delay: 2000 +}); + + +// 검색 조건 파라미터 가져오기 +integrationSearch.getParams = () => { + var formFields = new FimsFormFields("#frmSearch--${pageName}"); + var formData = formFields.get(); + + return formData; +} + +// 초기화 +integrationSearch.fnReset = () => { + + integrationSearchControl.updataset.clear(); + integrationSearchControl.downdataset.clear(); + +} + +// 검색 +integrationSearch.fnSearchList = () => { + // 검색조건 + integrationSearchControl.query = integrationSearch.getParams(); + + var query = integrationSearchControl.query; + var minKeyword = false; + var keys = Object.keys(query); + for(var i=0; i < keys.length; i++){ + var key = keys[i]; + if(!key.startsWith("isch")){ + continue; + } + if(key.startsWith("ischOnlyData") || key.startsWith("ischExclData") || key.startsWith("ischInclData") + || key.endsWith("Similar")){ + continue; + } + + var value = query[key]; + if(value != null && value != ""){ + minKeyword = true; + break; + } + } + + if(!minKeyword){ + dialog.alert("검색조건을 입력하세요."); + return; + } + + $("#upGridTabs--${pageName}").find("button").not(":eq(0)").removeClass("active"); + $("#upGridTabs--${pageName}").find("button").eq(0).addClass("active"); + $("#downGridTabs--${pageName}").find("button").not(":eq(0)").removeClass("active"); + $("#downGridTabs--${pageName}").find("button").eq(0).addClass("active"); + integrationSearchControl.updataset.clear(); + integrationSearchControl.downdataset.clear(); + + integrationSearchControl.load(); +} + integrationSearch.renderList = (updown, tabGroup) => { var tbody = updown == "up" ? "upTbody--${pageName}" : "downTbody--${pageName}"; @@ -165,70 +236,26 @@ integrationSearch.renderList = (updown, tabGroup) => { fn_securityModeToggle($("#securityMode--top").is(":checked")); } -integrationSearch.setCurrent = () => { - console.log(1); -} - -// 검색 조건 파라미터 가져오기 -integrationSearch.getParams = () => { - var formFields = new FimsFormFields("#frmSearch--${pageName}"); - var formData = formFields.get(); - return formData; -} +// 엑셀 +integrationSearch.fnExcel = (updown) => { -// 초기화 -integrationSearch.fnReset = () => { - - integrationSearchControl.updataset.clear(); - integrationSearchControl.downdataset.clear(); - } - -// 검색 -integrationSearch.fnSearchList = () => { - // 검색조건 - integrationSearchControl.query = integrationSearch.getParams(); - - var query = integrationSearchControl.query; - var minKeyword = false; - var keys = Object.keys(query); - for(var i=0; i < keys.length; i++){ - var key = keys[i]; - if(!key.startsWith("isch")){ - continue; - } - if(key.startsWith("ischOnlyData") || key.startsWith("ischExclData") || key.startsWith("ischInclData") - || key.endsWith("Similar")){ - continue; - } - - var value = query[key]; - if(value != null && value != ""){ - minKeyword = true; - break; - } +//납부자번호 복사 +integrationSearch.fnCopyPyrNo = (updown) => { + var cur; + if(updown == "up"){ + cur = integrationSearchControl.updataset.getCurrent(); + } else { + cur = integrationSearchControl.downdataset.getCurrent(); } - if(!minKeyword){ - dialog.alert("검색조건을 입력하세요."); - return; + if(cur != null){ + navigator.clipboard.writeText(cur.RTPYR_NO); + $("#toastText--${pageName}").html("납부자번호가 복사되었습니다."); + integrationSearch.toast.show(); } - - $("#upGridTabs--${pageName}").find("button").not(":eq(0)").removeClass("active"); - $("#upGridTabs--${pageName}").find("button").eq(0).addClass("active"); - $("#downGridTabs--${pageName}").find("button").not(":eq(0)").removeClass("active"); - $("#downGridTabs--${pageName}").find("button").eq(0).addClass("active"); - integrationSearchControl.updataset.clear(); - integrationSearchControl.downdataset.clear(); - - integrationSearchControl.load(); -} - -// 엑셀 -integrationSearch.fnExcel = () => { - } //개별총정보 dialog @@ -269,9 +296,11 @@ integrationSearch.setEvent = () => { $("#btnReset--${pageName}").on("click", function(){ integrationSearch.fnReset(); }); $("#btnSearch--${pageName}").on("click", function(){ integrationSearch.fnSearchList(); }); - $("#btnUpExcel--${pageName}").on("click", function(){ integrationSearch.fnExcel(); }); - $("#btnDownExcel--${pageName}").on("click", function(){ integrationSearch.fnExcel(); }); + $("#btnUpExcel--${pageName}").on("click", function(){ integrationSearch.fnExcel("up"); }); + $("#btnDownExcel--${pageName}").on("click", function(){ integrationSearch.fnExcel("down"); }); + $("#btnUpCopyPyrNo--${pageName}").on("click", function(){ integrationSearch.fnCopyPyrNo("up"); }); + $("#btnDownCopyPyrNo--${pageName}").on("click", function(){ integrationSearch.fnCopyPyrNo("down"); }); //$("#btn").on("click", function(){ }); diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01030-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01030-info.jsp index 2a21406f..f3454051 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01030-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01030-info.jsp @@ -37,9 +37,9 @@ title="가상계좌개별생성"> 가상계좌개별생성 - -