|
|
|
@ -315,7 +315,7 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
$P.crdnControl.defaultFetchSize = FETCH_XS;
|
|
|
|
|
$P.crdnControl.untilPageNum = 0;
|
|
|
|
|
|
|
|
|
|
$P.crdnControl.beforeCurrent = null;
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
@ -324,7 +324,7 @@ $(document).ready(function(){
|
|
|
|
|
$P.crdnControl.dataset.onDatasetChange = (obj, option) => {
|
|
|
|
|
var t = $P.getGridTemplate();
|
|
|
|
|
var trs = Apply.fromDataset.getTbody($P.crdnControl.dataset, t.found, t.notFound, t.replacer);
|
|
|
|
|
$P.renderCrdnList(obj["Total"], $P.crdnControl.dataset.length, trs);
|
|
|
|
|
$P.renderCrdnList(obj["Total"], $P.crdnControl.dataset.length, trs, option);
|
|
|
|
|
|
|
|
|
|
Apply.fromDataset.paging($P.crdnControl.dataset, obj, "crdnPaging--${pageName}");
|
|
|
|
|
};
|
|
|
|
@ -405,9 +405,7 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.refreshCrdnList = () => {
|
|
|
|
|
$P.crdnControl.untilPageNum = $P.crdnControl.query.pageNum;
|
|
|
|
|
$P.crdnControl.query.fetchSize = $P.crdnControl.defaultFetchSize * $P.crdnControl.query.pageNum;
|
|
|
|
|
$P.crdnControl.load(1);
|
|
|
|
|
$P.crdnControl.reload({all : true});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.fnExcelDown = (forApproval) => {
|
|
|
|
@ -462,20 +460,18 @@ $(document).ready(function(){
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.renderCrdnList = (total, listLength, trs) => {
|
|
|
|
|
$P.renderCrdnList = (total, listLength, trs, option) => {
|
|
|
|
|
|
|
|
|
|
let noMore = (listLength >= total);
|
|
|
|
|
var initScroll = ($P.crdnControl.query.pageNum < 2) && ($P.crdnControl.untilPageNum == 0);
|
|
|
|
|
var initScroll = ($P.crdnControl.query.pageNum < 2);
|
|
|
|
|
if(option != null && option.reloaded){
|
|
|
|
|
initScroll = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$("#table-responsive--${pageName}")[0].changeContent(trs, initScroll, noMore);
|
|
|
|
|
|
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드
|
|
|
|
|
|
|
|
|
|
if($P.crdnControl.untilPageNum != 0){
|
|
|
|
|
$P.crdnControl.query.fetchSize = $P.crdnControl.defaultFetchSize;
|
|
|
|
|
$P.crdnControl.query.pageNum = $P.crdnControl.untilPageNum;
|
|
|
|
|
$P.crdnControl.untilPageNum = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.clickCrdnList = (dataKey) => {
|
|
|
|
|