단속내역서출력대상 엑셀저장 추가

main
이범준 11 months ago
parent 836c55370c
commit 3c7e6accd3

@ -201,7 +201,7 @@ public class Sprt01Controller extends ApplicationController {
case "시군구명": return "SGG_NM"; case "시군구명": return "SGG_NM";
case "과태료명": return "TASK_SE_NM"; case "과태료명": return "TASK_SE_NM";
case "단속입력구분": return "CRDN_INPT_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_APLCNT_NM";
case "민원접수번호": return "CVLCPT_RCPT_NO"; case "민원접수번호": return "CVLCPT_RCPT_NO";
case "민원접수일자": return xlsx.format(o -> xlsx.str2date(o.get("CVLCPT_RCPT_YMD"))); 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 "CRDN_REG_SE_NM";
case "납부자주소": return "RTPYR_FULL_ADDR"; case "납부자주소": return "RTPYR_FULL_ADDR";
case "거주상태": return "RTPYR_STTS_NM"; case "거주상태": return "RTPYR_STTS_NM";
case "차량번호": return "VHRNO";
case "성명": return "RTPYR_NM";
case "주소": return "RTPYR_ADDR";
case "번지": return "RTPYR_DTL_ADDR";
} }
return ""; return "";
}; };

@ -142,6 +142,18 @@ $(document).ready(function(){
//버튼 이벤트 //버튼 이벤트
$("#btnPrintCrdnList--${pageName}").on("click", () => $P.fnMakeCrdnListFile() ); $("#btnPrintCrdnList--${pageName}").on("click", () => $P.fnMakeCrdnListFile() );
$("#btnPrintCrdnConfirm--${pageName}").on("click", () => $P.fnMakeCrdnConfirmFile() ); $("#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(); $("#tbody--${pageName}").find("tr:eq(0)").click();

Loading…
Cancel
Save