From fcda6bdbae5e5d7dd76caf4b44f6006b77f3cb3d Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Mon, 19 Jun 2023 10:10:46 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B4=88=EA=B8=B0=EC=9E=90=EB=A3=8C=20?= =?UTF-8?q?=EB=A9=94=EC=9D=B8=ED=99=94=EB=A9=B4=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=EB=82=B4=EB=B6=80=ED=83=AD=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/fims/crdn/initData-main.jsp | 106 +++--------------- 1 file changed, 18 insertions(+), 88 deletions(-) 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 cc604506..bb97de85 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 @@ -17,7 +17,6 @@ -
+
@@ -117,44 +123,7 @@
- - - - -
-
-
-
-
-
-
-
-
-
-
+
@@ -184,11 +153,6 @@ $(function(){ /************************************************************************** * Global Variable **************************************************************************/ -/** - * tab index : 0 부터 시작 - * @type {number} - */ -var CUR_TAB_IDX = 0; /** * tui-grid array * @type {*[]} @@ -290,7 +254,6 @@ function renderCrdnList(data) { /******************************* * Biz function *******************************/ - // tab 전체 const fnBiz = { getParams: () => { @@ -300,8 +263,8 @@ const fnBiz = { ,schDateFrom: $('#schDateFrom').val() ,schDateTo: $('#schDateTo').val() ,sysSeCd: $('input:radio[name=sysSeCd]:checked').val() - ,crdnSeCd: CUR_TAB_IDX === 2 ? '09' : $('input:radio[name=crdnSeCd]:checked').val() - ,crdnSttsCd: CUR_TAB_IDX === 2 ? 'NON-INIT' : $('#crdnSttsCd').val() + ,crdnSeCd: $('input:radio[name=crdnSeCd]:checked').val() + ,crdnSttsCd: $('#crdnSttsCd').val() ,ctznAnsYn: $('input:radio[name=ctznAnsYn]:checked').val() ,fetchSize: 20 } @@ -362,32 +325,7 @@ const fnBiz = { } } ,resetBtn: function() { - switch(CUR_TAB_IDX){ - case 0: - $('#btnExtrRegist').show(); - $('#divImpose').hide(); - $('#divAnswer').hide(); - $('#ansDiv').hide(); - $('#crdnSttsCd').show(); - $('#fldCrdnSeCd').show(); - break; - case 1: - $('#btnExtrRegist').hide(); - $('#divImpose').show(); - $('#divAnswer').hide(); - $('#ansDiv').hide(); - $('#crdnSttsCd').show(); - $('#fldCrdnSeCd').show(); - break; - case 2: - $('#btnExtrRegist').hide(); - $('#divImpose').hide(); - $('#divAnswer').show(); - $('#ansDiv').show(); - $('#crdnSttsCd').show(); - $('#fldCrdnSeCd').hide(); - break; - } + } ,onDblClickGrid: function (props) { popupDiv = 'total'; @@ -405,7 +343,7 @@ const fnBiz = { ,{value: '12', text: '계도'} ,{value: '20', text: '부과'} */ - let answerSeCode; + var answerSeCode; switch(stsCode){ // 부과 case '10': @@ -430,11 +368,7 @@ const fnBiz = { **************************************************************************/ $(() => { - $("#tabs").on("click", "li", function () { - - CUR_TAB_IDX = parseInt($("#tabs .nav-link.active").attr("id")); - - }); + $('#btnSearch').on('click', () => searchCrdnList()); @@ -508,13 +442,8 @@ const gridColumns = [ minWidth: 100, sortable: false, align: 'center', - formatter: 'listItemText', - disabled: true, - editor: { - type: "select", - options: { - listItems: [...ComboCodeData.crdnSeCd] - } + formatter({value}) { + return (new CommonCodes(ComboCodeData.crdnSeCd)).value(value); } }, { @@ -675,6 +604,7 @@ const gridOptions = { scrollFuncName : crdnControl.scrollFuncName }; + const initGrid = () => { GRID = TuiGrid.of(gridOptions); GRID.on('dblclick', function (props) { fnBiz.onDblClickGrid(props); }); @@ -683,7 +613,7 @@ const initGrid = () => { $(document).ready(function(){ - CUR_TAB_IDX = 0; + fnBiz.resetBtn(); initGrid();