|
|
|
@ -75,10 +75,10 @@
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
|
<a href="#" id="btnOpenCvlcptOrgnl--${pageName}" class="btn btn-primary" title="민원원본보기">민원원본보기</a>
|
|
|
|
|
<a href="#" id="btnOpenAnswerPreview--${pageName}" class="btn btn-primary" title="답변미리보기">답변미리보기</a>
|
|
|
|
|
<a href="#" id="" class="btn btn-primary" title="답변등록 실행">☑ 답변등록 실행</a>
|
|
|
|
|
<a href="#" id="" class="btn btn-primary" title="답변완료로 수정">☑ 답변완료로 수정</a>
|
|
|
|
|
<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>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
@ -93,7 +93,10 @@
|
|
|
|
|
<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 style="min-width: 50px;">
|
|
|
|
|
<input type="checkbox" name="gridAllCheckbox"
|
|
|
|
|
onchange="pageObject['${pageName}'].crdnControl.select(this.checked);" />
|
|
|
|
|
</th>
|
|
|
|
|
<th onclick="searchFromGridTitle('VLTN_ARTCL',this.innerText);"
|
|
|
|
|
style="min-width: 80px;">위반내용</th>
|
|
|
|
|
<th onclick="searchFromGridTitle('CVLCPT_APLCNT_NM',this.innerText,'match','part');"
|
|
|
|
@ -122,7 +125,10 @@
|
|
|
|
|
<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 class="text-end">
|
|
|
|
|
<input type="checkbox" name="gridCheckbox" value="{CRDN_ID}"
|
|
|
|
|
onchange="pageObject['${pageName}'].crdnControl.select('{CRDN_ID}', this.checked);" />
|
|
|
|
|
</td>
|
|
|
|
|
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{VLTN_ARTCL}</td>
|
|
|
|
|
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CVLCPT_APLCNT_NM}</td>
|
|
|
|
|
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center">{CVLCPT_PRCS_PIC_NM}</td>
|
|
|
|
@ -175,7 +181,7 @@ $(document).ready(function(){
|
|
|
|
|
* DatasetControl
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
$P.crdnControl = new DatasetControl({
|
|
|
|
|
urls : { load : "", getInfo : "" },
|
|
|
|
|
urls : { load : "", getInfo : "", update : "" },
|
|
|
|
|
dataGetter : obj => obj["List"], appendData:true,
|
|
|
|
|
keymapper : info => info ? info.CRDN_ID : "",
|
|
|
|
|
formats : {
|
|
|
|
@ -216,6 +222,30 @@ $(document).ready(function(){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if($P.crdnControl.beforeCurrent != null){
|
|
|
|
|
var beforeCurrentKey = $P.crdnControl.beforeCurrent.key;
|
|
|
|
|
var beforeCurrentIndex = $P.crdnControl.beforeCurrent.index;
|
|
|
|
|
$P.crdnControl.beforeCurrent = null;
|
|
|
|
|
|
|
|
|
|
if(!$P.crdnControl.dataset.empty){
|
|
|
|
|
var info = $P.crdnControl.dataset.getData(beforeCurrentKey);
|
|
|
|
|
|
|
|
|
|
if(info != null){
|
|
|
|
|
$P.crdnControl.setCurrent(beforeCurrentKey);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(beforeCurrentIndex > ($P.crdnControl.dataset.length - 1)){
|
|
|
|
|
info = $P.crdnControl.dataset.getDataset()[$P.crdnControl.dataset.length - 1];
|
|
|
|
|
} else {
|
|
|
|
|
info = $P.crdnControl.dataset.getDataset()[beforeCurrentIndex];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.crdnControl.setCurrent(info["CRDN_ID"]);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.crdnControl.tableRenderComplete = false;
|
|
|
|
|
if(!item){
|
|
|
|
|
$P.clickCrdnList("", true);
|
|
|
|
@ -224,6 +254,20 @@ $(document).ready(function(){
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.crdnControl.onSelectionChange = (selected) => {
|
|
|
|
|
|
|
|
|
|
var crdnList = $P.crdnControl.dataset;
|
|
|
|
|
var keys = selected.map(e => crdnList.getKey(e));
|
|
|
|
|
|
|
|
|
|
$("#table-responsive--${pageName}").find("input[name='gridCheckbox']").each(function() {
|
|
|
|
|
var checkbox = $(this);
|
|
|
|
|
checkbox.prop("checked", keys.includes(checkbox.val()));
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$("#btnAnswerExecute--${pageName}").prop("disabled", keys.length < 1);
|
|
|
|
|
$("#btnAnswerComplete--${pageName}").prop("disabled", keys.length < 1);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* pageObject.function
|
|
|
|
|
**************************************************************************/
|
|
|
|
@ -237,11 +281,16 @@ $(document).ready(function(){
|
|
|
|
|
$P.fnReset();
|
|
|
|
|
$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.update = wctx.url("/"+taskSeCd+"/sprt/cvlc01/030/update.do");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.refreshCrdnList = () => {
|
|
|
|
|
$P.crdnControl.untilPageNum = $P.crdnControl.query.pageNum;
|
|
|
|
|
$P.crdnControl.query.fetchSize = $P.crdnControl.defaultFetchSize * $P.crdnControl.query.pageNum;
|
|
|
|
|
$P.crdnControl.beforeCurrent = {
|
|
|
|
|
key : $P.crdnControl.getCurrent()["CRDN_ID"],
|
|
|
|
|
index : $P.crdnControl.getCurrent()["ROW_NUM"] - 1
|
|
|
|
|
};
|
|
|
|
|
$P.crdnControl.load(1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -325,10 +374,6 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($("#table-responsive--${pageName}").find("input[name='gridAllCheckbox']").is(":checked")){
|
|
|
|
|
$("#table-responsive--${pageName}").find("input[name='gridCheckbox']").prop("checked",true);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$P.getParams = () => {
|
|
|
|
@ -452,14 +497,10 @@ $(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", () => {});
|
|
|
|
|
$("#btnAnswerComplete--${pageName}").on("click", () => {});
|
|
|
|
|
$("#table-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); });
|
|
|
|
|
|
|
|
|
|
$("#table-responsive--${pageName}").find("input[name='gridAllCheckbox']").on("click", function(){
|
|
|
|
|
var checkYn = $(this).is(":checked");
|
|
|
|
|
$("#table-responsive--${pageName}").find("input[name='gridCheckbox']").prop("checked", checkYn);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* 초기화
|
|
|
|
|
**************************************************************************/
|
|
|
|
|