From 5ce763edee85b27c1751cdc6724f1df494a7b38a Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Fri, 12 May 2023 10:35:22 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20datasetControl=20=EA=B0=9D=EC=B2=B4?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fims/biz/cmm/cmmIntegratedSearchForm.jsp | 40 +++++++++- .../fims/biz/ec/ecCctvCrackdownMgtForm.jsp | 75 ++++++++++++++----- .../jsp/fims/biz/ec/ecCtznSttemntMgtForm.jsp | 41 +++++++++- .../fims/biz/ec/ecNatlNewspaperMgtForm.jsp | 60 ++++++++++----- .../jsp/fims/biz/rt/rtRegltMgtForm.jsp | 40 +++++++++- .../biz/cmm/answer/cmmAnsTmplForm.jsp | 36 +++++++++ .../biz/mng/auth/mngAuthAuthorMgtForm.jsp | 36 +++++++++ .../biz/mng/auth/mngAuthGrpMgtForm.jsp | 36 +++++++++ .../biz/mng/auth/mngAuthHierarchyMgtForm.jsp | 36 +++++++++ .../biz/mng/auth/mngAuthRoleMgtForm.jsp | 36 +++++++++ .../biz/mng/bbs/mngBoardBasicMgtForm.jsp | 36 +++++++++ .../biz/mng/bbs/mngBoardCreateMgtForm.jsp | 36 +++++++++ .../biz/mng/bbs/mngBoardTmplMgtForm.jsp | 37 +++++++++ .../biz/mng/bbs/mngBoardUseMgtForm.jsp | 36 +++++++++ .../biz/mng/code/mngCodeCfnMgtForm.jsp | 36 +++++++++ .../biz/mng/code/mngCodeDtlMgtForm.jsp | 36 +++++++++ .../biz/mng/code/mngCodeGrpMgtForm.jsp | 36 +++++++++ .../biz/mng/code/mngZipCodeMgtForm.jsp | 36 +++++++++ .../biz/mng/menu/mngMenuByRoleMgtForm.jsp | 42 ++++++++++- .../framework/biz/mng/menu/mngMenuMgtForm.jsp | 37 +++++++++ .../biz/mng/menu/mngProgramMgtForm.jsp | 36 +++++++++ .../framework/biz/mng/usr/mngUserMgtForm.jsp | 36 +++++++++ .../jsp/template/fims/templateForm.jsp | 36 +++++++++ 23 files changed, 873 insertions(+), 39 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 c3deffd0..6decc1f9 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 @@ -273,6 +273,42 @@ Date Author Description */ var callbackSearch = () => search$$s(); + let $$Control = new FimsDatasetControl({ + prefix:"aaa", + prefixName:"ㅁㅁㅁ", + infoSize:"xl", + urls : { + load : fimsApiUrl. + }, + keymapper:info => info ? info.SOME_KEY : "", + dataGetter:obj => obj.data.contents + }); + + $$Control.onDatasetChange = obj => { + let pagination = obj.data.pagination; + + $$Control._paginationInfo.pageNum = pagination.page; + + $$Control.totalCountSetting(obj); + + render$$List(obj.data); + + if($$Control._paginationInfo.pagingType != "scroll"){ + let start = 0; + if(pagination.page > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){ + start = $$Control._paginationInfo.fetchSize * (pagination.page - 1); + } + $("#grid1Paging").setPaging({ + list: $$Control.dataset, + prefix: "grid1", + start: start, + totalSize: pagination.totalCount, + fetchSize: $$Control._paginationInfo.fetchSize, + func: "$$$Control.load({index})", + }); + } + }; + function search$$s(){ ARR_GRID[CUR_TAB_IDX].resetData([]); ARR_GRID[CUR_TAB_IDX].reloadData(); @@ -665,8 +701,10 @@ Date Author Description columnOptions : { frozenCount: 6 }, + paginationInfoRef : $$Control._paginationInfo, pageOptions: { - perPage: 100 + type : $$Control._paginationInfo.pagingType, + perPage: $$Control._paginationInfo.fetchSize }, bodyHeight: 150, minBodyHeight : 150 diff --git a/src/main/webapp/WEB-INF/jsp/fims/biz/ec/ecCctvCrackdownMgtForm.jsp b/src/main/webapp/WEB-INF/jsp/fims/biz/ec/ecCctvCrackdownMgtForm.jsp index 1879b679..fc1e8146 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/biz/ec/ecCctvCrackdownMgtForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/biz/ec/ecCctvCrackdownMgtForm.jsp @@ -54,16 +54,64 @@ * Global Variable **************************************************************************/ let GRID = null; - var callbackSearch = () => search$$s(); + var pageNav = null; - /* ******************************* - * Biz function - ******************************* */ + var callbackSearch = () => search$$s(); + + let $$Control = new FimsDatasetControl({ + prefix:"aaa", + prefixName:"ㅁㅁㅁ", + infoSize:"xl", + urls : { + load : fimsApiUrl.FIND_CCTV_EC_EXTRL_REGLT_CNTCS + }, + keymapper:info => info ? info.SOME_KEY : "", + dataGetter:obj => obj.data.contents + }); + + $$Control.onDatasetChange = obj => { + let pagination = obj.data.pagination; + + $$Control._paginationInfo.pageNum = pagination.page; + + $$Control.totalCountSetting(obj); + + render$$List(obj.data); + + if($$Control._paginationInfo.pagingType != "scroll"){ + let start = 0; + if(pagination.page > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){ + start = $$Control._paginationInfo.fetchSize * (pagination.page - 1); + } + $("#grid1Paging").setPaging({ + list: $$Control.dataset, + prefix: "grid1", + start: start, + totalSize: pagination.totalCount, + fetchSize: $$Control._paginationInfo.fetchSize, + func: "$$$Control.load({index})", + }); + } + }; + function search$$s(){ - GRID.reloadData(); + let formFiels = new FimsFormFields("#frmSearch"); + $$Control.query = formFiels.get(); + GRID.clear(); + $$Control.load(1); + } + + function render$$List(data) { + if($$Control._paginationInfo.pagingType != "scroll"){ + GRID.clear(); + } + GRID.appendRows(data.contents); } + /* ******************************* + * Biz function + ******************************* */ const fnBiz = { pagePopup: function(flag, params){ let url; @@ -126,8 +174,6 @@ sortable: false, align: 'center', formatter: 'listItemText', - //TODO: 편집불가인 경우 disabled: true??? - //editable: false, disabled: true, editor: { type: "select", @@ -194,19 +240,14 @@ columnOptions: { frozenCount: 3 } - }; - - const gridDatasource = { - initialRequest: true, // 화면 load시 조회 안함 - default - api: { - readData: { - url: fimsApiUrl.FIND_CCTV_EC_EXTRL_REGLT_CNTCS - ,serializer: (params) => fnAddPageInfo(document.frmSearch, params) - } + ,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/biz/ec/ecCtznSttemntMgtForm.jsp b/src/main/webapp/WEB-INF/jsp/fims/biz/ec/ecCtznSttemntMgtForm.jsp index 6f170cff..41fc5f6b 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 @@ -73,6 +73,42 @@ var callbackSearch = () => search$$s(); var pageNav = null; + let $$Control = new FimsDatasetControl({ + prefix:"aaa", + prefixName:"ㅁㅁㅁ", + infoSize:"xl", + urls : { + load : fimsApiUrl.FIND_EC_CTZN_STMT_DTLS + }, + keymapper:info => info ? info.SOME_KEY : "", + dataGetter:obj => obj.data.contents + }); + + $$Control.onDatasetChange = obj => { + let pagination = obj.data.pagination; + + $$Control._paginationInfo.pageNum = pagination.page; + + $$Control.totalCountSetting(obj); + + render$$List(obj.data); + + if($$Control._paginationInfo.pagingType != "scroll"){ + let start = 0; + if(pagination.page > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){ + start = $$Control._paginationInfo.fetchSize * (pagination.page - 1); + } + $("#grid1Paging").setPaging({ + list: $$Control.dataset, + prefix: "grid1", + start: start, + totalSize: pagination.totalCount, + fetchSize: $$Control._paginationInfo.fetchSize, + func: "$$$Control.load({index})", + }); + } + }; + function search$$s(){ GRID.reloadData(); } @@ -405,9 +441,10 @@ columnOptions: { frozenCount: 5 }, - //FIXME:페이징 처리를 하지 않아서 1000으로 set(팝업페이지에서 이전/다음 처리를 위해) + paginationInfoRef : $$Control._paginationInfo, pageOptions: { - perPage: 1000 + type : $$Control._paginationInfo.pagingType, + perPage: $$Control._paginationInfo.fetchSize } }; 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 a723445b..16c0b2de 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 @@ -57,6 +57,42 @@ var callbackSearch = () => search$$s(); var unblockUI = () => $.unblockUI(); + let $$Control = new FimsDatasetControl({ + prefix:"aaa", + prefixName:"ㅁㅁㅁ", + infoSize:"xl", + urls : { + load : fimsApiUrl.FIND_EC_NATL_NEWS_PAPERS + }, + keymapper:info => info ? info.SOME_KEY : "", + dataGetter:obj => obj.data.contents + }); + + $$Control.onDatasetChange = obj => { + let pagination = obj.data.pagination; + + $$Control._paginationInfo.pageNum = pagination.page; + + $$Control.totalCountSetting(obj); + + render$$List(obj.data); + + if($$Control._paginationInfo.pagingType != "scroll"){ + let start = 0; + if(pagination.page > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){ + start = $$Control._paginationInfo.fetchSize * (pagination.page - 1); + } + $("#grid1Paging").setPaging({ + list: $$Control.dataset, + prefix: "grid1", + start: start, + totalSize: pagination.totalCount, + fetchSize: $$Control._paginationInfo.fetchSize, + func: "$$$Control.load({index})", + }); + } + }; + function search$$s(){ GRID.reloadData(); } @@ -98,23 +134,7 @@ const rowData = props.grid.getRow(props.rowKey); fnBiz.pagePopup('detail', {interfaceSeqN: rowData.interfaceSeqN}); } - // ,onSearchChange: () => { - // if($('#searchCondition').val() === 'tmplatSeCode'){ - // $('select[name="searchKeyword"]') - // .css('display', 'inline-block') - // .attr('disabled', false); - // $('input[name="searchKeyword"]') - // .css('display', 'none') - // .attr('disabled', true); - // }else{ - // $('select[name="searchKeyword"]') - // .css('display', 'none') - // .attr('disabled', true); - // $('input[name="searchKeyword"]') - // .css('display', 'inline-block') - // .attr('disabled', false); - // } - // } + } /************************************************************************** @@ -185,6 +205,12 @@ el: 'grid', rowHeaders: ['rowNum'], columns: gridColumns + ,paginationInfoRef : $$Control._paginationInfo + + ,pageOptions: { + type : $$Control._paginationInfo.pagingType, + perPage: $$Control._paginationInfo.fetchSize + } }; const gridDatasource = { 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 02c9c763..c0399499 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 @@ -60,6 +60,42 @@ var pageNav = null; var callbackSearch = () => search$$s(); + let $$Control = new FimsDatasetControl({ + prefix:"aaa", + prefixName:"ㅁㅁㅁ", + infoSize:"xl", + urls : { + load : fimsApiUrl.FIND_RT_REGLTS + }, + keymapper:info => info ? info.SOME_KEY : "", + dataGetter:obj => obj.data.contents + }); + + $$Control.onDatasetChange = obj => { + let pagination = obj.data.pagination; + + $$Control._paginationInfo.pageNum = pagination.page; + + $$Control.totalCountSetting(obj); + + render$$List(obj.data); + + if($$Control._paginationInfo.pagingType != "scroll"){ + let start = 0; + if(pagination.page > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){ + start = $$Control._paginationInfo.fetchSize * (pagination.page - 1); + } + $("#grid1Paging").setPaging({ + list: $$Control.dataset, + prefix: "grid1", + start: start, + totalSize: pagination.totalCount, + fetchSize: $$Control._paginationInfo.fetchSize, + func: "$$$Control.load({index})", + }); + } + }; + function search$$s(){ GRID.reloadData(); } @@ -262,8 +298,10 @@ el: 'grid', rowHeaders: ['rowNum'], columns: gridColumns, + paginationInfoRef : $$Control._paginationInfo, pageOptions: { - perPage: 5 + type : $$Control._paginationInfo.pagingType, + perPage: $$Control._paginationInfo.fetchSize } }; 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 11438a20..c5230928 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 @@ -79,6 +79,42 @@ let GRID = null; var callbackSearch = () => search$$s(); + let $$Control = new FimsDatasetControl({ + prefix:"aaa", + prefixName:"ㅁㅁㅁ", + infoSize:"xl", + urls : { + load : frwkApiUrl.FIND_ANS_TMPLS + }, + keymapper:info => info ? info.SOME_KEY : "", + dataGetter:obj => obj.data.contents + }); + + $$Control.onDatasetChange = obj => { + let pagination = obj.data.pagination; + + $$Control._paginationInfo.pageNum = pagination.page; + + $$Control.totalCountSetting(obj); + + render$$List(obj.data); + + if($$Control._paginationInfo.pagingType != "scroll"){ + let start = 0; + if(pagination.page > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){ + start = $$Control._paginationInfo.fetchSize * (pagination.page - 1); + } + $("#grid1Paging").setPaging({ + list: $$Control.dataset, + prefix: "grid1", + start: start, + totalSize: pagination.totalCount, + fetchSize: $$Control._paginationInfo.fetchSize, + func: "$$$Control.load({index})", + }); + } + }; + function search$$s(){ GRID.reloadData(); } 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 c07ac579..252bb221 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 @@ -56,6 +56,42 @@ **************************************************************************/ var callbackSearch = () => search$$s(); + let $$Control = new FimsDatasetControl({ + prefix:"aaa", + prefixName:"ㅁㅁㅁ", + infoSize:"xl", + urls : { + load : '' + }, + keymapper:info => info ? info.SOME_KEY : "", + dataGetter:obj => obj.data.contents + }); + + $$Control.onDatasetChange = obj => { + let pagination = obj.data.pagination; + + $$Control._paginationInfo.pageNum = pagination.page; + + $$Control.totalCountSetting(obj); + + render$$List(obj.data); + + if($$Control._paginationInfo.pagingType != "scroll"){ + let start = 0; + if(pagination.page > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){ + start = $$Control._paginationInfo.fetchSize * (pagination.page - 1); + } + $("#grid1Paging").setPaging({ + list: $$Control.dataset, + prefix: "grid1", + start: start, + totalSize: pagination.totalCount, + fetchSize: $$Control._paginationInfo.fetchSize, + func: "$$$Control.load({index})", + }); + } + }; + function search$$s(){ GRID.reloadData(); } 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 a6ac1025..aff2e4b3 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 @@ -55,6 +55,42 @@ let GRID = null; var callbackSearch = () => search$$s(); + let $$Control = new FimsDatasetControl({ + prefix:"aaa", + prefixName:"ㅁㅁㅁ", + infoSize:"xl", + urls : { + load : '' + }, + keymapper:info => info ? info.SOME_KEY : "", + dataGetter:obj => obj.data.contents + }); + + $$Control.onDatasetChange = obj => { + let pagination = obj.data.pagination; + + $$Control._paginationInfo.pageNum = pagination.page; + + $$Control.totalCountSetting(obj); + + render$$List(obj.data); + + if($$Control._paginationInfo.pagingType != "scroll"){ + let start = 0; + if(pagination.page > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){ + start = $$Control._paginationInfo.fetchSize * (pagination.page - 1); + } + $("#grid1Paging").setPaging({ + list: $$Control.dataset, + prefix: "grid1", + start: start, + totalSize: pagination.totalCount, + fetchSize: $$Control._paginationInfo.fetchSize, + func: "$$$Control.load({index})", + }); + } + }; + function search$$s(){ GRID.reloadData(); } 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 3c0e3c07..c1fae95c 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 @@ -57,6 +57,42 @@ var callbackSearch = () => { if(GRID) search$$s(); } + let $$Control = new FimsDatasetControl({ + prefix:"aaa", + prefixName:"ㅁㅁㅁ", + infoSize:"xl", + urls : { + load : '' + }, + keymapper:info => info ? info.SOME_KEY : "", + dataGetter:obj => obj.data.contents + }); + + $$Control.onDatasetChange = obj => { + let pagination = obj.data.pagination; + + $$Control._paginationInfo.pageNum = pagination.page; + + $$Control.totalCountSetting(obj); + + render$$List(obj.data); + + if($$Control._paginationInfo.pagingType != "scroll"){ + let start = 0; + if(pagination.page > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){ + start = $$Control._paginationInfo.fetchSize * (pagination.page - 1); + } + $("#grid1Paging").setPaging({ + list: $$Control.dataset, + prefix: "grid1", + start: start, + totalSize: pagination.totalCount, + fetchSize: $$Control._paginationInfo.fetchSize, + func: "$$$Control.load({index})", + }); + } + }; + function search$$s(){ GRID.reloadData(); } 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 d6105777..fc9f2e9b 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 @@ -56,6 +56,42 @@ let GRID = null; var callbackSearch = () => search$$s(); + let $$Control = new FimsDatasetControl({ + prefix:"aaa", + prefixName:"ㅁㅁㅁ", + infoSize:"xl", + urls : { + load : '' + }, + keymapper:info => info ? info.SOME_KEY : "", + dataGetter:obj => obj.data.contents + }); + + $$Control.onDatasetChange = obj => { + let pagination = obj.data.pagination; + + $$Control._paginationInfo.pageNum = pagination.page; + + $$Control.totalCountSetting(obj); + + render$$List(obj.data); + + if($$Control._paginationInfo.pagingType != "scroll"){ + let start = 0; + if(pagination.page > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){ + start = $$Control._paginationInfo.fetchSize * (pagination.page - 1); + } + $("#grid1Paging").setPaging({ + list: $$Control.dataset, + prefix: "grid1", + start: start, + totalSize: pagination.totalCount, + fetchSize: $$Control._paginationInfo.fetchSize, + func: "$$$Control.load({index})", + }); + } + }; + function search$$s(){ GRID.reloadData(); } 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 f024d082..da04a46a 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 @@ -66,6 +66,42 @@ var callbackSearch = () => search$$s(); + let $$Control = new FimsDatasetControl({ + prefix:"aaa", + prefixName:"ㅁㅁㅁ", + infoSize:"xl", + urls : { + load : frwkApiUrl.FIND_BOARD_BASICS + }, + keymapper:info => info ? info.SOME_KEY : "", + dataGetter:obj => obj.data.contents + }); + + $$Control.onDatasetChange = obj => { + let pagination = obj.data.pagination; + + $$Control._paginationInfo.pageNum = pagination.page; + + $$Control.totalCountSetting(obj); + + render$$List(obj.data); + + if($$Control._paginationInfo.pagingType != "scroll"){ + let start = 0; + if(pagination.page > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){ + start = $$Control._paginationInfo.fetchSize * (pagination.page - 1); + } + $("#grid1Paging").setPaging({ + list: $$Control.dataset, + prefix: "grid1", + start: start, + totalSize: pagination.totalCount, + fetchSize: $$Control._paginationInfo.fetchSize, + func: "$$$Control.load({index})", + }); + } + }; + function search$$s(){ GRID.reloadData(); } 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 610fd223..84d06a66 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 @@ -58,6 +58,42 @@ let GRID = null; var callbackSearch = () => search$$s(); + let $$Control = new FimsDatasetControl({ + prefix:"aaa", + prefixName:"ㅁㅁㅁ", + infoSize:"xl", + urls : { + load : '' + }, + keymapper:info => info ? info.SOME_KEY : "", + dataGetter:obj => obj.data.contents + }); + + $$Control.onDatasetChange = obj => { + let pagination = obj.data.pagination; + + $$Control._paginationInfo.pageNum = pagination.page; + + $$Control.totalCountSetting(obj); + + render$$List(obj.data); + + if($$Control._paginationInfo.pagingType != "scroll"){ + let start = 0; + if(pagination.page > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){ + start = $$Control._paginationInfo.fetchSize * (pagination.page - 1); + } + $("#grid1Paging").setPaging({ + list: $$Control.dataset, + prefix: "grid1", + start: start, + totalSize: pagination.totalCount, + fetchSize: $$Control._paginationInfo.fetchSize, + func: "$$$Control.load({index})", + }); + } + }; + function search$$s(){ GRID.reloadData(); } 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 3636c944..44f7f739 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 @@ -59,6 +59,43 @@ let GRID = null; var callbackSearch = () => search$$s(); + + let $$Control = new FimsDatasetControl({ + prefix:"aaa", + prefixName:"ㅁㅁㅁ", + infoSize:"xl", + urls : { + load : '' + }, + keymapper:info => info ? info.SOME_KEY : "", + dataGetter:obj => obj.data.contents + }); + + $$Control.onDatasetChange = obj => { + let pagination = obj.data.pagination; + + $$Control._paginationInfo.pageNum = pagination.page; + + $$Control.totalCountSetting(obj); + + render$$List(obj.data); + + if($$Control._paginationInfo.pagingType != "scroll"){ + let start = 0; + if(pagination.page > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){ + start = $$Control._paginationInfo.fetchSize * (pagination.page - 1); + } + $("#grid1Paging").setPaging({ + list: $$Control.dataset, + prefix: "grid1", + start: start, + totalSize: pagination.totalCount, + fetchSize: $$Control._paginationInfo.fetchSize, + func: "$$$Control.load({index})", + }); + } + }; + function search$$s(){ GRID.reloadData(); } 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 6c1c23df..49980f1f 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 @@ -57,6 +57,42 @@ let GRID = null; var callbackSearch = () => search$$s(); + let $$Control = new FimsDatasetControl({ + prefix:"aaa", + prefixName:"ㅁㅁㅁ", + infoSize:"xl", + urls : { + load : '' + }, + keymapper:info => info ? info.SOME_KEY : "", + dataGetter:obj => obj.data.contents + }); + + $$Control.onDatasetChange = obj => { + let pagination = obj.data.pagination; + + $$Control._paginationInfo.pageNum = pagination.page; + + $$Control.totalCountSetting(obj); + + render$$List(obj.data); + + if($$Control._paginationInfo.pagingType != "scroll"){ + let start = 0; + if(pagination.page > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){ + start = $$Control._paginationInfo.fetchSize * (pagination.page - 1); + } + $("#grid1Paging").setPaging({ + list: $$Control.dataset, + prefix: "grid1", + start: start, + totalSize: pagination.totalCount, + fetchSize: $$Control._paginationInfo.fetchSize, + func: "$$$Control.load({index})", + }); + } + }; + function search$$s(){ GRID.reloadData(); } 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 f03ffd8c..d3015472 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 @@ -57,6 +57,42 @@ var callbackSearch = () => search$$s(); // 데이터 조회 : popup에서 사용 + let $$Control = new FimsDatasetControl({ + prefix:"aaa", + prefixName:"ㅁㅁㅁ", + infoSize:"xl", + urls : { + load : '' + }, + keymapper:info => info ? info.SOME_KEY : "", + dataGetter:obj => obj.data.contents + }); + + $$Control.onDatasetChange = obj => { + let pagination = obj.data.pagination; + + $$Control._paginationInfo.pageNum = pagination.page; + + $$Control.totalCountSetting(obj); + + render$$List(obj.data); + + if($$Control._paginationInfo.pagingType != "scroll"){ + let start = 0; + if(pagination.page > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){ + start = $$Control._paginationInfo.fetchSize * (pagination.page - 1); + } + $("#grid1Paging").setPaging({ + list: $$Control.dataset, + prefix: "grid1", + start: start, + totalSize: pagination.totalCount, + fetchSize: $$Control._paginationInfo.fetchSize, + func: "$$$Control.load({index})", + }); + } + }; + function search$$s(){ GRID.reloadData(); } 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 1401d71d..7006114c 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 @@ -71,6 +71,42 @@ var callbackSearch = () => search$$s(); // 데이터 조회 : popup에서 사용 + let $$Control = new FimsDatasetControl({ + prefix:"aaa", + prefixName:"ㅁㅁㅁ", + infoSize:"xl", + urls : { + load : '' + }, + keymapper:info => info ? info.SOME_KEY : "", + dataGetter:obj => obj.data.contents + }); + + $$Control.onDatasetChange = obj => { + let pagination = obj.data.pagination; + + $$Control._paginationInfo.pageNum = pagination.page; + + $$Control.totalCountSetting(obj); + + render$$List(obj.data); + + if($$Control._paginationInfo.pagingType != "scroll"){ + let start = 0; + if(pagination.page > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){ + start = $$Control._paginationInfo.fetchSize * (pagination.page - 1); + } + $("#grid1Paging").setPaging({ + list: $$Control.dataset, + prefix: "grid1", + start: start, + totalSize: pagination.totalCount, + fetchSize: $$Control._paginationInfo.fetchSize, + func: "$$$Control.load({index})", + }); + } + }; + function search$$s(){ GRID.reloadData(); } 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 930c16be..e5179fcb 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 @@ -65,6 +65,42 @@ let GRID = null; var callbackSearch = () => search$$s(); // 데이터 조회 : popup에서 사용 + let $$Control = new FimsDatasetControl({ + prefix:"aaa", + prefixName:"ㅁㅁㅁ", + infoSize:"xl", + urls : { + load : '' + }, + keymapper:info => info ? info.SOME_KEY : "", + dataGetter:obj => obj.data.contents + }); + + $$Control.onDatasetChange = obj => { + let pagination = obj.data.pagination; + + $$Control._paginationInfo.pageNum = pagination.page; + + $$Control.totalCountSetting(obj); + + render$$List(obj.data); + + if($$Control._paginationInfo.pagingType != "scroll"){ + let start = 0; + if(pagination.page > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){ + start = $$Control._paginationInfo.fetchSize * (pagination.page - 1); + } + $("#grid1Paging").setPaging({ + list: $$Control.dataset, + prefix: "grid1", + start: start, + totalSize: pagination.totalCount, + fetchSize: $$Control._paginationInfo.fetchSize, + func: "$$$Control.load({index})", + }); + } + }; + function search$$s(){ GRID.reloadData(); } 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 6f656be5..2143d3a6 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 @@ -64,6 +64,42 @@ let GRID = null; var callbackSearch = () => search$$s(); // 데이터 조회 : popup에서 사용 + let $$Control = new FimsDatasetControl({ + prefix:"aaa", + prefixName:"ㅁㅁㅁ", + infoSize:"xl", + urls : { + load : '' + }, + keymapper:info => info ? info.SOME_KEY : "", + dataGetter:obj => obj.data.contents + }); + + $$Control.onDatasetChange = obj => { + let pagination = obj.data.pagination; + + $$Control._paginationInfo.pageNum = pagination.page; + + $$Control.totalCountSetting(obj); + + render$$List(obj.data); + + if($$Control._paginationInfo.pagingType != "scroll"){ + let start = 0; + if(pagination.page > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){ + start = $$Control._paginationInfo.fetchSize * (pagination.page - 1); + } + $("#grid1Paging").setPaging({ + list: $$Control.dataset, + prefix: "grid1", + start: start, + totalSize: pagination.totalCount, + fetchSize: $$Control._paginationInfo.fetchSize, + func: "$$$Control.load({index})", + }); + } + }; + function search$$s(){ GRID.reloadData(); } 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 16fffe7e..adcf384d 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 @@ -47,6 +47,43 @@ **************************************************************************/ let GRID = null; var callbackSearch = () => search$$s(); + + let $$Control = new FimsDatasetControl({ + prefix:"aaa", + prefixName:"ㅁㅁㅁ", + infoSize:"xl", + urls : { + load : '' + }, + keymapper:info => info ? info.SOME_KEY : "", + dataGetter:obj => obj.data.contents + }); + + $$Control.onDatasetChange = obj => { + let pagination = obj.data.pagination; + + $$Control._paginationInfo.pageNum = pagination.page; + + $$Control.totalCountSetting(obj); + + render$$List(obj.data); + + if($$Control._paginationInfo.pagingType != "scroll"){ + let start = 0; + if(pagination.page > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){ + start = $$Control._paginationInfo.fetchSize * (pagination.page - 1); + } + $("#grid1Paging").setPaging({ + list: $$Control.dataset, + prefix: "grid1", + start: start, + totalSize: pagination.totalCount, + fetchSize: $$Control._paginationInfo.fetchSize, + func: "$$$Control.load({index})", + }); + } + }; + function search$$s(){ GRID.reloadData(); } @@ -161,10 +198,13 @@ el: 'grid', rowHeaders: ['rowNum'], columns: gridColumns, + paginationInfoRef : $$Control._paginationInfo, + pagination: false, pageOptions: { useClient: true, - perPage: 1000 + type : $$Control._paginationInfo.pagingType, + perPage: $$Control._paginationInfo.fetchSize } }; 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 91af9489..c285dae7 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 @@ -61,6 +61,43 @@ **************************************************************************/ let GRID = null; var callbackSearch = () => search$$s(); + + let $$Control = new FimsDatasetControl({ + prefix:"aaa", + prefixName:"ㅁㅁㅁ", + infoSize:"xl", + urls : { + load : '' + }, + keymapper:info => info ? info.SOME_KEY : "", + dataGetter:obj => obj.data.contents + }); + + $$Control.onDatasetChange = obj => { + let pagination = obj.data.pagination; + + $$Control._paginationInfo.pageNum = pagination.page; + + $$Control.totalCountSetting(obj); + + render$$List(obj.data); + + if($$Control._paginationInfo.pagingType != "scroll"){ + let start = 0; + if(pagination.page > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){ + start = $$Control._paginationInfo.fetchSize * (pagination.page - 1); + } + $("#grid1Paging").setPaging({ + list: $$Control.dataset, + prefix: "grid1", + start: start, + totalSize: pagination.totalCount, + fetchSize: $$Control._paginationInfo.fetchSize, + func: "$$$Control.load({index})", + }); + } + }; + function search$$s(){ GRID.reloadData(); } 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 dda51074..fa27fe48 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 @@ -58,6 +58,42 @@ var callbackSearch = () => search$$s(); // 데이터 조회 : popup에서 사용 + let $$Control = new FimsDatasetControl({ + prefix:"aaa", + prefixName:"ㅁㅁㅁ", + infoSize:"xl", + urls : { + load : '' + }, + keymapper:info => info ? info.SOME_KEY : "", + dataGetter:obj => obj.data.contents + }); + + $$Control.onDatasetChange = obj => { + let pagination = obj.data.pagination; + + $$Control._paginationInfo.pageNum = pagination.page; + + $$Control.totalCountSetting(obj); + + render$$List(obj.data); + + if($$Control._paginationInfo.pagingType != "scroll"){ + let start = 0; + if(pagination.page > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){ + start = $$Control._paginationInfo.fetchSize * (pagination.page - 1); + } + $("#grid1Paging").setPaging({ + list: $$Control.dataset, + prefix: "grid1", + start: start, + totalSize: pagination.totalCount, + fetchSize: $$Control._paginationInfo.fetchSize, + func: "$$$Control.load({index})", + }); + } + }; + function search$$s(){ GRID.reloadData(); } 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 371a19a1..e52a3e65 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 @@ -66,6 +66,42 @@ let GRID = null; var callbackSearch = () => search$$s(); + let $$Control = new FimsDatasetControl({ + prefix:"aaa", + prefixName:"ㅁㅁㅁ", + infoSize:"xl", + urls : { + load : '' + }, + keymapper:info => info ? info.SOME_KEY : "", + dataGetter:obj => obj.data.contents + }); + + $$Control.onDatasetChange = obj => { + let pagination = obj.data.pagination; + + $$Control._paginationInfo.pageNum = pagination.page; + + $$Control.totalCountSetting(obj); + + render$$List(obj.data); + + if($$Control._paginationInfo.pagingType != "scroll"){ + let start = 0; + if(pagination.page > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){ + start = $$Control._paginationInfo.fetchSize * (pagination.page - 1); + } + $("#grid1Paging").setPaging({ + list: $$Control.dataset, + prefix: "grid1", + start: start, + totalSize: pagination.totalCount, + fetchSize: $$Control._paginationInfo.fetchSize, + func: "$$$Control.load({index})", + }); + } + }; + function search$$s(){ GRID.reloadData(); } 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 bdb8235e..9e75586f 100644 --- a/src/main/webapp/WEB-INF/jsp/template/fims/templateForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/template/fims/templateForm.jsp @@ -86,6 +86,42 @@ Date Author Description var callbackSearch = () => search$$s(); let GRID = null; + let $$Control = new FimsDatasetControl({ + prefix:"aaa", + prefixName:"ㅁㅁㅁ", + infoSize:"xl", + urls : { + load : '' + }, + keymapper:info => info ? info.SOME_KEY : "", + dataGetter:obj => obj.data.contents + }); + + $$Control.onDatasetChange = obj => { + let pagination = obj.data.pagination; + + $$Control._paginationInfo.pageNum = pagination.page; + + $$Control.totalCountSetting(obj); + + render$$List(obj.data); + + if($$Control._paginationInfo.pagingType != "scroll"){ + let start = 0; + if(pagination.page > 1 && pagination.totalPage > 1 && pagination.totalCount > $$Control._paginationInfo.fetchSize){ + start = $$Control._paginationInfo.fetchSize * (pagination.page - 1); + } + $("#grid1Paging").setPaging({ + list: $$Control.dataset, + prefix: "grid1", + start: start, + totalSize: pagination.totalCount, + fetchSize: $$Control._paginationInfo.fetchSize, + func: "$$$Control.load({index})", + }); + } + }; + function search$$s(){ GRID.reloadData(); }