|
|
|
@ -73,7 +73,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
|
<a href="#" id="btnOpenCvlcptOrgnl--${pageName}" class="btn btn-blue" title="민원원본보기">민원원본보기</a>
|
|
|
|
|
<a href="#" id="" class="btn btn-blue" title="답변미리보기">답변미리보기</a>
|
|
|
|
|
<a href="#" id="btnOpenAnswerPreview--${pageName}" class="btn btn-blue" title="민원원본보기">답변미리보기</a>
|
|
|
|
|
<a href="#" id="" class="btn btn-blue" title="선택자료답변등록실행">선택자료답변등록실행</a>
|
|
|
|
|
<a href="#" id="" class="btn btn-blue" title="답변완료로 수정">답변완료로 수정</a>
|
|
|
|
|
</span>
|
|
|
|
@ -90,6 +90,7 @@
|
|
|
|
|
<tr data-by="by--${pageName}" data-by-output="byOutput--${pageName}"
|
|
|
|
|
data-main-option="mainOption--${pageName}" data-sub-option="subOption--${pageName}">
|
|
|
|
|
<th style="min-width: 80px;">No.</th>
|
|
|
|
|
<th style="min-width: 50px;"><input type="checkbox" name="gridAllCheckbox" /></th>
|
|
|
|
|
<th onclick="searchFromGridTitle('CRDN_REG_SE_CD',this.innerText,'codeValue','FIM026');"
|
|
|
|
|
style="min-width: 80px;">등록구분</th>
|
|
|
|
|
<th onclick="searchFromGridTitle('VLTN_ARTCL',this.innerText);"
|
|
|
|
@ -120,6 +121,7 @@
|
|
|
|
|
<template id="crdnRow--${pageName}">
|
|
|
|
|
<tr data-key="{CRDN_ID}">
|
|
|
|
|
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-end">{ROW_NUM}</td>
|
|
|
|
|
<td class="text-end"><input type="checkbox" name="gridCheckbox" /></td>
|
|
|
|
|
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CRDN_REG_SE_CD}</td>
|
|
|
|
|
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{VLTN_ARTCL}</td>
|
|
|
|
|
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CVLCPT_APLCNT_NM}</td>
|
|
|
|
@ -136,7 +138,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
<template id="crdnNotFound--${pageName}">
|
|
|
|
|
<tr>
|
|
|
|
|
<td valign="top" colspan="13" class="dataTables_empty text-center">민원 정보를 찾지 못했습니다.</td>
|
|
|
|
|
<td valign="top" colspan="14" class="dataTables_empty text-center">민원 정보를 찾지 못했습니다.</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</template>
|
|
|
|
|
</table>
|
|
|
|
@ -312,15 +314,64 @@ $(document).ready(function(){
|
|
|
|
|
var childReq = pageObject.childReq.pop();
|
|
|
|
|
|
|
|
|
|
for(var reqKey in childReq) {
|
|
|
|
|
if(reqKey == "getCountStatus"){
|
|
|
|
|
parentRes[reqKey] = function(currentKey){
|
|
|
|
|
if($P.provide[reqKey]){
|
|
|
|
|
parentRes[reqKey] = $P.provide[reqKey];
|
|
|
|
|
} else {
|
|
|
|
|
parentRes[reqKey] = function(){};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pageObject.parentRes.push(parentRes);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.fnOpenAnswerPreview = () => {
|
|
|
|
|
var cur = $P.crdnControl.getCurrent();
|
|
|
|
|
if(cur == null){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var taskSeCd = $("#frmSearch--${pageName} input[name='taskSeCd']:checked").val();
|
|
|
|
|
|
|
|
|
|
var dialogId = "cvlcptOrgnlDialog--${pageName}";
|
|
|
|
|
ajax.get({
|
|
|
|
|
url : wctx.url("/"+taskSeCd+"/crdn/crdn01/060/info.do"),
|
|
|
|
|
data : { crdnId : cur["CRDN_ID"] },
|
|
|
|
|
success : resp => {
|
|
|
|
|
dialog.open({
|
|
|
|
|
id : dialogId,
|
|
|
|
|
title : "민원내역 원본",
|
|
|
|
|
content : resp,
|
|
|
|
|
size : "xl",
|
|
|
|
|
init : () => {
|
|
|
|
|
var parentRes = new Object();
|
|
|
|
|
var childReq = pageObject.childReq.pop();
|
|
|
|
|
|
|
|
|
|
for(var reqKey in childReq) {
|
|
|
|
|
if($P.provide[reqKey]){
|
|
|
|
|
parentRes[reqKey] = $P.provide[reqKey];
|
|
|
|
|
} else {
|
|
|
|
|
parentRes[reqKey] = function(){};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pageObject.parentRes.push(parentRes);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.provide = {
|
|
|
|
|
"getCountStatus" : function(currentKey){
|
|
|
|
|
var ds = $P.crdnControl.dataset.getDataset();
|
|
|
|
|
var index = ds.findIndex(item => item.CRDN_ID == currentKey);
|
|
|
|
|
return (index+1) + " of " + ds.length;
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
else if(reqKey == "getNextKey"){
|
|
|
|
|
parentRes[reqKey] = function(currentKey){
|
|
|
|
|
},
|
|
|
|
|
"getNextKey" : function(currentKey){
|
|
|
|
|
var ds = $P.crdnControl.dataset.getDataset();
|
|
|
|
|
var index = ds.findIndex(item => item.CRDN_ID == currentKey);
|
|
|
|
|
if(ds.length > index+1){
|
|
|
|
@ -328,10 +379,8 @@ $(document).ready(function(){
|
|
|
|
|
} else {
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
else if(reqKey == "getPrevKey"){
|
|
|
|
|
parentRes[reqKey] = function(currentKey){
|
|
|
|
|
},
|
|
|
|
|
"getPrevKey" : function(currentKey){
|
|
|
|
|
var ds = $P.crdnControl.dataset.getDataset();
|
|
|
|
|
var index = ds.findIndex(item => item.CRDN_ID == currentKey);
|
|
|
|
|
if(index != 0 && ds.length > 1){
|
|
|
|
@ -339,32 +388,23 @@ $(document).ready(function(){
|
|
|
|
|
} else {
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
else if(reqKey == "selectRow"){
|
|
|
|
|
parentRes[reqKey] = function(currentKey){
|
|
|
|
|
},
|
|
|
|
|
"selectRow" : function(currentKey){
|
|
|
|
|
$P.clickCrdnList(currentKey);
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
parentRes[reqKey] = function(){}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
pageObject.parentRes.push(parentRes);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* element.on
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
$('#btnReset--${pageName}').on('click', () => $P.fnReset());
|
|
|
|
|
$('#btnSearch--${pageName}').on('click', () => $P.searchCrdnList());
|
|
|
|
|
$("#btnOpenCvlcptOrgnl--${pageName}").on("click", () => $P.fnOpenCvlcptOrgnl());
|
|
|
|
|
$("#btnOpenAnswerPreview--${pageName}").on("click", () => $P.fnOpenAnswerPreview());
|
|
|
|
|
|
|
|
|
|
$("#table-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* 초기화
|
|
|
|
|
**************************************************************************/
|
|
|
|
|