From 3c7e6accd349eccb9ebfb4c7e007651834aa66fa Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Fri, 15 Dec 2023 17:06:13 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8B=A8=EC=86=8D=EB=82=B4=EC=97=AD=EC=84=9C?= =?UTF-8?q?=EC=B6=9C=EB=A0=A5=EB=8C=80=EC=83=81=20=EC=97=91=EC=85=80?= =?UTF-8?q?=EC=A0=80=EC=9E=A5=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cokr/xit/fims/sprt/web/Sprt01Controller.java | 7 ++++++- .../webapp/WEB-INF/jsp/fims/sprt/sprt01110-info.jsp | 12 ++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java b/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java index 9afc6777..c6973222 100644 --- a/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java +++ b/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java @@ -201,7 +201,7 @@ public class Sprt01Controller extends ApplicationController { case "시군구명": return "SGG_NM"; case "과태료명": return "TASK_SE_NM"; case "단속입력구분": return "CRDN_INPT_SE_NM"; - case "단속일시": return "CRDN_YMD_TM"; + case "단속일시": return xlsx.format(o -> xlsx.str2datetime(o.get("CRDN_YMD_TM"))); case "신고자명": return "CVLCPT_APLCNT_NM"; case "민원접수번호": return "CVLCPT_RCPT_NO"; case "민원접수일자": return xlsx.format(o -> xlsx.str2date(o.get("CVLCPT_RCPT_YMD"))); @@ -242,6 +242,11 @@ public class Sprt01Controller extends ApplicationController { case "단속등록구분": return "CRDN_REG_SE_NM"; case "납부자주소": return "RTPYR_FULL_ADDR"; case "거주상태": return "RTPYR_STTS_NM"; + + case "차량번호": return "VHRNO"; + case "성명": return "RTPYR_NM"; + case "주소": return "RTPYR_ADDR"; + case "번지": return "RTPYR_DTL_ADDR"; } return ""; }; diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01110-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01110-info.jsp index 85d15b9b..67cd1080 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01110-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01110-info.jsp @@ -142,6 +142,18 @@ $(document).ready(function(){ //버튼 이벤트 $("#btnPrintCrdnList--${pageName}").on("click", () => $P.fnMakeCrdnListFile() ); $("#btnPrintCrdnConfirm--${pageName}").on("click", () => $P.fnMakeCrdnConfirmFile() ); + $("#btnExcel--${pageName}").on("click", function(){ + var query = {}; + + var headerInfo = $("#theadTr--${pageName} th").not(".dummy-th").getHeaderInfo(); + query.excelTitle = headerInfo.excelTitle; + query.excelTitleWidth = headerInfo.excelTitleWidth; + query.download = "xls"; + query.crdnIDs = $P.crdnIds.join(","); + var queryStr = toQuery(query); + + document.location.href = wctx.url("/sprt/sprt01/010/list.do") + "?" + queryStr; + }); //첫번째 줄 클릭 $("#tbody--${pageName}").find("tr:eq(0)").click();