From 3584768f41f55ceec41517bd9805cc63160668f0 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Mon, 26 Jun 2023 10:24:30 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=A7=80=20=EB=B3=80?= =?UTF-8?q?=EC=88=98=EB=AA=85=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xit/fims/crdn/web/Crdn06Controller.java | 2 +- .../WEB-INF/jsp/fims/crdn/crdn06010-main.jsp | 54 ++++++++-------- .../WEB-INF/jsp/fims/crdn/crdn06030-main.jsp | 44 ++++++------- .../WEB-INF/jsp/fims/crdn/crdn06040-main.jsp | 63 +++++++++---------- 4 files changed, 80 insertions(+), 83 deletions(-) diff --git a/src/main/java/cokr/xit/fims/crdn/web/Crdn06Controller.java b/src/main/java/cokr/xit/fims/crdn/web/Crdn06Controller.java index 5b88fba0..aae74018 100644 --- a/src/main/java/cokr/xit/fims/crdn/web/Crdn06Controller.java +++ b/src/main/java/cokr/xit/fims/crdn/web/Crdn06Controller.java @@ -32,7 +32,7 @@ public class Crdn06Controller extends ApplicationController { mav.addObject("FIM001List", commonCodes.get("FIM001")); mav.addObject("FIM002List", commonCodes.get("FIM002")); mav.addObject("FIM010List", commonCodes.get("FIM010")); - addCodes(commonCodes, mav, "FIM002", "FIM026"); + addCodes(commonCodes, mav, "FIM002", "FIM010", "FIM026"); return mav; } diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp index 57a07a87..25b855fc 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp @@ -149,15 +149,16 @@ * Global Variable **************************************************************************/ var FIM002 = new CommonCodes(${FIM002}); +var FIM010 = new CommonCodes(${FIM010}); var FIM026 = new CommonCodes(${FIM026}); pageObject["${pageName}"] = {}; $(document).ready(function(){ - var thisPO = pageObject["${pageName}"]; + var $P = pageObject["${pageName}"]; - thisPO.crdnControl = new DatasetControl({ + $P.crdnControl = new DatasetControl({ prefix:"crdn", prefixName:"종합", infoSize:"xl", @@ -175,6 +176,7 @@ $(document).ready(function(){ RCVMT_AMT : numberFormat, CRDN_SE_CD: FIM002, + CRDN_STTS_CD : FIM010, CRDN_REG_SE_CD: FIM026 }, keymapper:info => info ? info.CRDN_ID : "", @@ -182,13 +184,13 @@ $(document).ready(function(){ appendData:true }); - thisPO.crdnControl.onDatasetChange = obj => { + $P.crdnControl.onDatasetChange = obj => { var prefix = obj.infoPrefix; - thisPO.renderCrdnList(obj); + $P.renderCrdnList(obj); $("#crdnPaging--${pageName}").setPagingInfo({ - list: thisPO.crdnControl.dataset, + list: $P.crdnControl.dataset, prefix: "crdnPaging--${pageName}", start: obj[prefix+"Start"], totalSize: obj[prefix+"Total"], @@ -199,32 +201,32 @@ $(document).ready(function(){ }; - thisPO.fnResetAndChangeBiz = taskSeCd => { + $P.fnResetAndChangeBiz = taskSeCd => { $("#crdnTbody--${pageName}").html(""); - thisPO.crdnControl.urls.load = wctx.url("/crdn/crdn06/010/"+ taskSeCd +"/list.do"); - thisPO.crdnControl.urls.getInfo = wctx.url("/sprt/sprt01/020/"+ taskSeCd +"/info.do"); + $P.crdnControl.urls.load = wctx.url("/crdn/crdn06/010/"+ taskSeCd +"/list.do"); + $P.crdnControl.urls.getInfo = wctx.url("/sprt/sprt01/020/"+ taskSeCd +"/info.do"); } - thisPO.searchCrdnList = () => { - thisPO.crdnControl.query = thisPO.getParams(); + $P.searchCrdnList = () => { + $P.crdnControl.query = $P.getParams(); $("#crdnTbody--${pageName}").html(""); - thisPO.crdnControl.load(1); + $P.crdnControl.load(1); } - thisPO.scrollCrdnList = () => { - thisPO.crdnControl.load(thisPO.crdnControl.query.pageNum + 1); + $P.scrollCrdnList = () => { + $P.crdnControl.load($P.crdnControl.query.pageNum + 1); } - thisPO.renderCrdnList = data => { - if(!thisPO.crdnControl.appendData){ + $P.renderCrdnList = data => { + if(!$P.crdnControl.appendData){ $("#crdnTbody--${pageName}").html(""); } - var crdnList = thisPO.crdnControl.dataset; + var crdnList = $P.crdnControl.dataset; var empty = crdnList.empty; - var trs = empty ? [ thisPO.tbodyTemplate.notFound ] : crdnList.inStrings(thisPO.tbodyTemplate.found); + var trs = empty ? [ $P.tbodyTemplate.notFound ] : crdnList.inStrings($P.tbodyTemplate.found); $("#crdnTbody--${pageName}").html(trs.join()); @@ -236,7 +238,7 @@ $(document).ready(function(){ } } - thisPO.getParams = () => { + $P.getParams = () => { var formFields = new FimsFormFields("#frmSearch--${pageName}"); var data = formFields.get(); data.fetchSize = 30; @@ -249,7 +251,7 @@ $(document).ready(function(){ /* ******************************* * Grid ******************************* */ - thisPO.gridColumns = [ + $P.gridColumns = [ { header: '차량번호', name: 'VHRNO', width: 80, className: 'text-center' }, { header: '단속구분(신고방법)', name: 'CRDN_SE_CD', width: 100, className: 'text-center' }, { header: '위반일시', name: 'CRDN_YMD_TM', width: 120, className: 'text-center' }, @@ -275,7 +277,7 @@ $(document).ready(function(){ { header: '서손사유코드', name: 'LEVY_EXCL_RSN_CD', hidden: true }, { header: 'interfaceSeqN', name: 'INTERFACE_SEQN', hidden: true } ]; - thisPO.gridOptions = { + $P.gridOptions = { by : 'by--${pageName}', byOutput : 'byOutput--${pageName}', theadTr: 'crdnTheadTr--${pageName}', @@ -285,13 +287,13 @@ $(document).ready(function(){ prefixName : "단속", clickEvent : "pageObject['${pageName}'].crdnControl.setCurrent('{CRDN_ID}')", dblClickEvent : "pageObject['${pageName}'].crdnControl.getInfo({})", - columns: thisPO.gridColumns + columns: $P.gridColumns }; - thisPO.tbodyTemplate = {}; + $P.tbodyTemplate = {}; //그리드 정보 초기화 - thisPO.tbodyTemplate = initGrid(thisPO.gridOptions); + $P.tbodyTemplate = initGrid($P.gridOptions); //달력 초기화 initDatepicker("frmSearch--${pageName}"); @@ -303,7 +305,7 @@ $(document).ready(function(){ var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val(); $("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true); - thisPO.fnResetAndChangeBiz(defaultBizValue); + $P.fnResetAndChangeBiz(defaultBizValue); //스크롤 이벤트 추가 $("#table-responsive--${pageName}").scroll(function(){ @@ -312,11 +314,11 @@ $(document).ready(function(){ return; } if((el[0].scrollHeight - el.scrollTop() + 15) == el.outerHeight()){ - thisPO.scrollCrdnList(); + $P.scrollCrdnList(); } }); - $('#btnSearch--${pageName}').on('click', () => thisPO.searchCrdnList()); + $('#btnSearch--${pageName}').on('click', () => $P.searchCrdnList()); $('#btnMenualRegist--${pageName}').on('click', () => { diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06030-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06030-main.jsp index 6ac2ae8b..8a71aa15 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06030-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06030-main.jsp @@ -132,9 +132,9 @@ pageObject["${pageName}"] = {}; $(document).ready(function(){ - var thisPO = pageObject["${pageName}"]; + var $P = pageObject["${pageName}"]; - thisPO.crdnControl = new DatasetControl({ + $P.crdnControl = new DatasetControl({ prefix:"crdn", prefixName:"종합", infoSize:"xl", @@ -161,13 +161,13 @@ $(document).ready(function(){ appendData:true }); - thisPO.crdnControl.onDatasetChange = obj => { + $P.crdnControl.onDatasetChange = obj => { var prefix = obj.infoPrefix; - thisPO.renderCrdnList(obj); + $P.renderCrdnList(obj); $("#crdnPaging--${pageName}").setPagingInfo({ - list: thisPO.crdnControl.dataset, + list: $P.crdnControl.dataset, prefix: "crdnPaging--${pageName}", start: obj[prefix+"Start"], totalSize: obj[prefix+"Total"], @@ -179,26 +179,26 @@ $(document).ready(function(){ - thisPO.searchCrdnList = () => { - thisPO.crdnControl.query = thisPO.getParams(); + $P.searchCrdnList = () => { + $P.crdnControl.query = $P.getParams(); $("#crdnTbody--${pageName}").html(""); - thisPO.crdnControl.load(1); + $P.crdnControl.load(1); } - thisPO.scrollCrdnList = () => { - thisPO.crdnControl.load(thisPO.crdnControl.query.pageNum + 1); + $P.scrollCrdnList = () => { + $P.crdnControl.load($P.crdnControl.query.pageNum + 1); } - thisPO.renderCrdnList = data => { - if(!thisPO.crdnControl.appendData){ + $P.renderCrdnList = data => { + if(!$P.crdnControl.appendData){ $("#crdnTbody--${pageName}").html(""); } - var crdnList = thisPO.crdnControl.dataset; + var crdnList = $P.crdnControl.dataset; var empty = crdnList.empty; - var trs = empty ? [ thisPO.tbodyTemplate.notFound ] : crdnList.inStrings(thisPO.tbodyTemplate.found); + var trs = empty ? [ $P.tbodyTemplate.notFound ] : crdnList.inStrings($P.tbodyTemplate.found); $("#crdnTbody--${pageName}").html(trs.join()); @@ -210,7 +210,7 @@ $(document).ready(function(){ } } - thisPO.getParams = () => { + $P.getParams = () => { var formFields = new FimsFormFields("#frmSearch--${pageName}"); var data = formFields.get(); data.taskSeCd = "DPV"; @@ -224,7 +224,7 @@ $(document).ready(function(){ /* ******************************* * Grid ******************************* */ - thisPO.gridColumns = [ + $P.gridColumns = [ { header: '자료출처', name: 'CRDN_INPT_SE_CD', width: 100, className: 'text-center', advancedOptionIndex : 1 }, { header: '위반일시', name: 'CRDN_YMD_TM', width: 120, className: 'text-center' }, { header: '차량번호', name: 'VHRNO', width: 80, className: 'text-center' }, @@ -241,7 +241,7 @@ $(document).ready(function(){ { header: '최종처리일시', name: 'MDFCN_DT', width: 150, className: 'text-center' }, { header: 'interfaceSeqN', name: 'INTERFACE_SEQN', hidden: true } ]; - thisPO.gridOptions = { + $P.gridOptions = { by : 'by--${pageName}', byOutput : 'byOutput--${pageName}', theadTr: 'crdnTheadTr--${pageName}', @@ -251,13 +251,13 @@ $(document).ready(function(){ prefixName : "단속", clickEvent : "pageObject['${pageName}'].crdnControl.setCurrent('{CRDN_ID}')", dblClickEvent : "pageObject['${pageName}'].crdnControl.getInfo({})", - columns: thisPO.gridColumns + columns: $P.gridColumns }; - thisPO.tbodyTemplate = {}; + $P.tbodyTemplate = {}; //그리드 정보 초기화 - thisPO.tbodyTemplate = initGrid(thisPO.gridOptions); + $P.tbodyTemplate = initGrid($P.gridOptions); //달력 초기화 initDatepicker("frmSearch--${pageName}"); @@ -274,11 +274,11 @@ $(document).ready(function(){ return; } if((el[0].scrollHeight - el.scrollTop() + 15) == el.outerHeight()){ - thisPO.scrollCrdnList(); + $P.scrollCrdnList(); } }); - $('#btnSearch--${pageName}').on('click', () => thisPO.searchCrdnList()); + $('#btnSearch--${pageName}').on('click', () => $P.searchCrdnList()); $('#btnUpdateToConfirmData--${pageName}').on('click', () => { diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06040-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06040-main.jsp index 414fc4c5..5509a6c6 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06040-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06040-main.jsp @@ -143,15 +143,16 @@ * Global Variable **************************************************************************/ var FIM002 = new CommonCodes(${FIM002}); +var FIM010 = new CommonCodes(${FIM010}); var FIM026 = new CommonCodes(${FIM026}); pageObject["${pageName}"] = {}; $(document).ready(function(){ - var thisPO = pageObject["${pageName}"]; + var $P = pageObject["${pageName}"]; - thisPO.crdnControl = new DatasetControl({ + $P.crdnControl = new DatasetControl({ prefix:"crdn", prefixName:"종합", infoSize:"xl", @@ -169,20 +170,21 @@ $(document).ready(function(){ RCVMT_AMT : numberFormat, CRDN_SE_CD: FIM002, - CRDN_REG_SE_CD: FIM026 + CRDN_STTS_CD : FIM010, + CRDN_REG_SE_CD: FIM026, }, keymapper:info => info ? info.CRDN_ID : "", dataGetter:obj => obj.crdnList, appendData:true }); - thisPO.crdnControl.onDatasetChange = obj => { + $P.crdnControl.onDatasetChange = obj => { var prefix = obj.infoPrefix; - thisPO.renderCrdnList(obj); + $P.renderCrdnList(obj); $("#crdnPaging--${pageName}").setPagingInfo({ - list: thisPO.crdnControl.dataset, + list: $P.crdnControl.dataset, prefix: "crdnPaging--${pageName}", start: obj[prefix+"Start"], totalSize: obj[prefix+"Total"], @@ -193,32 +195,32 @@ $(document).ready(function(){ }; - thisPO.fnResetAndChangeBiz = taskSeCd => { + $P.fnResetAndChangeBiz = taskSeCd => { $("#crdnTbody--${pageName}").html(""); - thisPO.crdnControl.urls.load = wctx.url("/crdn/crdn06/040/"+ taskSeCd +"/list.do"); - thisPO.crdnControl.urls.getInfo = wctx.url("/sprt/sprt01/020/"+ taskSeCd +"/info.do"); + $P.crdnControl.urls.load = wctx.url("/crdn/crdn06/040/"+ taskSeCd +"/list.do"); + $P.crdnControl.urls.getInfo = wctx.url("/sprt/sprt01/020/"+ taskSeCd +"/info.do"); } - thisPO.searchCrdnList = () => { - thisPO.crdnControl.query = thisPO.getParams(); + $P.searchCrdnList = () => { + $P.crdnControl.query = $P.getParams(); $("#crdnTbody--${pageName}").html(""); - thisPO.crdnControl.load(1); + $P.crdnControl.load(1); } - thisPO.scrollCrdnList = () => { - thisPO.crdnControl.load(thisPO.crdnControl.query.pageNum + 1); + $P.scrollCrdnList = () => { + $P.crdnControl.load($P.crdnControl.query.pageNum + 1); } - thisPO.renderCrdnList = data => { - if(!thisPO.crdnControl.appendData){ + $P.renderCrdnList = data => { + if(!$P.crdnControl.appendData){ $("#crdnTbody--${pageName}").html(""); } - var crdnList = thisPO.crdnControl.dataset; + var crdnList = $P.crdnControl.dataset; var empty = crdnList.empty; - var trs = empty ? [ thisPO.tbodyTemplate.notFound ] : crdnList.inStrings(thisPO.tbodyTemplate.found); + var trs = empty ? [ $P.tbodyTemplate.notFound ] : crdnList.inStrings($P.tbodyTemplate.found); $("#crdnTbody--${pageName}").html(trs.join()); @@ -230,7 +232,7 @@ $(document).ready(function(){ } } - thisPO.getParams = () => { + $P.getParams = () => { var formFields = new FimsFormFields("#frmSearch--${pageName}"); var data = formFields.get(); data.fetchSize = 30; @@ -243,7 +245,7 @@ $(document).ready(function(){ /* ******************************* * Grid ******************************* */ - thisPO.gridColumns = [ + $P.gridColumns = [ { header: '감액일자', name: 'uknown1', width: 80, className: 'text-center' }, { header: '감액사유', name: 'uknown2', width: 80, className: 'text-start' }, { header: '접수(위반)일시', name: 'CRDN_YMD_TM', width: 80, className: 'text-center' }, @@ -254,7 +256,7 @@ $(document).ready(function(){ { header: '처리상태', name: 'CRDN_STTS_CD', width: 80}, { header: 'interfaceSeqN', name: 'INTERFACE_SEQN', hidden: true } ]; - thisPO.gridOptions = { + $P.gridOptions = { by : 'by--${pageName}', byOutput : 'byOutput--${pageName}', theadTr: 'crdnTheadTr--${pageName}', @@ -264,13 +266,13 @@ $(document).ready(function(){ prefixName : "단속", clickEvent : "pageObject['${pageName}'].crdnControl.setCurrent('{CRDN_ID}')", dblClickEvent : "pageObject['${pageName}'].crdnControl.getInfo({})", - columns: thisPO.gridColumns + columns: $P.gridColumns }; - thisPO.tbodyTemplate = {}; + $P.tbodyTemplate = {}; //그리드 정보 초기화 - thisPO.tbodyTemplate = initGrid(thisPO.gridOptions); + $P.tbodyTemplate = initGrid($P.gridOptions); //달력 초기화 initDatepicker("frmSearch--${pageName}"); @@ -282,7 +284,7 @@ $(document).ready(function(){ var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val(); $("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true); - thisPO.fnResetAndChangeBiz(defaultBizValue); + $P.fnResetAndChangeBiz(defaultBizValue); //스크롤 이벤트 추가 $("#table-responsive--${pageName}").scroll(function(){ @@ -291,19 +293,12 @@ $(document).ready(function(){ return; } if((el[0].scrollHeight - el.scrollTop() + 15) == el.outerHeight()){ - thisPO.scrollCrdnList(); + $P.scrollCrdnList(); } }); - $('#btnSearch--${pageName}').on('click', () => thisPO.searchCrdnList()); + $('#btnSearch--${pageName}').on('click', () => $P.searchCrdnList()); - $('#btnMenualRegist--${pageName}').on('click', () => { - - }); - - $('#btnExtrRegist--${pageName}').on('click', () => { - - }); //보안모드 if($("#securityMode--top").is(":checked")){