From e300f2f883690e531e22c6374846fedaad1a7ada Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Mon, 19 Jun 2023 10:51:33 +0900 Subject: [PATCH] =?UTF-8?q?=ED=99=94=EB=A9=B4=EB=B3=84=20HTML=ED=83=9C?= =?UTF-8?q?=EA=B7=B8=20=EC=95=84=EC=9D=B4=EB=94=94=20=EC=A4=91=EB=B3=B5?= =?UTF-8?q?=EB=B0=A9=EC=A7=80=EB=A5=BC=20=EC=9C=84=ED=95=B4=20pageSuffix?= =?UTF-8?q?=20=EB=B3=80=EC=88=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xit/fims/crdn/web/CrdnController.java | 1 + .../WEB-INF/jsp/fims/crdn/initData-main.jsp | 84 ++++++++----------- 2 files changed, 36 insertions(+), 49 deletions(-) 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); });