|
|
@ -155,7 +155,7 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$P.crdnControl.defaultFetchSize = FETCH_XS;
|
|
|
|
$P.crdnControl.defaultFetchSize = FETCH_XS;
|
|
|
|
$P.crdnControl.untilPageNum = 0;
|
|
|
|
|
|
|
|
$P.crdnControl.beforeCurrent = null;
|
|
|
|
$P.crdnControl.beforeCurrent = null;
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
@ -165,7 +165,7 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
var t = $P.getGridTemplate();
|
|
|
|
var t = $P.getGridTemplate();
|
|
|
|
var trs = Apply.fromDataset.getTbody($P.crdnControl.dataset, t.found, t.notFound, t.replacer);
|
|
|
|
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}");
|
|
|
|
Apply.fromDataset.paging($P.crdnControl.dataset, obj, "crdnPaging--${pageName}");
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -210,22 +210,19 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.refreshCrdnList = () => {
|
|
|
|
$P.refreshCrdnList = () => {
|
|
|
|
$P.crdnControl.untilPageNum = $P.crdnControl.query.pageNum;
|
|
|
|
|
|
|
|
$P.crdnControl.query.fetchSize = $P.crdnControl.defaultFetchSize * $P.crdnControl.query.pageNum;
|
|
|
|
$P.crdnControl.beforeCurrent = {
|
|
|
|
|
|
|
|
key : $P.crdnControl.dataset.getCurrent()["CRDN_ID"],
|
|
|
|
Apply.fromDatasetControl.load($P.crdnControl, 1).then((resp)=>{
|
|
|
|
index : $P.crdnControl.dataset.getCurrent()["ROW_NUM"] - 1
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Apply.fromDatasetControl.reload($P.crdnControl).then((resp)=>{
|
|
|
|
Apply.toDataset.set($P.crdnControl.dataset, resp);
|
|
|
|
Apply.toDataset.set($P.crdnControl.dataset, resp);
|
|
|
|
$P.crdnControl.dataset.onDatasetChange(resp);
|
|
|
|
$P.crdnControl.dataset.onDatasetChange(resp);
|
|
|
|
|
|
|
|
|
|
|
|
if($P.crdnControl.untilPageNum != 0){
|
|
|
|
|
|
|
|
$P.crdnControl.query.fetchSize = $P.crdnControl.defaultFetchSize;
|
|
|
|
|
|
|
|
$P.crdnControl.query.pageNum = $P.crdnControl.untilPageNum;
|
|
|
|
|
|
|
|
$P.crdnControl.untilPageNum = 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($P.crdnControl.beforeCurrent != null){
|
|
|
|
if($P.crdnControl.beforeCurrent != null){
|
|
|
|
var beforeCurrentKey = $P.crdnControl.beforeCurrent.key;
|
|
|
|
let beforeCurrentKey = $P.crdnControl.beforeCurrent.key;
|
|
|
|
var beforeCurrentIndex = $P.crdnControl.beforeCurrent.index;
|
|
|
|
let beforeCurrentIndex = $P.crdnControl.beforeCurrent.index;
|
|
|
|
$P.crdnControl.beforeCurrent = null;
|
|
|
|
$P.crdnControl.beforeCurrent = null;
|
|
|
|
|
|
|
|
|
|
|
|
if(!$P.crdnControl.dataset.empty){
|
|
|
|
if(!$P.crdnControl.dataset.empty){
|
|
|
@ -278,22 +275,18 @@ $(document).ready(function(){
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.renderCrdnList = (total, listLength, trs) => {
|
|
|
|
$P.renderCrdnList = (total, listLength, trs, option) => {
|
|
|
|
|
|
|
|
|
|
|
|
let noMore = (listLength >= total);
|
|
|
|
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);
|
|
|
|
$("#table-responsive--${pageName}")[0].changeContent(trs, initScroll, noMore);
|
|
|
|
|
|
|
|
|
|
|
|
//보안모드
|
|
|
|
//보안모드
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
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) => {
|
|
|
|
$P.clickCrdnList = (dataKey) => {
|
|
|
|