|
|
@ -197,6 +197,25 @@ $(document).ready(function(){
|
|
|
|
$P.crdnControl.beforeCurrent = null;
|
|
|
|
$P.crdnControl.beforeCurrent = null;
|
|
|
|
$P.crdnControl.tableRenderComplete = false;
|
|
|
|
$P.crdnControl.tableRenderComplete = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.crdnControl.save = (processType) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var keyArr = $P.crdnControl.dataset.getKeys("selected");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ajax.post({
|
|
|
|
|
|
|
|
url : $P.crdnControl.urls.update,
|
|
|
|
|
|
|
|
data : {
|
|
|
|
|
|
|
|
"processType" : processType,
|
|
|
|
|
|
|
|
"crdnIDs" : $P.crdnControl.dataset.getKeys("selected")
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
success : resp => {
|
|
|
|
|
|
|
|
if(resp.saved){
|
|
|
|
|
|
|
|
dialog.alert({ content : "저장됐습니다." });
|
|
|
|
|
|
|
|
$P.refreshCrdnList();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* DatasetControl.on
|
|
|
|
* DatasetControl.on
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
@ -281,7 +300,7 @@ $(document).ready(function(){
|
|
|
|
$P.fnReset();
|
|
|
|
$P.fnReset();
|
|
|
|
$P.crdnControl.urls.load = wctx.url("/"+taskSeCd+"/cvlc/cvlc01/030/list.do");
|
|
|
|
$P.crdnControl.urls.load = wctx.url("/"+taskSeCd+"/cvlc/cvlc01/030/list.do");
|
|
|
|
$P.crdnControl.urls.getInfo = wctx.url("/"+taskSeCd+"/sprt/sprt01/020/info.do");
|
|
|
|
$P.crdnControl.urls.getInfo = wctx.url("/"+taskSeCd+"/sprt/sprt01/020/info.do");
|
|
|
|
$P.crdnControl.urls.update = wctx.url("/"+taskSeCd+"/sprt/cvlc01/030/update.do");
|
|
|
|
$P.crdnControl.urls.update = wctx.url("/"+taskSeCd+"/cvlc/cvlc01/030/update.do");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.refreshCrdnList = () => {
|
|
|
|
$P.refreshCrdnList = () => {
|
|
|
@ -458,6 +477,30 @@ $(document).ready(function(){
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnAnswerExcute = () => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var count = $P.crdnControl.dataset.getKeys("selected").length;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dialog.alert({
|
|
|
|
|
|
|
|
content : "선택된 "+count+"건의 자료를 답변등록을 실행하시겠습니까?"
|
|
|
|
|
|
|
|
, onOK : () => {
|
|
|
|
|
|
|
|
$P.crdnControl.save('answerExcute');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnAnswerComplete = () => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var count = $P.crdnControl.dataset.getKeys("selected").length;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dialog.alert({
|
|
|
|
|
|
|
|
content : "선택된 "+count+"건의 자료를 답변완료 상태로 변경하시겠습니까?"
|
|
|
|
|
|
|
|
, onOK : () => {
|
|
|
|
|
|
|
|
$P.crdnControl.save('answerComplete');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.provide = {
|
|
|
|
$P.provide = {
|
|
|
|
"getCountStatus" : function(currentKey){
|
|
|
|
"getCountStatus" : function(currentKey){
|
|
|
|
var ds = $P.crdnControl.dataset.getDataset();
|
|
|
|
var ds = $P.crdnControl.dataset.getDataset();
|
|
|
@ -497,8 +540,8 @@ $(document).ready(function(){
|
|
|
|
$('#btnSearch--${pageName}').on('click', () => $P.searchCrdnList());
|
|
|
|
$('#btnSearch--${pageName}').on('click', () => $P.searchCrdnList());
|
|
|
|
$("#btnOpenCvlcptOrgnl--${pageName}").on("click", () => $P.fnOpenCvlcptOrgnl());
|
|
|
|
$("#btnOpenCvlcptOrgnl--${pageName}").on("click", () => $P.fnOpenCvlcptOrgnl());
|
|
|
|
$("#btnOpenAnswerPreview--${pageName}").on("click", () => $P.fnOpenAnswerPreview());
|
|
|
|
$("#btnOpenAnswerPreview--${pageName}").on("click", () => $P.fnOpenAnswerPreview());
|
|
|
|
$("#btnAnswerExecute--${pageName}").on("click", () => {});
|
|
|
|
$("#btnAnswerExecute--${pageName}").on("click", () => $P.fnAnswerExcute());
|
|
|
|
$("#btnAnswerComplete--${pageName}").on("click", () => {});
|
|
|
|
$("#btnAnswerComplete--${pageName}").on("click", () => $P.fnAnswerComplete());
|
|
|
|
$("#table-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); });
|
|
|
|
$("#table-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); });
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|