From 7939789d324056b057441386809ad2432dafce74 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Fri, 12 May 2023 13:09:51 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20=EA=B7=B8=EB=A6=AC=EB=93=9C=20?= =?UTF-8?q?=EC=A1=B0=ED=9A=8C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fims/biz/cmm/cmmIntegratedSearchForm.jsp | 21 +++++-------- .../jsp/fims/biz/ec/ecCtznSttemntMgtForm.jsp | 20 +++++-------- .../fims/biz/ec/ecNatlNewspaperMgtForm.jsp | 19 +++++------- .../jsp/fims/biz/rt/rtRegltMgtForm.jsp | 26 +++++----------- .../biz/cmm/answer/cmmAnsTmplForm.jsp | 18 +++++------ .../biz/mng/auth/mngAuthAuthorMgtForm.jsp | 21 +++++-------- .../biz/mng/auth/mngAuthGrpMgtForm.jsp | 18 +++++------ .../biz/mng/auth/mngAuthHierarchyMgtForm.jsp | 18 +++++------ .../biz/mng/auth/mngAuthRoleMgtForm.jsp | 18 +++++------ .../biz/mng/bbs/mngBoardBasicMgtForm.jsp | 24 +++++---------- .../biz/mng/bbs/mngBoardCreateMgtForm.jsp | 30 +++++++++---------- .../biz/mng/bbs/mngBoardTmplMgtForm.jsp | 24 +++++---------- .../biz/mng/bbs/mngBoardUseMgtForm.jsp | 22 +++++--------- .../biz/mng/code/mngCodeCfnMgtForm.jsp | 18 +++++------ .../biz/mng/code/mngCodeDtlMgtForm.jsp | 18 +++++------ .../biz/mng/code/mngCodeGrpMgtForm.jsp | 18 +++++------ .../biz/mng/code/mngZipCodeMgtForm.jsp | 23 +++++--------- .../biz/mng/menu/mngMenuByRoleMgtForm.jsp | 19 +++++------- .../framework/biz/mng/menu/mngMenuMgtForm.jsp | 25 ++++++++-------- .../biz/mng/menu/mngProgramMgtForm.jsp | 18 +++++------ .../framework/biz/mng/usr/mngUserMgtForm.jsp | 22 +++++--------- .../jsp/template/fims/templateForm.jsp | 19 +++++------- 22 files changed, 168 insertions(+), 291 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/fims/biz/cmm/cmmIntegratedSearchForm.jsp b/src/main/webapp/WEB-INF/jsp/fims/biz/cmm/cmmIntegratedSearchForm.jsp index a7e4b1a4..82810b88 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/biz/cmm/cmmIntegratedSearchForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/biz/cmm/cmmIntegratedSearchForm.jsp @@ -315,7 +315,12 @@ Date Author Description $$Control.load(1); } - function render$$List(data) {} + function render$$List(data) { + if($$Control._paginationInfo.pagingType != "scroll"){ + GRID.clear(); + } + GRID.appendRows(data.contents); + } /******************************* * Biz function *******************************/ @@ -713,20 +718,8 @@ Date Author Description minBodyHeight : 150 }; - const gridDatasource = { - - api: { - readData: { - url: fimsApiUrl.FIND_CRACKDOWNS - ,serializer: (params) => { - return getPageParam(fnBiz.getParams(), params); - } - } - } - }; - const initGrid = () => { - ARR_GRID[0] = TuiGrid.of(gridOptions, gridDatasource); + ARR_GRID[0] = TuiGrid.of(gridOptions, null); const options = $.extend(gridOptions, gridOptions.columns[1].renderer = null, true); ARR_GRID[1] = TuiGrid.of({...options, el: 'gridb', rowHeaders: ['checkbox','rowNum']}, gridDatasource); diff --git a/src/main/webapp/WEB-INF/jsp/fims/biz/ec/ecCtznSttemntMgtForm.jsp b/src/main/webapp/WEB-INF/jsp/fims/biz/ec/ecCtznSttemntMgtForm.jsp index 5f47145c..d4ace087 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/biz/ec/ecCtznSttemntMgtForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/biz/ec/ecCtznSttemntMgtForm.jsp @@ -116,7 +116,12 @@ $$Control.load(1); } - function render$$List(data) {} + function render$$List(data) { + if($$Control._paginationInfo.pagingType != "scroll"){ + GRID.clear(); + } + GRID.appendRows(data.contents); + } /* ******************************* * Biz function @@ -453,18 +458,7 @@ } }; - const gridDatasource = { - initialRequest: true, // 화면 load시 조회 안함 - default - api: { - readData: { - <%--url: ''--%> - url: fimsApiUrl.FIND_EC_CTZN_STMT_DTLS - ,serializer: (params) => fnAddPageInfo(document.frmSearch, params) - } - } - }; - - GRID = TuiGrid.of(gridOptions, gridDatasource); + GRID = TuiGrid.of(gridOptions, null); } /************************************************************************** diff --git a/src/main/webapp/WEB-INF/jsp/fims/biz/ec/ecNatlNewspaperMgtForm.jsp b/src/main/webapp/WEB-INF/jsp/fims/biz/ec/ecNatlNewspaperMgtForm.jsp index 0cc169ab..3f202489 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/biz/ec/ecNatlNewspaperMgtForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/biz/ec/ecNatlNewspaperMgtForm.jsp @@ -100,7 +100,12 @@ $$Control.load(1); } - function render$$List(data) {} + function render$$List(data) { + if($$Control._paginationInfo.pagingType != "scroll"){ + GRID.clear(); + } + GRID.appendRows(data.contents); + } /* ******************************* * Biz function @@ -218,17 +223,7 @@ } }; - const gridDatasource = { - initialRequest: true, // 화면 load시 조회 안함 - default - api: { - readData: { - url: fimsApiUrl.FIND_EC_NATL_NEWS_PAPERS - ,serializer: (params) => fnAddPageInfo(document.frmSearch, params) - } - } - }; - - GRID = TuiGrid.of(gridOptions, gridDatasource); + GRID = TuiGrid.of(gridOptions, null); } /************************************************************************** diff --git a/src/main/webapp/WEB-INF/jsp/fims/biz/rt/rtRegltMgtForm.jsp b/src/main/webapp/WEB-INF/jsp/fims/biz/rt/rtRegltMgtForm.jsp index 724aca72..98916cf8 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/biz/rt/rtRegltMgtForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/biz/rt/rtRegltMgtForm.jsp @@ -102,7 +102,12 @@ $$Control.load(1); } - function render$$List(data) {} + function render$$List(data) { + if($$Control._paginationInfo.pagingType != "scroll"){ + GRID.clear(); + } + GRID.appendRows(data.contents); + } /******************************* * Biz function @@ -318,23 +323,6 @@ } }; - const gridDatasource = { - initialRequest: true, // 화면 load시 조회 안함 - default - api: { - readData: { - url: fimsApiUrl.FIND_RT_REGLTS - ,serializer: (params) => { - const param = { - sch_date_opt: $('#sch_date_opt').val() - ,sch_date_from: $('#sch_date_from').val() - ,sch_date_to: $('#sch_date_to').val() - ,[$('#sch_opt').val()]: $('#sch_word').val() - } - return getPageParam(param, params); - } - } - } - }; const onDblClickEventSet = function () { GRID.on('dblclick', function (ev){ @@ -345,7 +333,7 @@ }) }; - GRID = TuiGrid.of(gridOptions, gridDatasource); + GRID = TuiGrid.of(gridOptions, null); } /************************************************************************** diff --git a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/cmm/answer/cmmAnsTmplForm.jsp b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/cmm/answer/cmmAnsTmplForm.jsp index 4c7ca909..78b9750b 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/cmm/answer/cmmAnsTmplForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/cmm/answer/cmmAnsTmplForm.jsp @@ -122,7 +122,12 @@ $$Control.load(1); } - function render$$List(data) {} + function render$$List(data) { + if($$Control._paginationInfo.pagingType != "scroll"){ + GRID.clear(); + } + GRID.appendRows(data.contents); + } /* ******************************* * Biz function @@ -280,17 +285,8 @@ } }; - const gridDatasource = { - initialRequest: true, // 화면 load시 조회 안함 - default - api: { - readData: { - url: frwkApiUrl.FIND_ANS_TMPLS - ,serializer: (params) => fnAddPageInfo(document.frmSearch, params) - } - } - }; - GRID = TuiGrid.of(gridOptions, gridDatasource); + GRID = TuiGrid.of(gridOptions, null); } /************************************************************************** diff --git a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/auth/mngAuthAuthorMgtForm.jsp b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/auth/mngAuthAuthorMgtForm.jsp index 833ddbff..1a7e62aa 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/auth/mngAuthAuthorMgtForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/auth/mngAuthAuthorMgtForm.jsp @@ -99,7 +99,12 @@ $$Control.load(1); } - function render$$List(data) {} + function render$$List(data) { + if($$Control._paginationInfo.pagingType != "scroll"){ + GRID.clear(); + } + GRID.appendRows(data.contents); + } /* ******************************* * Biz function @@ -234,18 +239,6 @@ } } ]; - const gridDatasource = { //DataSource - /* ----------------------- - * DataSource API Setting - ----------------------- */ - initialRequest: true, // 화면 load시 조회 안함 - default - api: { - readData: { - url: '' - ,serializer: (params) => fnAddPageInfo(document.frmSearch, params) - } - } - } const gridOptions = { el: 'grid', @@ -257,7 +250,7 @@ perPage: $$Control._paginationInfo.fetchSize } }; - GRID = TuiGrid.of(gridOptions, gridDatasource); + GRID = TuiGrid.of(gridOptions, null); }; /************************************************************************** diff --git a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/auth/mngAuthGrpMgtForm.jsp b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/auth/mngAuthGrpMgtForm.jsp index 3d497510..4ba415ca 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/auth/mngAuthGrpMgtForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/auth/mngAuthGrpMgtForm.jsp @@ -98,7 +98,12 @@ $$Control.load(1); } - function render$$List(data) {} + function render$$List(data) { + if($$Control._paginationInfo.pagingType != "scroll"){ + GRID.clear(); + } + GRID.appendRows(data.contents); + } /* ******************************* * Biz function @@ -224,17 +229,8 @@ } }; - const gridDatasource = { //DataSource - initialRequest: true // 화면 load시 조회 안함 - default - ,api: { - readData: { - url: '' - ,serializer: (params) => fnAddPageInfo(document.frmSearch, params) - } - } - }; - GRID = TuiGrid.of(gridOptions, gridDatasource); + GRID = TuiGrid.of(gridOptions, null); } /************************************************************************** diff --git a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/auth/mngAuthHierarchyMgtForm.jsp b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/auth/mngAuthHierarchyMgtForm.jsp index e0de4809..34635f3c 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/auth/mngAuthHierarchyMgtForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/auth/mngAuthHierarchyMgtForm.jsp @@ -100,7 +100,12 @@ $$Control.load(1); } - function render$$List(data) {} + function render$$List(data) { + if($$Control._paginationInfo.pagingType != "scroll"){ + GRID.clear(); + } + GRID.appendRows(data.contents); + } /* ******************************* * Biz function @@ -226,17 +231,8 @@ } }; - const gridDatasource = { //DataSource - //initialRequest: true, // 화면 load시 조회 안함 - default - api: { - readData: { - url: '' - ,serializer: (params) => fnAddPageInfo(document.frmSearch, params) - } - } - }; - GRID = TuiGrid.of(gridOptions, gridDatasource); + GRID = TuiGrid.of(gridOptions, null); } /************************************************************************** diff --git a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/auth/mngAuthRoleMgtForm.jsp b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/auth/mngAuthRoleMgtForm.jsp index 524ba5d0..d942dbdb 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/auth/mngAuthRoleMgtForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/auth/mngAuthRoleMgtForm.jsp @@ -99,7 +99,12 @@ $$Control.load(1); } - function render$$List(data) {} + function render$$List(data) { + if($$Control._paginationInfo.pagingType != "scroll"){ + GRID.clear(); + } + GRID.appendRows(data.contents); + } /* ******************************* * Biz function @@ -223,17 +228,8 @@ } }; - const gridDatasource = { //DataSource - initialRequest: true // 화면 load시 조회 안함 - default - ,api: { - readData: { - url: '' - ,serializer: (params) => fnAddPageInfo(document.frmSearch, params) - } - } - }; - GRID = TuiGrid.of(gridOptions, gridDatasource); + GRID = TuiGrid.of(gridOptions, null); } /************************************************************************** diff --git a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/bbs/mngBoardBasicMgtForm.jsp b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/bbs/mngBoardBasicMgtForm.jsp index 93b210c9..f88a9f66 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/bbs/mngBoardBasicMgtForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/bbs/mngBoardBasicMgtForm.jsp @@ -108,7 +108,12 @@ $$Control.load(1); } - function render$$List(data) {} + function render$$List(data) { + if($$Control._paginationInfo.pagingType != "scroll"){ + GRID.clear(); + } + GRID.appendRows(data.contents); + } /* ******************************* * Biz function @@ -253,23 +258,8 @@ } }; - const gridDatasource = { - initialRequest: true, // 화면 load시 조회 안함 - default - api: { - readData: { - <%--url: ''--%> - url: frwkApiUrl.FIND_BOARD_BASICS - ,serializer: (params) => { - const schKey = $('#searchCondition').val(); - let schValue = $('input[name=searchKeyword]').val(); - params = Object.assign(params,boardMaster); - return getPageParam({[schKey]: schValue}, params); - } - } - } - }; - GRID = TuiGrid.of(gridOptions, gridDatasource); + GRID = TuiGrid.of(gridOptions, null); } /************************************************************************** diff --git a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/bbs/mngBoardCreateMgtForm.jsp b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/bbs/mngBoardCreateMgtForm.jsp index bd7ce3a7..6fa3fcde 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/bbs/mngBoardCreateMgtForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/bbs/mngBoardCreateMgtForm.jsp @@ -100,7 +100,12 @@ $$Control.load(1); } - function render$$List(data) {} + function render$$List(data) { + if($$Control._paginationInfo.pagingType != "scroll"){ + GRID.clear(); + } + GRID.appendRows(data.contents); + } /* ******************************* * Biz function @@ -240,24 +245,17 @@ const gridOptions = { el: 'grid', rowHeaders: ['rowNum'], - columns: gridColumns - }; - - const gridDatasource = { - initialRequest: true, // 화면 load시 조회 안함 - default - api: { - readData: { - url: '' - ,serializer: (params) => { - const schKey = $('#searchCondition').val(); - let schValue = $('input[name=searchKeyword]').val(); - return getPageParam({[schKey]: schValue}, params); - } - } + columns: gridColumns, + paginationInfoRef : $$Control._paginationInfo, + pageOptions: { + type : $$Control._paginationInfo.pagingType, + perPage: $$Control._paginationInfo.fetchSize } }; - GRID = TuiGrid.of(gridOptions, gridDatasource); + + + GRID = TuiGrid.of(gridOptions, null); } /************************************************************************** diff --git a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/bbs/mngBoardTmplMgtForm.jsp b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/bbs/mngBoardTmplMgtForm.jsp index 9598c33e..5e3f3fea 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/bbs/mngBoardTmplMgtForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/bbs/mngBoardTmplMgtForm.jsp @@ -102,7 +102,12 @@ $$Control.load(1); } - function render$$List(data) {} + function render$$List(data) { + if($$Control._paginationInfo.pagingType != "scroll"){ + GRID.clear(); + } + GRID.appendRows(data.contents); + } /* ******************************* * Biz function @@ -253,22 +258,7 @@ } }; - const gridDatasource = { - initialRequest: true, // 화면 load시 조회 안함 - default - api: { - readData: { - url: '' - ,serializer: (params) => { - const schKey = $('#searchCondition').val(); - let schValue = $('input[name=searchKeyword]').val(); - if(schKey === 'tmplatSeCode') schValue = $('select[name=searchKeyword]').val(); - return getPageParam({[schKey]: schValue}, params); - } - } - } - }; - - GRID = TuiGrid.of(gridOptions, gridDatasource); + GRID = TuiGrid.of(gridOptions, null); } /************************************************************************** diff --git a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/bbs/mngBoardUseMgtForm.jsp b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/bbs/mngBoardUseMgtForm.jsp index 98cc2b39..65a10f93 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/bbs/mngBoardUseMgtForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/bbs/mngBoardUseMgtForm.jsp @@ -99,7 +99,12 @@ $$Control.load(1); } - function render$$List(data) {} + function render$$List(data) { + if($$Control._paginationInfo.pagingType != "scroll"){ + GRID.clear(); + } + GRID.appendRows(data.contents); + } /* ******************************* * Biz function @@ -248,21 +253,8 @@ }; - const gridDatasource = { - initialRequest: true, // 화면 load시 조회 안함 - default - api: { - readData: { - url: '' - ,serializer: (params) => { - const schKey = $('#searchCondition').val(); - let schValue = $('input[name=searchKeyword]').val(); - return getPageParam({[schKey]: schValue}, params); - } - } - } - }; - GRID = TuiGrid.of(gridOptions, gridDatasource); + GRID = TuiGrid.of(gridOptions, null); } /************************************************************************** diff --git a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/code/mngCodeCfnMgtForm.jsp b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/code/mngCodeCfnMgtForm.jsp index 2a0f8127..3005b1cb 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/code/mngCodeCfnMgtForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/code/mngCodeCfnMgtForm.jsp @@ -100,7 +100,12 @@ $$Control.load(1); } - function render$$List(data) {} + function render$$List(data) { + if($$Control._paginationInfo.pagingType != "scroll"){ + GRID.clear(); + } + GRID.appendRows(data.contents); + } /* ******************************* * Biz function @@ -201,15 +206,6 @@ align: 'center' } ]; - const gridDatasource = { - initialRequest: true, - api: { - readData: { - url: '' - ,serializer: (params) => fnAddPageInfo(document.frmSearch, params) - } - } - } const gridOptions = { el: 'grid', @@ -221,7 +217,7 @@ perPage: $$Control._paginationInfo.fetchSize } }; - GRID = TuiGrid.of(gridOptions, gridDatasource); + GRID = TuiGrid.of(gridOptions, null); }; /************************************************************************** diff --git a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/code/mngCodeDtlMgtForm.jsp b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/code/mngCodeDtlMgtForm.jsp index 263efd0b..0fe677ca 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/code/mngCodeDtlMgtForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/code/mngCodeDtlMgtForm.jsp @@ -114,7 +114,12 @@ $$Control.load(1); } - function render$$List(data) {} + function render$$List(data) { + if($$Control._paginationInfo.pagingType != "scroll"){ + GRID.clear(); + } + GRID.appendRows(data.contents); + } /* ******************************* * Biz function @@ -258,15 +263,6 @@ align: 'center' } ]; - const gridDatasource = { - initialRequest: true, - api: { - readData: { - url: '' - ,serializer: (params) => fnAddPageInfo(document.frmSearch, params) - } - } - } const gridOptions = { el: 'grid', @@ -281,7 +277,7 @@ perPage: $$Control._paginationInfo.fetchSize } }; - GRID = TuiGrid.of(gridOptions, gridDatasource); + GRID = TuiGrid.of(gridOptions, null); }; /************************************************************************** diff --git a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/code/mngCodeGrpMgtForm.jsp b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/code/mngCodeGrpMgtForm.jsp index 83334b77..1e413fe9 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/code/mngCodeGrpMgtForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/code/mngCodeGrpMgtForm.jsp @@ -108,7 +108,12 @@ $$Control.load(1); } - function render$$List(data) {} + function render$$List(data) { + if($$Control._paginationInfo.pagingType != "scroll"){ + GRID.clear(); + } + GRID.appendRows(data.contents); + } /* ******************************* * Biz function @@ -217,15 +222,6 @@ align: 'center' } ]; - const gridDatasource = { - initialRequest: true, - api: { - readData: { - url: '' - ,serializer: (params) => fnAddPageInfo(document.frmSearch, params) - } - } - } const gridOptions = { el: 'grid', @@ -237,7 +233,7 @@ perPage: $$Control._paginationInfo.fetchSize } }; - GRID = TuiGrid.of(gridOptions, gridDatasource); + GRID = TuiGrid.of(gridOptions, null); }; /************************************************************************** diff --git a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/code/mngZipCodeMgtForm.jsp b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/code/mngZipCodeMgtForm.jsp index e8b766ac..421666d9 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/code/mngZipCodeMgtForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/code/mngZipCodeMgtForm.jsp @@ -106,7 +106,12 @@ $$Control.load(1); } - function render$$List(data) {} + function render$$List(data) { + if($$Control._paginationInfo.pagingType != "scroll"){ + GRID.clear(); + } + GRID.appendRows(data.contents); + } /* ******************************* * Biz function @@ -227,20 +232,6 @@ } ]; - const gridDatasource = { - initialRequest: true, - api: { - readData: { - url: '' - ,serializer: (params) => { - const schKey = $('#searchCondition').val(); - if(schKey) - return getPageParam({[schKey]: $('#searchKeyword').val()}, params); - return getPageParam(null, params); - } - } - } - } const gridOptions = { el: 'grid', @@ -252,7 +243,7 @@ perPage: $$Control._paginationInfo.fetchSize } }; - GRID = TuiGrid.of(gridOptions, gridDatasource); + GRID = TuiGrid.of(gridOptions, null); }; /************************************************************************** diff --git a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/menu/mngMenuByRoleMgtForm.jsp b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/menu/mngMenuByRoleMgtForm.jsp index 9bf03593..1a46ef31 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/menu/mngMenuByRoleMgtForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/menu/mngMenuByRoleMgtForm.jsp @@ -91,7 +91,12 @@ $$Control.load(1); } - function render$$List(data) {} + function render$$List(data) { + if($$Control._paginationInfo.pagingType != "scroll"){ + GRID.clear(); + } + GRID.appendRows(data.contents); + } /* ******************************* * Biz function ******************************* */ @@ -190,15 +195,7 @@ } } ]; - const gridDatasource = { - initialRequest: true, - api: { - readData: { - url: '' - ,serializer: (params) => fnAddPageInfo(document.frmSearch, params) - } - } - } + const gridOptions = { el: 'grid', rowHeaders: ['rowNum'], @@ -213,7 +210,7 @@ } }; - GRID = TuiGrid.of(gridOptions, gridDatasource); + GRID = TuiGrid.of(gridOptions, null); } /************************************************************************** diff --git a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/menu/mngMenuMgtForm.jsp b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/menu/mngMenuMgtForm.jsp index c8c5c507..220af431 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/menu/mngMenuMgtForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/menu/mngMenuMgtForm.jsp @@ -105,7 +105,12 @@ $$Control.load(1); } - function render$$List(data) {} + function render$$List(data) { + if($$Control._paginationInfo.pagingType != "scroll"){ + GRID.clear(); + } + GRID.appendRows(data.contents); + } /* ******************************* * Biz function @@ -251,20 +256,16 @@ const gridOptions = { el: 'grid', rowHeaders: ['rowNum'], - columns: gridColumns - }; - - const gridDatasource = { //DataSource - initialRequest: true // 화면 load시 조회 안함 - default - ,api: { - readData: { - url: '' - ,serializer: (params) => fnAddPageInfo(document.frmSearch, params) - } + columns: gridColumns, + paginationInfoRef : $$Control._paginationInfo, + pageOptions: { + type : $$Control._paginationInfo.pagingType, + perPage: $$Control._paginationInfo.fetchSize } }; - GRID = TuiGrid.of(gridOptions, gridDatasource); + + GRID = TuiGrid.of(gridOptions, null); } /************************************************************************** diff --git a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/menu/mngProgramMgtForm.jsp b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/menu/mngProgramMgtForm.jsp index 5345824b..d6c45c65 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/menu/mngProgramMgtForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/menu/mngProgramMgtForm.jsp @@ -101,7 +101,12 @@ $$Control.load(1); } - function render$$List(data) {} + function render$$List(data) { + if($$Control._paginationInfo.pagingType != "scroll"){ + GRID.clear(); + } + GRID.appendRows(data.contents); + } /* ******************************* * Biz function @@ -200,15 +205,6 @@ align: 'left' } ]; - const gridDatasource = { - initialRequest: true, - api: { - readData: { - url: '' - ,serializer: (params) => fnAddPageInfo(document.frmSearch, params) - } - } - } const gridOptions = { el: 'grid', @@ -220,7 +216,7 @@ perPage: $$Control._paginationInfo.fetchSize } }; - GRID = TuiGrid.of(gridOptions, gridDatasource); + GRID = TuiGrid.of(gridOptions, null); }; /************************************************************************** diff --git a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/usr/mngUserMgtForm.jsp b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/usr/mngUserMgtForm.jsp index 45e1ba13..f6d665af 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/usr/mngUserMgtForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/mng/usr/mngUserMgtForm.jsp @@ -108,7 +108,12 @@ $$Control.load(1); } - function render$$List(data) {} + function render$$List(data) { + if($$Control._paginationInfo.pagingType != "scroll"){ + GRID.clear(); + } + GRID.appendRows(data.contents); + } /* ******************************* * Biz function @@ -250,21 +255,8 @@ } }; - const gridDatasource = { - //initialRequest: true, // 화면 load시 조회 안함 - default - api: { - readData: { - url: '' - ,serializer: (params) => { - const schKey = $('#searchCondition').val(); - if(schKey) return getPageParam({[schKey]: $('#searchKeyword').val(), sbscrbSttus: $('#sbscrbSttus').val()}, params); - return getPageParam({sbscrbSttus: $('#sbscrbSttus').val()}, params); - } - } - } - }; - GRID = TuiGrid.of(gridOptions, gridDatasource); + GRID = TuiGrid.of(gridOptions, null); } /************************************************************************** diff --git a/src/main/webapp/WEB-INF/jsp/template/fims/templateForm.jsp b/src/main/webapp/WEB-INF/jsp/template/fims/templateForm.jsp index 2659e46e..efe35c6e 100644 --- a/src/main/webapp/WEB-INF/jsp/template/fims/templateForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/template/fims/templateForm.jsp @@ -129,7 +129,12 @@ Date Author Description $$Control.load(1); } - function render$$List(data) {} + function render$$List(data) { + if($$Control._paginationInfo.pagingType != "scroll"){ + GRID.clear(); + } + GRID.appendRows(data.contents); + } /* ******************************* * Biz function @@ -230,16 +235,6 @@ Date Author Description } ]; - const gridDatasource = { - // grid load시 조회 : default false - //initialRequest: true, - api: { - readData: { - url: '' - ,serializer: (params) => fnAddPageInfo(document.frmSearch, params) - } - } - } const gridOptions = { el: 'grid', @@ -253,7 +248,7 @@ Date Author Description } }; - GRID = TuiGrid.of(gridOptions, gridDatasource); + GRID = TuiGrid.of(gridOptions, null); }; /**************************************************************************