|
|
|
@ -166,7 +166,7 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
$P.deptControl.defaultFetchSize = FETCH_XS;
|
|
|
|
|
$P.deptControl.untilPageNum = 0;
|
|
|
|
|
|
|
|
|
|
$P.deptControl.beforeCurrent = null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -176,7 +176,7 @@ $(document).ready(function(){
|
|
|
|
|
$P.deptControl.dataset.onDatasetChange = (obj, option) => {
|
|
|
|
|
var t = $P.getGridTemplate();
|
|
|
|
|
var trs = Apply.fromDataset.getTbody($P.deptControl.dataset, t.found, t.notFound, t.replacer);
|
|
|
|
|
$P.renderDeptList(obj["Total"], $P.deptControl.dataset.length, trs);
|
|
|
|
|
$P.renderDeptList(obj["Total"], $P.deptControl.dataset.length, trs, option);
|
|
|
|
|
|
|
|
|
|
Apply.fromDataset.paging($P.deptControl.dataset, obj, "deptPaging--${pageName}");
|
|
|
|
|
};
|
|
|
|
@ -226,10 +226,8 @@ $(document).ready(function(){
|
|
|
|
|
if($P.deptControl.query.pageNum == null){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.deptControl.untilPageNum = $P.deptControl.query.pageNum;
|
|
|
|
|
$P.deptControl.query.fetchSize = $P.deptControl.defaultFetchSize * $P.deptControl.query.pageNum;
|
|
|
|
|
$P.deptControl.load(1);
|
|
|
|
|
|
|
|
|
|
$P.deptControl.reload({all : true});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.getGridTemplate = () => {
|
|
|
|
@ -246,20 +244,18 @@ $(document).ready(function(){
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.renderDeptList = (total, listLength, trs) => {
|
|
|
|
|
$P.renderDeptList = (total, listLength, trs, option) => {
|
|
|
|
|
|
|
|
|
|
let noMore = (listLength >= total);
|
|
|
|
|
var initScroll = ($P.deptControl.query.pageNum < 2) && ($P.deptControl.untilPageNum == 0);
|
|
|
|
|
var initScroll = ($P.deptControl.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.deptControl.untilPageNum != 0){
|
|
|
|
|
$P.deptControl.query.fetchSize = $P.deptControl.defaultFetchSize;
|
|
|
|
|
$P.deptControl.query.pageNum = $P.deptControl.untilPageNum;
|
|
|
|
|
$P.deptControl.untilPageNum = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.clickDeptList = (dataKey) => {
|
|
|
|
|