diff --git a/src/main/java/cokr/xit/fims/crdn/web/CrdnController.java b/src/main/java/cokr/xit/fims/crdn/web/CrdnController.java index 6e33b3d5..aab830d6 100644 --- a/src/main/java/cokr/xit/fims/crdn/web/CrdnController.java +++ b/src/main/java/cokr/xit/fims/crdn/web/CrdnController.java @@ -26,6 +26,7 @@ public class CrdnController extends AbstractCrdnController { public ModelAndView initDataMain() { ModelAndView mav = new ModelAndView(); mav.setViewName("fims/crdn/initData-main"); + mav.addObject("pageSuffix","initData-main"); return mav; } diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/initData-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/initData-main.jsp index 55ede054..1d0ef079 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/initData-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/initData-main.jsp @@ -11,13 +11,13 @@
- - - + + +
-
+ @@ -128,7 +128,7 @@
- +
@@ -165,21 +165,6 @@ var GRID = {}; */ var pageNav = {}; -/** - * 부과대상 데이타 배열 - * 단속ID, 접수번호 - * @type {Array<{crdnId: string, cvlcptRcptNo: string}>} - */ -var IMPOSE_DATA; - -/** - * 단속진행 상태 - * 01 - 초기등록 - * 10 - 부과대상 - * @type {string[]} - */ -var ARR_PRC_STS_CODE = ['01', '10'] - /** * 팝업 객체 @@ -216,7 +201,7 @@ crdnControl.onDatasetChange = obj => { var prefix = obj.infoPrefix; renderCrdnList(obj); - $("#crdnPaging").setPagingInfo({ + $("#crdnPaging--${pageSuffix}").setPagingInfo({ list: crdnControl.dataset, prefix: "crdn", start: obj[prefix+"Start"], @@ -257,16 +242,17 @@ function renderCrdnList(data) { *******************************/ var fnBiz = { getParams: () => { - + var form = $("#frmSearch--${pageSuffix}"); + return { - [$('#schOpt').val()]: $('#schWord').val() - ,schDateOpt: $('#schDateOpt').val() - ,schDateFrom: $('#schDateFrom').val() - ,schDateTo: $('#schDateTo').val() - ,sysSeCd: $('input:radio[name=sysSeCd]:checked').val() - ,crdnSeCd: $('input:radio[name=crdnSeCd]:checked').val() - ,crdnSttsCd: $('#crdnSttsCd').val() - ,ctznAnsYn: $('input:radio[name=ctznAnsYn]:checked').val() + sysSeCd: form.find("[name='sysSeCd']:checked").val() + ,[form.find("[name='schOpt']").val()]: form.find("[name='schWord']").val() + ,schDateOpt: form.find("[name='schDateOpt']").val() + ,schDateFrom: form.find("[name='schDateFrom']").val() + ,schDateTo: form.find("[name='schDateTo']").val() + ,crdnSeCd: form.find("[name='crdnSeCd']:checked").val() + ,crdnSttsCd: form.find("[name='crdnSttsCd']").val() + ,ctznAnsYn: form.find("[name='ctznAnsYn']:checked").val() ,fetchSize: 20 } } @@ -371,13 +357,13 @@ var fnBiz = { $(() => { - $('#btnSearch').on('click', () => searchCrdnList()); + $('#btnSearch--${pageSuffix}').on('click', () => searchCrdnList()); - $('#btnMenualRegist').on('click', () => { + $('#btnMenualRegist--${pageSuffix}').on('click', () => { //fnBiz.pagePopup('edit', {}); }); - $('#btnExtrRegist').on('click', () => { + $('#btnExtrRegist--${pageSuffix}').on('click', () => { //fnBiz.pagePopup('file'); }); @@ -618,25 +604,25 @@ $(document).ready(function(){ fnBiz.resetBtn(); initGrid(); - $("#schDateFrom").datepicker({ + $("#schDateFrom--${pageSuffix}").datepicker({ changeMonth: true, changeYear: true, showButtonPanel: true }); - $("#schDateTo").datepicker({ + $("#schDateTo--${pageSuffix}").datepicker({ changeMonth: true, changeYear: true, showButtonPanel: true }); - $('#schDateFrom').datepicker('setDate', DateUtil.getDateDay(-5475).date); - $('#schDateTo').datepicker('setDate', new Date()); + $('#schDateFrom--${pageSuffix}').datepicker('setDate', DateUtil.getDateDay(-5475).date); + $('#schDateTo--${pageSuffix}').datepicker('setDate', new Date()); - $( "#frmSearch .form-date" ).next("button.bx-calendar").on("click", function() { + $( "#frmSearch--${pageSuffix} .form-date" ).next("button.bx-calendar").on("click", function() { $(this).prev().focus(); }); var defaultBizValue = $("#layout-navbar input[name='sysSeCd']:checked").val(); - $("#frmSearch input[name='sysSeCd'][value='" + defaultBizValue + "']").prop("checked",true); + $("#frmSearch--${pageSuffix} input[name='sysSeCd'][value='" + defaultBizValue + "']").prop("checked",true); fnResetAndChangeBiz(defaultBizValue); });