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