fix : datasetControl 객체 추가

main
이범준 2 years ago
parent 2c12df8318
commit 5ce763edee

@ -273,6 +273,42 @@ Date Author Description
*/ */
var callbackSearch = () => search$$s(); 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(){ function search$$s(){
ARR_GRID[CUR_TAB_IDX].resetData([]); ARR_GRID[CUR_TAB_IDX].resetData([]);
ARR_GRID[CUR_TAB_IDX].reloadData(); ARR_GRID[CUR_TAB_IDX].reloadData();
@ -665,8 +701,10 @@ Date Author Description
columnOptions : { columnOptions : {
frozenCount: 6 frozenCount: 6
}, },
paginationInfoRef : $$Control._paginationInfo,
pageOptions: { pageOptions: {
perPage: 100 type : $$Control._paginationInfo.pagingType,
perPage: $$Control._paginationInfo.fetchSize
}, },
bodyHeight: 150, bodyHeight: 150,
minBodyHeight : 150 minBodyHeight : 150

@ -54,16 +54,64 @@
* Global Variable * Global Variable
**************************************************************************/ **************************************************************************/
let GRID = null; let GRID = null;
var callbackSearch = () => search$$s();
var pageNav = null; var pageNav = null;
/* ******************************* var callbackSearch = () => search$$s();
* Biz function
******************************* */ 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(){ 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 = { const fnBiz = {
pagePopup: function(flag, params){ pagePopup: function(flag, params){
let url; let url;
@ -126,8 +174,6 @@
sortable: false, sortable: false,
align: 'center', align: 'center',
formatter: 'listItemText', formatter: 'listItemText',
//TODO: 편집불가인 경우 disabled: true???
//editable: false,
disabled: true, disabled: true,
editor: { editor: {
type: "select", type: "select",
@ -194,19 +240,14 @@
columnOptions: { columnOptions: {
frozenCount: 3 frozenCount: 3
} }
}; ,paginationInfoRef : $$Control._paginationInfo
,pageOptions: {
const gridDatasource = { type : $$Control._paginationInfo.pagingType,
initialRequest: true, // 화면 load시 조회 안함 - default perPage: $$Control._paginationInfo.fetchSize
api: {
readData: {
url: fimsApiUrl.FIND_CCTV_EC_EXTRL_REGLT_CNTCS
,serializer: (params) => fnAddPageInfo(document.frmSearch, params)
}
} }
}; };
GRID = TuiGrid.of(gridOptions, gridDatasource); GRID = TuiGrid.of(gridOptions, null);
} }
/************************************************************************** /**************************************************************************

@ -73,6 +73,42 @@
var callbackSearch = () => search$$s(); var callbackSearch = () => search$$s();
var pageNav = null; 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(){ function search$$s(){
GRID.reloadData(); GRID.reloadData();
} }
@ -405,9 +441,10 @@
columnOptions: { columnOptions: {
frozenCount: 5 frozenCount: 5
}, },
//FIXME:페이징 처리를 하지 않아서 1000으로 set(팝업페이지에서 이전/다음 처리를 위해) paginationInfoRef : $$Control._paginationInfo,
pageOptions: { pageOptions: {
perPage: 1000 type : $$Control._paginationInfo.pagingType,
perPage: $$Control._paginationInfo.fetchSize
} }
}; };

@ -57,6 +57,42 @@
var callbackSearch = () => search$$s(); var callbackSearch = () => search$$s();
var unblockUI = () => $.unblockUI(); 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(){ function search$$s(){
GRID.reloadData(); GRID.reloadData();
} }
@ -98,23 +134,7 @@
const rowData = props.grid.getRow(props.rowKey); const rowData = props.grid.getRow(props.rowKey);
fnBiz.pagePopup('detail', {interfaceSeqN: rowData.interfaceSeqN}); 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', el: 'grid',
rowHeaders: ['rowNum'], rowHeaders: ['rowNum'],
columns: gridColumns columns: gridColumns
,paginationInfoRef : $$Control._paginationInfo
,pageOptions: {
type : $$Control._paginationInfo.pagingType,
perPage: $$Control._paginationInfo.fetchSize
}
}; };
const gridDatasource = { const gridDatasource = {

@ -60,6 +60,42 @@
var pageNav = null; var pageNav = null;
var callbackSearch = () => search$$s(); 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(){ function search$$s(){
GRID.reloadData(); GRID.reloadData();
} }
@ -262,8 +298,10 @@
el: 'grid', el: 'grid',
rowHeaders: ['rowNum'], rowHeaders: ['rowNum'],
columns: gridColumns, columns: gridColumns,
paginationInfoRef : $$Control._paginationInfo,
pageOptions: { pageOptions: {
perPage: 5 type : $$Control._paginationInfo.pagingType,
perPage: $$Control._paginationInfo.fetchSize
} }
}; };

@ -79,6 +79,42 @@
let GRID = null; let GRID = null;
var callbackSearch = () => search$$s(); 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(){ function search$$s(){
GRID.reloadData(); GRID.reloadData();
} }

@ -56,6 +56,42 @@
**************************************************************************/ **************************************************************************/
var callbackSearch = () => search$$s(); var callbackSearch = () => search$$s();
let $$Control = new FimsDatasetControl({
prefix:"aaa",
prefixName:"ㅁㅁㅁ",
infoSize:"xl",
urls : {
load : '<c:url value="/framework/biz/mng/auth/findAuthAuthors.do"/>'
},
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(){ function search$$s(){
GRID.reloadData(); GRID.reloadData();
} }

@ -55,6 +55,42 @@
let GRID = null; let GRID = null;
var callbackSearch = () => search$$s(); var callbackSearch = () => search$$s();
let $$Control = new FimsDatasetControl({
prefix:"aaa",
prefixName:"ㅁㅁㅁ",
infoSize:"xl",
urls : {
load : '<c:url value="/framework/biz/mng/auth/findAuthGrps.do"/>'
},
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(){ function search$$s(){
GRID.reloadData(); GRID.reloadData();
} }

@ -57,6 +57,42 @@
var callbackSearch = () => { if(GRID) search$$s(); } var callbackSearch = () => { if(GRID) search$$s(); }
let $$Control = new FimsDatasetControl({
prefix:"aaa",
prefixName:"ㅁㅁㅁ",
infoSize:"xl",
urls : {
load : '<c:url value="/framework/biz/mng/auth/findAuthHierarchies.do"/>'
},
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(){ function search$$s(){
GRID.reloadData(); GRID.reloadData();
} }

@ -56,6 +56,42 @@
let GRID = null; let GRID = null;
var callbackSearch = () => search$$s(); var callbackSearch = () => search$$s();
let $$Control = new FimsDatasetControl({
prefix:"aaa",
prefixName:"ㅁㅁㅁ",
infoSize:"xl",
urls : {
load : '<c:url value="/framework/biz/mng/auth/findAuthRoles.do"/>'
},
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(){ function search$$s(){
GRID.reloadData(); GRID.reloadData();
} }

@ -66,6 +66,42 @@
var callbackSearch = () => search$$s(); 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(){ function search$$s(){
GRID.reloadData(); GRID.reloadData();
} }

@ -58,6 +58,42 @@
let GRID = null; let GRID = null;
var callbackSearch = () => search$$s(); var callbackSearch = () => search$$s();
let $$Control = new FimsDatasetControl({
prefix:"aaa",
prefixName:"ㅁㅁㅁ",
infoSize:"xl",
urls : {
load : '<c:url value="/framework/biz/mng/bbs/findBoardCreates.do"/>'
},
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(){ function search$$s(){
GRID.reloadData(); GRID.reloadData();
} }

@ -59,6 +59,43 @@
let GRID = null; let GRID = null;
var callbackSearch = () => search$$s(); var callbackSearch = () => search$$s();
let $$Control = new FimsDatasetControl({
prefix:"aaa",
prefixName:"ㅁㅁㅁ",
infoSize:"xl",
urls : {
load : '<c:url value="/framework/biz/mng/bbs/findBoardTmpls.do"/>'
},
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(){ function search$$s(){
GRID.reloadData(); GRID.reloadData();
} }

@ -57,6 +57,42 @@
let GRID = null; let GRID = null;
var callbackSearch = () => search$$s(); var callbackSearch = () => search$$s();
let $$Control = new FimsDatasetControl({
prefix:"aaa",
prefixName:"ㅁㅁㅁ",
infoSize:"xl",
urls : {
load : '<c:url value="/framework/biz/mng/bbs/findBoardUsePrcuseList.do"/>'
},
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(){ function search$$s(){
GRID.reloadData(); GRID.reloadData();
} }

@ -57,6 +57,42 @@
var callbackSearch = () => search$$s(); // 데이터 조회 : popup에서 사용 var callbackSearch = () => search$$s(); // 데이터 조회 : popup에서 사용
let $$Control = new FimsDatasetControl({
prefix:"aaa",
prefixName:"ㅁㅁㅁ",
infoSize:"xl",
urls : {
load : '<c:url value="/framework/biz/mng/code/findCodeCfns.do"/>'
},
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(){ function search$$s(){
GRID.reloadData(); GRID.reloadData();
} }

@ -71,6 +71,42 @@
var callbackSearch = () => search$$s(); // 데이터 조회 : popup에서 사용 var callbackSearch = () => search$$s(); // 데이터 조회 : popup에서 사용
let $$Control = new FimsDatasetControl({
prefix:"aaa",
prefixName:"ㅁㅁㅁ",
infoSize:"xl",
urls : {
load : '<c:url value="/framework/biz/mng/code/findCodeDtls.do"/>'
},
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(){ function search$$s(){
GRID.reloadData(); GRID.reloadData();
} }

@ -65,6 +65,42 @@
let GRID = null; let GRID = null;
var callbackSearch = () => search$$s(); // 데이터 조회 : popup에서 사용 var callbackSearch = () => search$$s(); // 데이터 조회 : popup에서 사용
let $$Control = new FimsDatasetControl({
prefix:"aaa",
prefixName:"ㅁㅁㅁ",
infoSize:"xl",
urls : {
load : '<c:url value="/framework/biz/mng/code/findCodeGrps.do"/>'
},
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(){ function search$$s(){
GRID.reloadData(); GRID.reloadData();
} }

@ -64,6 +64,42 @@
let GRID = null; let GRID = null;
var callbackSearch = () => search$$s(); // 데이터 조회 : popup에서 사용 var callbackSearch = () => search$$s(); // 데이터 조회 : popup에서 사용
let $$Control = new FimsDatasetControl({
prefix:"aaa",
prefixName:"ㅁㅁㅁ",
infoSize:"xl",
urls : {
load : '<c:url value="/framework/biz/mng/code/findZipCodes.do"/>'
},
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(){ function search$$s(){
GRID.reloadData(); GRID.reloadData();
} }

@ -47,6 +47,43 @@
**************************************************************************/ **************************************************************************/
let GRID = null; let GRID = null;
var callbackSearch = () => search$$s(); var callbackSearch = () => search$$s();
let $$Control = new FimsDatasetControl({
prefix:"aaa",
prefixName:"ㅁㅁㅁ",
infoSize:"xl",
urls : {
load : '<c:url value="/framework/biz/mng/menu/findMenuByRoleList.do"/>'
},
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(){ function search$$s(){
GRID.reloadData(); GRID.reloadData();
} }
@ -161,10 +198,13 @@
el: 'grid', el: 'grid',
rowHeaders: ['rowNum'], rowHeaders: ['rowNum'],
columns: gridColumns, columns: gridColumns,
paginationInfoRef : $$Control._paginationInfo,
pagination: false, pagination: false,
pageOptions: { pageOptions: {
useClient: true, useClient: true,
perPage: 1000 type : $$Control._paginationInfo.pagingType,
perPage: $$Control._paginationInfo.fetchSize
} }
}; };

@ -61,6 +61,43 @@
**************************************************************************/ **************************************************************************/
let GRID = null; let GRID = null;
var callbackSearch = () => search$$s(); var callbackSearch = () => search$$s();
let $$Control = new FimsDatasetControl({
prefix:"aaa",
prefixName:"ㅁㅁㅁ",
infoSize:"xl",
urls : {
load : '<c:url value="/framework/biz/mng/menu/findMenus.do"/>'
},
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(){ function search$$s(){
GRID.reloadData(); GRID.reloadData();
} }

@ -58,6 +58,42 @@
var callbackSearch = () => search$$s(); // 데이터 조회 : popup에서 사용 var callbackSearch = () => search$$s(); // 데이터 조회 : popup에서 사용
let $$Control = new FimsDatasetControl({
prefix:"aaa",
prefixName:"ㅁㅁㅁ",
infoSize:"xl",
urls : {
load : '<c:url value="/framework/biz/mng/menu/findPrograms.do"/>'
},
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(){ function search$$s(){
GRID.reloadData(); GRID.reloadData();
} }

@ -66,6 +66,42 @@
let GRID = null; let GRID = null;
var callbackSearch = () => search$$s(); var callbackSearch = () => search$$s();
let $$Control = new FimsDatasetControl({
prefix:"aaa",
prefixName:"ㅁㅁㅁ",
infoSize:"xl",
urls : {
load : '<c:url value="/framework/biz/mng/usr/findUsers.do"/>'
},
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(){ function search$$s(){
GRID.reloadData(); GRID.reloadData();
} }

@ -86,6 +86,42 @@ Date Author Description
var callbackSearch = () => search$$s(); var callbackSearch = () => search$$s();
let GRID = null; let GRID = null;
let $$Control = new FimsDatasetControl({
prefix:"aaa",
prefixName:"ㅁㅁㅁ",
infoSize:"xl",
urls : {
load : '<c:url value="/framework/biz/mng/code/findCodeDtls.do"/>'
},
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(){ function search$$s(){
GRID.reloadData(); GRID.reloadData();
} }

Loading…
Cancel
Save