|
|
|
@ -74,11 +74,23 @@
|
|
|
|
|
<ul id="crdnPaging--${pageName}" class="pagination pagination-primary">
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
|
<button type="button" id="btnOpenCvlcptOrgnl--${pageName}" class="btn btn-primary" title="민원원본보기">민원원본보기</button>
|
|
|
|
|
<button type="button" id="btnOpenAnswerPreview--${pageName}" class="btn btn-primary" title="답변미리보기">답변미리보기</button>
|
|
|
|
|
<button type="button" id="btnAnswerExecute--${pageName}" class="btn btn-primary" title="답변등록 실행">☑ 답변등록 실행</button>
|
|
|
|
|
<button type="button" id="btnAnswerComplete--${pageName}" class="btn btn-primary" title="답변완료로 수정">☑ 답변완료로 수정</button>
|
|
|
|
|
<span id="gridbuttonArea--${pageName}" class="container-window-btn-right">
|
|
|
|
|
<button type="button" id="btnOpenCvlcptOrgnl--${pageName}"
|
|
|
|
|
class="btn btn-primary" title="민원원본보기">민원원본보기</button>
|
|
|
|
|
<button type="button" id="btnOpenAnswerPreview--${pageName}"
|
|
|
|
|
class="btn btn-primary" title="답변미리보기">답변미리보기</button>
|
|
|
|
|
<button type="button" id="btnExecuteAnswer--${pageName}"
|
|
|
|
|
class="btn btn-primary" title="답변등록 실행">☑ 답변등록 실행</button>
|
|
|
|
|
<button type="button" id="btnAnswerComplete--${pageName}"
|
|
|
|
|
class="btn btn-primary" title="답변완료로 수정">☑ 답변완료로 수정</button>
|
|
|
|
|
<span slot="button">
|
|
|
|
|
<template class="dpv">
|
|
|
|
|
<slot>
|
|
|
|
|
<button type="button" id="btnExecuteDisabledTagInfoInquire--${pageName}"
|
|
|
|
|
class="btn btn-primary" title="표지정보 조회">☑ 표지정보 조회</button>
|
|
|
|
|
</slot>
|
|
|
|
|
</template>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
@ -284,8 +296,9 @@ $(document).ready(function(){
|
|
|
|
|
checkbox.prop("checked", keys.includes(checkbox.val()));
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$("#btnAnswerExecute--${pageName}").prop("disabled", keys.length < 1);
|
|
|
|
|
$("#btnExecuteAnswer--${pageName}").prop("disabled", keys.length < 1);
|
|
|
|
|
$("#btnAnswerComplete--${pageName}").prop("disabled", keys.length < 1);
|
|
|
|
|
$("#btnExecuteDisabledTagInfoInquire--${pageName}").prop("disabled", keys.length < 1);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
@ -298,6 +311,13 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.fnResetAndChangeBiz = taskSeCd => {
|
|
|
|
|
var clsForTask = taskSeCd.toLowerCase();
|
|
|
|
|
//업무별 버튼
|
|
|
|
|
renderForTask("gridbuttonArea--${pageName}", clsForTask);
|
|
|
|
|
//버튼 이벤트 재매핑
|
|
|
|
|
$("#btnExecuteDisabledTagInfoInquire--${pageName}").off("click");
|
|
|
|
|
$("#btnExecuteDisabledTagInfoInquire--${pageName}").on("click", () => $P.fnExecuteDisabledTagInfoInquire());
|
|
|
|
|
|
|
|
|
|
$P.fnReset();
|
|
|
|
|
$P.crdnControl.urls.load = wctx.url("/"+taskSeCd+"/cvlc/cvlc02/030/list.do");
|
|
|
|
|
$P.crdnControl.urls.getInfo = wctx.url("/"+taskSeCd+"/sprt/sprt02/010/main.do");
|
|
|
|
@ -492,7 +512,7 @@ $(document).ready(function(){
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.fnAnswerExecute = () => {
|
|
|
|
|
$P.fnExecuteAnswer = () => {
|
|
|
|
|
|
|
|
|
|
var count = $P.crdnControl.dataset.getKeys("selected").length;
|
|
|
|
|
|
|
|
|
@ -516,6 +536,47 @@ $(document).ready(function(){
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//표지정보 조회
|
|
|
|
|
$P.fnExecuteDisabledTagInfoInquire = () => {
|
|
|
|
|
|
|
|
|
|
var keys = [];
|
|
|
|
|
|
|
|
|
|
var selected = $P.crdnControl.dataset.getDataset("selected");
|
|
|
|
|
|
|
|
|
|
for(var i=0; i < selected.length; i++){
|
|
|
|
|
if(selected[i].CVLCPT_PRCS_CD == "02"){
|
|
|
|
|
keys.push(selected[i].CRDN_ID);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(keys.length == 0){
|
|
|
|
|
dialog.alert("표지조회는 부과대상자료만 가능합니다.<br/>선택된 자료 중에 부과대상자료가 없습니다.");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var message = "※표지정보 조회 후 장애인차량이 아닌 자료는 서손처리 됩니다."
|
|
|
|
|
+"<br/>※현재 날짜("+dateFormat.format(new Date())+")를 기준으로 차량번호로 조회합니다."
|
|
|
|
|
+"<br/>표지조회를 실행하시겠습니까?"
|
|
|
|
|
+"<br/>부과대상 자료 : "+keys.length+"건";
|
|
|
|
|
|
|
|
|
|
dialog.alert({
|
|
|
|
|
content : message,
|
|
|
|
|
onOK : () => {
|
|
|
|
|
ajax.get({
|
|
|
|
|
url : wctx.url("/DPV/cvlc/cvlc02/040/update.do"),
|
|
|
|
|
data : {
|
|
|
|
|
"crdnIDs" : keys.join(",")
|
|
|
|
|
},
|
|
|
|
|
success : resp => {
|
|
|
|
|
|
|
|
|
|
dialog.alert("표지정보조회가 실행되었습니다.");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.provide = {
|
|
|
|
|
"getCountStatus" : function(currentKey){
|
|
|
|
|
var ds = $P.crdnControl.dataset.getDataset();
|
|
|
|
@ -555,8 +616,9 @@ $(document).ready(function(){
|
|
|
|
|
$('#btnSearch--${pageName}').on('click', () => $P.searchCrdnList());
|
|
|
|
|
$("#btnOpenCvlcptOrgnl--${pageName}").on("click", () => $P.fnOpenCvlcptOrgnl());
|
|
|
|
|
$("#btnOpenAnswerPreview--${pageName}").on("click", () => $P.fnOpenAnswerPreview());
|
|
|
|
|
$("#btnAnswerExecute--${pageName}").on("click", () => $P.fnAnswerExecute());
|
|
|
|
|
$("#btnExecuteAnswer--${pageName}").on("click", () => $P.fnExecuteAnswer());
|
|
|
|
|
$("#btnAnswerComplete--${pageName}").on("click", () => $P.fnAnswerComplete());
|
|
|
|
|
|
|
|
|
|
$("#table-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); });
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|