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();