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