|
|
@ -251,6 +251,7 @@ $(document).ready(function(){
|
|
|
|
if (resp.saved){
|
|
|
|
if (resp.saved){
|
|
|
|
$("#toastText--${pageName}").html("삭제 되었습니다.");
|
|
|
|
$("#toastText--${pageName}").html("삭제 되었습니다.");
|
|
|
|
$P.toast.show();
|
|
|
|
$P.toast.show();
|
|
|
|
|
|
|
|
|
|
|
|
$P.refreshDmndList();
|
|
|
|
$P.refreshDmndList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -362,17 +363,10 @@ $(document).ready(function(){
|
|
|
|
return data;
|
|
|
|
return data;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnRemove = (allCompleteData) => {
|
|
|
|
$P.fnRemove = (allCompleteDataIds) => {
|
|
|
|
if(allCompleteData){
|
|
|
|
|
|
|
|
var ds = $P.dmndControl.dataset.getDataset();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var indivIds = ds.map(function(item){
|
|
|
|
if(allCompleteDataIds != null){
|
|
|
|
if(item['STTS_CD'] == '9'){
|
|
|
|
$P.dmndControl.select(allCompleteDataIds,true);
|
|
|
|
return item["INDIV_ID"];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.dmndControl.select(indivIds,true);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
var cur = $P.dmndControl.getCurrent();
|
|
|
|
var cur = $P.dmndControl.getCurrent();
|
|
|
|
if(cur == null){
|
|
|
|
if(cur == null){
|
|
|
@ -383,7 +377,7 @@ $(document).ready(function(){
|
|
|
|
$P.dmndControl.select(curKey,true);
|
|
|
|
$P.dmndControl.select(curKey,true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// TODO : 요청 삭제 서비스 //$P.dmndControl.remove();
|
|
|
|
$P.dmndControl.remove();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnRemoveAllCompleteData = () => {
|
|
|
|
$P.fnRemoveAllCompleteData = () => {
|
|
|
@ -392,10 +386,23 @@ $(document).ready(function(){
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var ds = $P.dmndControl.dataset.getDataset();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var indivIds = ds.filter(function(item){
|
|
|
|
|
|
|
|
if(item['STTS_CD'] == '9'){
|
|
|
|
|
|
|
|
return item["INDIV_ID"];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(indivIds.length == 0){
|
|
|
|
|
|
|
|
dialog.alert("요청 완료자료가 없습니다.");
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
dialog.alert({
|
|
|
|
dialog.alert({
|
|
|
|
content : "완료된 자료를 모두 삭제하시겠습니까?",
|
|
|
|
content : "완료된 자료를 모두 삭제하시겠습니까?",
|
|
|
|
onOK : () => {
|
|
|
|
onOK : () => {
|
|
|
|
$P.fnRemove(true);
|
|
|
|
$P.fnRemove(indivIds);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -450,7 +457,7 @@ $(document).ready(function(){
|
|
|
|
$("#table-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); });
|
|
|
|
$("#table-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); });
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnOpenDmndPop--${pageName}").on("click", () => $P.fnOpenDmndPop());
|
|
|
|
$("#btnOpenDmndPop--${pageName}").on("click", () => $P.fnOpenDmndPop());
|
|
|
|
$("#btnDelete--${pageName}").on("click", () => $P.fnRemove(false));
|
|
|
|
$("#btnDelete--${pageName}").on("click", () => $P.fnRemove(null));
|
|
|
|
$("#btnDeleteAllCompleteData--${pageName}").on("click", () => $P.fnRemoveAllCompleteData());
|
|
|
|
$("#btnDeleteAllCompleteData--${pageName}").on("click", () => $P.fnRemoveAllCompleteData());
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|