|
|
@ -144,8 +144,8 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="grid"></div>
|
|
|
|
<div id="grid"></div>
|
|
|
|
<div class="d-flex flex-row p-3 justify-content-between">
|
|
|
|
<div class="d-flex flex-row p-3 justify-content-between">
|
|
|
|
<label id="grid1PagingInfo" class="dataTables_info" role="status" aria-live="polite"></label>
|
|
|
|
<label id="crdnPagingInfo" class="dataTables_info" role="status" aria-live="polite"></label>
|
|
|
|
<ul id="grid1Paging" class="pagination pagination-primary"></ul>
|
|
|
|
<ul id="crdnPaging" class="pagination pagination-primary"></ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -219,7 +219,7 @@ var popupDiv;
|
|
|
|
var callbackSearch = () => searchCrdnList();
|
|
|
|
var callbackSearch = () => searchCrdnList();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var crdnControl = new FimsDatasetControl({
|
|
|
|
var crdnControl = new DatasetControl({
|
|
|
|
prefix:"crdn",
|
|
|
|
prefix:"crdn",
|
|
|
|
prefixName:"초기자료",
|
|
|
|
prefixName:"초기자료",
|
|
|
|
infoSize:"xl",
|
|
|
|
infoSize:"xl",
|
|
|
@ -227,36 +227,26 @@ var crdnControl = new FimsDatasetControl({
|
|
|
|
load : wctx.url("/{biz}/crdn/list.do")
|
|
|
|
load : wctx.url("/{biz}/crdn/list.do")
|
|
|
|
},
|
|
|
|
},
|
|
|
|
keymapper:info => info ? info.CRDN_ID : "",
|
|
|
|
keymapper:info => info ? info.CRDN_ID : "",
|
|
|
|
dataGetter:obj => obj.crdnList
|
|
|
|
dataGetter:obj => obj.crdnList,
|
|
|
|
|
|
|
|
appendData:true
|
|
|
|
});
|
|
|
|
});
|
|
|
|
crdnControl._paginationInfo.pagingType = "scroll";
|
|
|
|
|
|
|
|
crdnControl._paginationInfo.fetchSize = 50;
|
|
|
|
|
|
|
|
crdnControl._paginationInfo.scrollFuncName = scrollCrdns;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
crdnControl.onDatasetChange = obj => {
|
|
|
|
crdnControl.scrollFuncName = scrollCrdns;
|
|
|
|
|
|
|
|
|
|
|
|
var prefix = obj.prefixInfo;
|
|
|
|
|
|
|
|
crdnControl._paginationInfo.totalSize = obj[prefix+"Total"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(crdnControl._paginationInfo.pagingType == "nav"){
|
|
|
|
crdnControl.onDatasetChange = obj => {
|
|
|
|
crdnControl._paginationInfo.pageNum = (obj[prefix+"Start"]+obj[prefix+"Fetch"])/obj[prefix+"Fetch"];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var prefix = obj.infoPrefix;
|
|
|
|
renderCrdnList(obj);
|
|
|
|
renderCrdnList(obj);
|
|
|
|
|
|
|
|
|
|
|
|
if(crdnControl._paginationInfo.paging && crdnControl._paginationInfo.pagingType == "nav"){
|
|
|
|
$("#crdnPaging").setPagingInfo({
|
|
|
|
$("#grid1Paging").setPaging({
|
|
|
|
|
|
|
|
list: crdnControl.dataset,
|
|
|
|
list: crdnControl.dataset,
|
|
|
|
prefix: "grid1",
|
|
|
|
prefix: "crdn",
|
|
|
|
start: obj[prefix+"Start"],
|
|
|
|
start: obj[prefix+"Start"],
|
|
|
|
totalSize: obj[prefix+"Total"],
|
|
|
|
totalSize: obj[prefix+"Total"],
|
|
|
|
fetchSize: obj[prefix+"Fetch"],
|
|
|
|
fetchSize: obj[prefix+"Fetch"],
|
|
|
|
func: "crdnControl.load({index})"
|
|
|
|
func: "crdnControl.load({index})"
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//집계 표시
|
|
|
|
|
|
|
|
crdnControl.totalCountSetting(obj);
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
function searchCrdnList(){
|
|
|
|
function searchCrdnList(){
|
|
|
@ -266,11 +256,12 @@ function searchCrdnList(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function scrollCrdns(){
|
|
|
|
function scrollCrdns(){
|
|
|
|
crdnControl.load(crdnControl._paginationInfo.pageNum + 1, "more");
|
|
|
|
|
|
|
|
|
|
|
|
crdnControl.load(crdnControl.query.pageNum + 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function renderCrdnList(data) {
|
|
|
|
function renderCrdnList(data) {
|
|
|
|
if(crdnControl._paginationInfo.paging && crdnControl._paginationInfo.pagingType == "nav"){
|
|
|
|
if(!crdnControl.appendData){
|
|
|
|
GRID.clear();
|
|
|
|
GRID.clear();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -293,6 +284,7 @@ const fnBiz = {
|
|
|
|
,crdnSeCd: CUR_TAB_IDX === 2 ? '09' : $('input:radio[name=crdnSeCd]:checked').val()
|
|
|
|
,crdnSeCd: CUR_TAB_IDX === 2 ? '09' : $('input:radio[name=crdnSeCd]:checked').val()
|
|
|
|
,crdnSttsCd: CUR_TAB_IDX === 2 ? 'NON-INIT' : $('#crdnSttsCd').val()
|
|
|
|
,crdnSttsCd: CUR_TAB_IDX === 2 ? 'NON-INIT' : $('#crdnSttsCd').val()
|
|
|
|
,ctznAnsYn: $('input:radio[name=ctznAnsYn]:checked').val()
|
|
|
|
,ctznAnsYn: $('input:radio[name=ctznAnsYn]:checked').val()
|
|
|
|
|
|
|
|
,fetchSize: 20
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
,pagePopup: function(flag, params){
|
|
|
|
,pagePopup: function(flag, params){
|
|
|
@ -661,7 +653,7 @@ const gridOptions = {
|
|
|
|
columnOptions: {
|
|
|
|
columnOptions: {
|
|
|
|
frozenCount: 3
|
|
|
|
frozenCount: 3
|
|
|
|
},
|
|
|
|
},
|
|
|
|
paginationInfoRef : crdnControl._paginationInfo
|
|
|
|
scrollFuncName : crdnControl.scrollFuncName
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const initGrid = () => {
|
|
|
|
const initGrid = () => {
|
|
|
|