fix : 그리드 조회 수정

main
이범준 2 years ago
parent c57867989d
commit 7939789d32

@ -315,7 +315,12 @@ Date Author Description
$$Control.load(1); $$Control.load(1);
} }
function render$$List(data) {} function render$$List(data) {
if($$Control._paginationInfo.pagingType != "scroll"){
GRID.clear();
}
GRID.appendRows(data.contents);
}
/******************************* /*******************************
* Biz function * Biz function
*******************************/ *******************************/
@ -713,20 +718,8 @@ Date Author Description
minBodyHeight : 150 minBodyHeight : 150
}; };
const gridDatasource = {
api: {
readData: {
url: fimsApiUrl.FIND_CRACKDOWNS
,serializer: (params) => {
return getPageParam(fnBiz.getParams(), params);
}
}
}
};
const initGrid = () => { 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); const options = $.extend(gridOptions, gridOptions.columns[1].renderer = null, true);
ARR_GRID[1] = TuiGrid.of({...options, el: 'gridb', rowHeaders: ['checkbox','rowNum']}, gridDatasource); ARR_GRID[1] = TuiGrid.of({...options, el: 'gridb', rowHeaders: ['checkbox','rowNum']}, gridDatasource);

@ -116,7 +116,12 @@
$$Control.load(1); $$Control.load(1);
} }
function render$$List(data) {} function render$$List(data) {
if($$Control._paginationInfo.pagingType != "scroll"){
GRID.clear();
}
GRID.appendRows(data.contents);
}
/* ******************************* /* *******************************
* Biz function * Biz function
@ -453,18 +458,7 @@
} }
}; };
const gridDatasource = { GRID = TuiGrid.of(gridOptions, null);
initialRequest: true, // 화면 load시 조회 안함 - default
api: {
readData: {
<%--url: '<c:url value="/fims/biz/ec/findCtznStmtDtls.do"/>'--%>
url: fimsApiUrl.FIND_EC_CTZN_STMT_DTLS
,serializer: (params) => fnAddPageInfo(document.frmSearch, params)
}
}
};
GRID = TuiGrid.of(gridOptions, gridDatasource);
} }
/************************************************************************** /**************************************************************************

@ -100,7 +100,12 @@
$$Control.load(1); $$Control.load(1);
} }
function render$$List(data) {} function render$$List(data) {
if($$Control._paginationInfo.pagingType != "scroll"){
GRID.clear();
}
GRID.appendRows(data.contents);
}
/* ******************************* /* *******************************
* Biz function * Biz function
@ -218,17 +223,7 @@
} }
}; };
const gridDatasource = { GRID = TuiGrid.of(gridOptions, null);
initialRequest: true, // 화면 load시 조회 안함 - default
api: {
readData: {
url: fimsApiUrl.FIND_EC_NATL_NEWS_PAPERS
,serializer: (params) => fnAddPageInfo(document.frmSearch, params)
}
}
};
GRID = TuiGrid.of(gridOptions, gridDatasource);
} }
/************************************************************************** /**************************************************************************

@ -102,7 +102,12 @@
$$Control.load(1); $$Control.load(1);
} }
function render$$List(data) {} function render$$List(data) {
if($$Control._paginationInfo.pagingType != "scroll"){
GRID.clear();
}
GRID.appendRows(data.contents);
}
/******************************* /*******************************
* Biz function * 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 () { const onDblClickEventSet = function () {
GRID.on('dblclick', function (ev){ GRID.on('dblclick', function (ev){
@ -345,7 +333,7 @@
}) })
}; };
GRID = TuiGrid.of(gridOptions, gridDatasource); GRID = TuiGrid.of(gridOptions, null);
} }
/************************************************************************** /**************************************************************************

@ -122,7 +122,12 @@
$$Control.load(1); $$Control.load(1);
} }
function render$$List(data) {} function render$$List(data) {
if($$Control._paginationInfo.pagingType != "scroll"){
GRID.clear();
}
GRID.appendRows(data.contents);
}
/* ******************************* /* *******************************
* Biz function * 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);
} }
/************************************************************************** /**************************************************************************

@ -99,7 +99,12 @@
$$Control.load(1); $$Control.load(1);
} }
function render$$List(data) {} function render$$List(data) {
if($$Control._paginationInfo.pagingType != "scroll"){
GRID.clear();
}
GRID.appendRows(data.contents);
}
/* ******************************* /* *******************************
* Biz function * Biz function
@ -234,18 +239,6 @@
} }
} }
]; ];
const gridDatasource = { //DataSource
/* -----------------------
* DataSource API Setting
----------------------- */
initialRequest: true, // 화면 load시 조회 안함 - default
api: {
readData: {
url: '<c:url value="/framework/biz/mng/auth/findAuthAuthors.do"/>'
,serializer: (params) => fnAddPageInfo(document.frmSearch, params)
}
}
}
const gridOptions = { const gridOptions = {
el: 'grid', el: 'grid',
@ -257,7 +250,7 @@
perPage: $$Control._paginationInfo.fetchSize perPage: $$Control._paginationInfo.fetchSize
} }
}; };
GRID = TuiGrid.of(gridOptions, gridDatasource); GRID = TuiGrid.of(gridOptions, null);
}; };
/************************************************************************** /**************************************************************************

@ -98,7 +98,12 @@
$$Control.load(1); $$Control.load(1);
} }
function render$$List(data) {} function render$$List(data) {
if($$Control._paginationInfo.pagingType != "scroll"){
GRID.clear();
}
GRID.appendRows(data.contents);
}
/* ******************************* /* *******************************
* Biz function * Biz function
@ -224,17 +229,8 @@
} }
}; };
const gridDatasource = { //DataSource
initialRequest: true // 화면 load시 조회 안함 - default
,api: {
readData: {
url: '<c:url value="/framework/biz/mng/auth/findAuthGrps.do"/>'
,serializer: (params) => fnAddPageInfo(document.frmSearch, params)
}
}
};
GRID = TuiGrid.of(gridOptions, gridDatasource); GRID = TuiGrid.of(gridOptions, null);
} }
/************************************************************************** /**************************************************************************

@ -100,7 +100,12 @@
$$Control.load(1); $$Control.load(1);
} }
function render$$List(data) {} function render$$List(data) {
if($$Control._paginationInfo.pagingType != "scroll"){
GRID.clear();
}
GRID.appendRows(data.contents);
}
/* ******************************* /* *******************************
* Biz function * Biz function
@ -226,17 +231,8 @@
} }
}; };
const gridDatasource = { //DataSource
//initialRequest: true, // 화면 load시 조회 안함 - default
api: {
readData: {
url: '<c:url value="/framework/biz/mng/auth/findAuthHierarchies.do"/>'
,serializer: (params) => fnAddPageInfo(document.frmSearch, params)
}
}
};
GRID = TuiGrid.of(gridOptions, gridDatasource); GRID = TuiGrid.of(gridOptions, null);
} }
/************************************************************************** /**************************************************************************

@ -99,7 +99,12 @@
$$Control.load(1); $$Control.load(1);
} }
function render$$List(data) {} function render$$List(data) {
if($$Control._paginationInfo.pagingType != "scroll"){
GRID.clear();
}
GRID.appendRows(data.contents);
}
/* ******************************* /* *******************************
* Biz function * Biz function
@ -223,17 +228,8 @@
} }
}; };
const gridDatasource = { //DataSource
initialRequest: true // 화면 load시 조회 안함 - default
,api: {
readData: {
url: '<c:url value="/framework/biz/mng/auth/findAuthRoles.do"/>'
,serializer: (params) => fnAddPageInfo(document.frmSearch, params)
}
}
};
GRID = TuiGrid.of(gridOptions, gridDatasource); GRID = TuiGrid.of(gridOptions, null);
} }
/************************************************************************** /**************************************************************************

@ -108,7 +108,12 @@
$$Control.load(1); $$Control.load(1);
} }
function render$$List(data) {} function render$$List(data) {
if($$Control._paginationInfo.pagingType != "scroll"){
GRID.clear();
}
GRID.appendRows(data.contents);
}
/* ******************************* /* *******************************
* Biz function * Biz function
@ -253,23 +258,8 @@
} }
}; };
const gridDatasource = {
initialRequest: true, // 화면 load시 조회 안함 - default
api: {
readData: {
<%--url: '<c:url value="/framework/biz/mng/bbs/findBoardBasics.do"/>'--%>
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);
} }
/************************************************************************** /**************************************************************************

@ -100,7 +100,12 @@
$$Control.load(1); $$Control.load(1);
} }
function render$$List(data) {} function render$$List(data) {
if($$Control._paginationInfo.pagingType != "scroll"){
GRID.clear();
}
GRID.appendRows(data.contents);
}
/* ******************************* /* *******************************
* Biz function * Biz function
@ -240,24 +245,17 @@
const gridOptions = { const gridOptions = {
el: 'grid', el: 'grid',
rowHeaders: ['rowNum'], rowHeaders: ['rowNum'],
columns: gridColumns columns: gridColumns,
}; paginationInfoRef : $$Control._paginationInfo,
pageOptions: {
const gridDatasource = { type : $$Control._paginationInfo.pagingType,
initialRequest: true, // 화면 load시 조회 안함 - default perPage: $$Control._paginationInfo.fetchSize
api: {
readData: {
url: '<c:url value="/framework/biz/mng/bbs/findBoardCreates.do"/>'
,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);
} }
/************************************************************************** /**************************************************************************

@ -102,7 +102,12 @@
$$Control.load(1); $$Control.load(1);
} }
function render$$List(data) {} function render$$List(data) {
if($$Control._paginationInfo.pagingType != "scroll"){
GRID.clear();
}
GRID.appendRows(data.contents);
}
/* ******************************* /* *******************************
* Biz function * Biz function
@ -253,22 +258,7 @@
} }
}; };
const gridDatasource = { GRID = TuiGrid.of(gridOptions, null);
initialRequest: true, // 화면 load시 조회 안함 - default
api: {
readData: {
url: '<c:url value="/framework/biz/mng/bbs/findBoardTmpls.do"/>'
,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);
} }
/************************************************************************** /**************************************************************************

@ -99,7 +99,12 @@
$$Control.load(1); $$Control.load(1);
} }
function render$$List(data) {} function render$$List(data) {
if($$Control._paginationInfo.pagingType != "scroll"){
GRID.clear();
}
GRID.appendRows(data.contents);
}
/* ******************************* /* *******************************
* Biz function * Biz function
@ -248,21 +253,8 @@
}; };
const gridDatasource = {
initialRequest: true, // 화면 load시 조회 안함 - default
api: {
readData: {
url: '<c:url value="/framework/biz/mng/bbs/findBoardUsePrcuseList.do"/>'
,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);
} }
/************************************************************************** /**************************************************************************

@ -100,7 +100,12 @@
$$Control.load(1); $$Control.load(1);
} }
function render$$List(data) {} function render$$List(data) {
if($$Control._paginationInfo.pagingType != "scroll"){
GRID.clear();
}
GRID.appendRows(data.contents);
}
/* ******************************* /* *******************************
* Biz function * Biz function
@ -201,15 +206,6 @@
align: 'center' align: 'center'
} }
]; ];
const gridDatasource = {
initialRequest: true,
api: {
readData: {
url: '<c:url value="/framework/biz/mng/code/findCodeCfns.do"/>'
,serializer: (params) => fnAddPageInfo(document.frmSearch, params)
}
}
}
const gridOptions = { const gridOptions = {
el: 'grid', el: 'grid',
@ -221,7 +217,7 @@
perPage: $$Control._paginationInfo.fetchSize perPage: $$Control._paginationInfo.fetchSize
} }
}; };
GRID = TuiGrid.of(gridOptions, gridDatasource); GRID = TuiGrid.of(gridOptions, null);
}; };
/************************************************************************** /**************************************************************************

@ -114,7 +114,12 @@
$$Control.load(1); $$Control.load(1);
} }
function render$$List(data) {} function render$$List(data) {
if($$Control._paginationInfo.pagingType != "scroll"){
GRID.clear();
}
GRID.appendRows(data.contents);
}
/* ******************************* /* *******************************
* Biz function * Biz function
@ -258,15 +263,6 @@
align: 'center' align: 'center'
} }
]; ];
const gridDatasource = {
initialRequest: true,
api: {
readData: {
url: '<c:url value="/framework/biz/mng/code/findCodeDtls.do"/>'
,serializer: (params) => fnAddPageInfo(document.frmSearch, params)
}
}
}
const gridOptions = { const gridOptions = {
el: 'grid', el: 'grid',
@ -281,7 +277,7 @@
perPage: $$Control._paginationInfo.fetchSize perPage: $$Control._paginationInfo.fetchSize
} }
}; };
GRID = TuiGrid.of(gridOptions, gridDatasource); GRID = TuiGrid.of(gridOptions, null);
}; };
/************************************************************************** /**************************************************************************

@ -108,7 +108,12 @@
$$Control.load(1); $$Control.load(1);
} }
function render$$List(data) {} function render$$List(data) {
if($$Control._paginationInfo.pagingType != "scroll"){
GRID.clear();
}
GRID.appendRows(data.contents);
}
/* ******************************* /* *******************************
* Biz function * Biz function
@ -217,15 +222,6 @@
align: 'center' align: 'center'
} }
]; ];
const gridDatasource = {
initialRequest: true,
api: {
readData: {
url: '<c:url value="/framework/biz/mng/code/findCodeGrps.do"/>'
,serializer: (params) => fnAddPageInfo(document.frmSearch, params)
}
}
}
const gridOptions = { const gridOptions = {
el: 'grid', el: 'grid',
@ -237,7 +233,7 @@
perPage: $$Control._paginationInfo.fetchSize perPage: $$Control._paginationInfo.fetchSize
} }
}; };
GRID = TuiGrid.of(gridOptions, gridDatasource); GRID = TuiGrid.of(gridOptions, null);
}; };
/************************************************************************** /**************************************************************************

@ -106,7 +106,12 @@
$$Control.load(1); $$Control.load(1);
} }
function render$$List(data) {} function render$$List(data) {
if($$Control._paginationInfo.pagingType != "scroll"){
GRID.clear();
}
GRID.appendRows(data.contents);
}
/* ******************************* /* *******************************
* Biz function * Biz function
@ -227,20 +232,6 @@
} }
]; ];
const gridDatasource = {
initialRequest: true,
api: {
readData: {
url: '<c:url value="/framework/biz/mng/code/findZipCodes.do"/>'
,serializer: (params) => {
const schKey = $('#searchCondition').val();
if(schKey)
return getPageParam({[schKey]: $('#searchKeyword').val()}, params);
return getPageParam(null, params);
}
}
}
}
const gridOptions = { const gridOptions = {
el: 'grid', el: 'grid',
@ -252,7 +243,7 @@
perPage: $$Control._paginationInfo.fetchSize perPage: $$Control._paginationInfo.fetchSize
} }
}; };
GRID = TuiGrid.of(gridOptions, gridDatasource); GRID = TuiGrid.of(gridOptions, null);
}; };
/************************************************************************** /**************************************************************************

@ -91,7 +91,12 @@
$$Control.load(1); $$Control.load(1);
} }
function render$$List(data) {} function render$$List(data) {
if($$Control._paginationInfo.pagingType != "scroll"){
GRID.clear();
}
GRID.appendRows(data.contents);
}
/* ******************************* /* *******************************
* Biz function * Biz function
******************************* */ ******************************* */
@ -190,15 +195,7 @@
} }
} }
]; ];
const gridDatasource = {
initialRequest: true,
api: {
readData: {
url: '<c:url value="/framework/biz/mng/menu/findMenuByRoleList.do"/>'
,serializer: (params) => fnAddPageInfo(document.frmSearch, params)
}
}
}
const gridOptions = { const gridOptions = {
el: 'grid', el: 'grid',
rowHeaders: ['rowNum'], rowHeaders: ['rowNum'],
@ -213,7 +210,7 @@
} }
}; };
GRID = TuiGrid.of(gridOptions, gridDatasource); GRID = TuiGrid.of(gridOptions, null);
} }
/************************************************************************** /**************************************************************************

@ -105,7 +105,12 @@
$$Control.load(1); $$Control.load(1);
} }
function render$$List(data) {} function render$$List(data) {
if($$Control._paginationInfo.pagingType != "scroll"){
GRID.clear();
}
GRID.appendRows(data.contents);
}
/* ******************************* /* *******************************
* Biz function * Biz function
@ -251,20 +256,16 @@
const gridOptions = { const gridOptions = {
el: 'grid', el: 'grid',
rowHeaders: ['rowNum'], rowHeaders: ['rowNum'],
columns: gridColumns columns: gridColumns,
}; paginationInfoRef : $$Control._paginationInfo,
pageOptions: {
const gridDatasource = { //DataSource type : $$Control._paginationInfo.pagingType,
initialRequest: true // 화면 load시 조회 안함 - default perPage: $$Control._paginationInfo.fetchSize
,api: {
readData: {
url: '<c:url value="/framework/biz/mng/menu/findMenus.do"/>'
,serializer: (params) => fnAddPageInfo(document.frmSearch, params)
}
} }
}; };
GRID = TuiGrid.of(gridOptions, gridDatasource);
GRID = TuiGrid.of(gridOptions, null);
} }
/************************************************************************** /**************************************************************************

@ -101,7 +101,12 @@
$$Control.load(1); $$Control.load(1);
} }
function render$$List(data) {} function render$$List(data) {
if($$Control._paginationInfo.pagingType != "scroll"){
GRID.clear();
}
GRID.appendRows(data.contents);
}
/* ******************************* /* *******************************
* Biz function * Biz function
@ -200,15 +205,6 @@
align: 'left' align: 'left'
} }
]; ];
const gridDatasource = {
initialRequest: true,
api: {
readData: {
url: '<c:url value="/framework/biz/mng/menu/findPrograms.do"/>'
,serializer: (params) => fnAddPageInfo(document.frmSearch, params)
}
}
}
const gridOptions = { const gridOptions = {
el: 'grid', el: 'grid',
@ -220,7 +216,7 @@
perPage: $$Control._paginationInfo.fetchSize perPage: $$Control._paginationInfo.fetchSize
} }
}; };
GRID = TuiGrid.of(gridOptions, gridDatasource); GRID = TuiGrid.of(gridOptions, null);
}; };
/************************************************************************** /**************************************************************************

@ -108,7 +108,12 @@
$$Control.load(1); $$Control.load(1);
} }
function render$$List(data) {} function render$$List(data) {
if($$Control._paginationInfo.pagingType != "scroll"){
GRID.clear();
}
GRID.appendRows(data.contents);
}
/* ******************************* /* *******************************
* Biz function * Biz function
@ -250,21 +255,8 @@
} }
}; };
const gridDatasource = {
//initialRequest: true, // 화면 load시 조회 안함 - default
api: {
readData: {
url: '<c:url value="/framework/biz/mng/usr/findUsers.do"/>'
,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);
} }
/************************************************************************** /**************************************************************************

@ -129,7 +129,12 @@ Date Author Description
$$Control.load(1); $$Control.load(1);
} }
function render$$List(data) {} function render$$List(data) {
if($$Control._paginationInfo.pagingType != "scroll"){
GRID.clear();
}
GRID.appendRows(data.contents);
}
/* ******************************* /* *******************************
* Biz function * Biz function
@ -230,16 +235,6 @@ Date Author Description
} }
]; ];
const gridDatasource = {
// grid load시 조회 : default false
//initialRequest: true,
api: {
readData: {
url: '<c:url value="/framework/biz/mng/code/findCodeDtls.do"/>'
,serializer: (params) => fnAddPageInfo(document.frmSearch, params)
}
}
}
const gridOptions = { const gridOptions = {
el: 'grid', el: 'grid',
@ -253,7 +248,7 @@ Date Author Description
} }
}; };
GRID = TuiGrid.of(gridOptions, gridDatasource); GRID = TuiGrid.of(gridOptions, null);
}; };
/************************************************************************** /**************************************************************************

Loading…
Cancel
Save