|
|
@ -20,8 +20,8 @@
|
|
|
|
<button type="button" class="btn btn-search w-px-120" id="btnSearch--${pageName}" title="검색" onclick="fnSearchList${pageName}();">
|
|
|
|
<button type="button" class="btn btn-search w-px-120" id="btnSearch--${pageName}" title="검색" onclick="fnSearchList${pageName}();">
|
|
|
|
검색
|
|
|
|
검색
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
<button type="button" class="btn btn-excel w-px-120" id="btnExcel--${pageName}" title="엑셀 저장" onclick="fnExcel${pageName}();">
|
|
|
|
<button type="button" class="btn btn-excel w-px-120" id="btnExcel--${pageName}" title="엑셀" onclick="fnExcel${pageName}();">
|
|
|
|
엑셀 저장
|
|
|
|
엑셀
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -161,42 +161,43 @@
|
|
|
|
<thead class="sticky-thead">
|
|
|
|
<thead class="sticky-thead">
|
|
|
|
<tr id="theadTr--${pageName}"
|
|
|
|
<tr id="theadTr--${pageName}"
|
|
|
|
data-by="by--${pageName}" data-by-output="byOutput--${pageName}" data-main-option="mainOption--${pageName}" data-sub-option="subOption--${pageName}">
|
|
|
|
data-by="by--${pageName}" data-by-output="byOutput--${pageName}" data-main-option="mainOption--${pageName}" data-sub-option="subOption--${pageName}">
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody id="tbody--${pageName}">
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
|
|
<template id="${infoPrefix}Col--${pageName}">
|
|
|
|
<th class="cmn" style="width: 72px;">NO.</th>
|
|
|
|
<th class="cmn" style="width: 72px;">NO.</th>
|
|
|
|
<th class="cmn" style="width: 56px;">
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('TASK_SE_CD', this.innerText, 'codeValue', 'FIM054');">업무구분</th>
|
|
|
|
<input type="checkbox" class="form-check-input" onchange="${pageName}Control.select(this.checked);">
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('CVLCPT_APLY_NO', this.innerText, 'match', 'part');">민원신청번호</th>
|
|
|
|
</th>
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('CVLCPT_RCPT_NO', this.innerText, 'match', 'part');">민원접수번호</th>
|
|
|
|
<th class="cmn" style="width: 180px;" onclick="searchFromGridTitle('CVLCPT_APLY_NO', this.innerText, 'match', 'part');">민원신청번호</th>
|
|
|
|
|
|
|
|
<th class="cmn" style="width: 180px;" onclick="searchFromGridTitle('CVLCPT_RCPT_NO', this.innerText, 'match', 'part');">민원접수번호</th>
|
|
|
|
|
|
|
|
<th class="cmn" style="width: 140px;" onclick="searchFromGridTitle('CVLCPT_RCPT_YMD', this.innerText, 'ymd', '');">민원접수일자</th>
|
|
|
|
<th class="cmn" style="width: 140px;" onclick="searchFromGridTitle('CVLCPT_RCPT_YMD', this.innerText, 'ymd', '');">민원접수일자</th>
|
|
|
|
<th class="cmn" style="width: 180px;" onclick="searchFromGridTitle('CVLCPT_PRCS_PIC_NM', this.innerText, 'match', 'part');">민원처리담당자</th>
|
|
|
|
<th class="cmn" style="width: 140px;" onclick="searchFromGridTitle('CVLCPT_PRCS_PIC_NM', this.innerText, 'match', 'part');">민원처리담당자</th>
|
|
|
|
<th class="cmn" style="width: 140px;" onclick="searchFromGridTitle('CVLCPT_PRCS_CD', this.innerText, 'codeValue', 'FIM017');">민원처리결과</th>
|
|
|
|
<th class="cmn" style="width: 200px;" onclick="searchFromGridTitle('CVLCPT_PRCS_CD', this.innerText, 'codeValue', 'FIM017');">민원처리결과</th>
|
|
|
|
<th class="cmn" style="width: 180px;" onclick="searchFromGridTitle('CRDN_YMD', this.innerText, 'ymd', '');">단속일시</th>
|
|
|
|
<th class="cmn" style="width: 180px;" onclick="searchFromGridTitle('CRDN_YMD', this.innerText, 'ymd', '');">단속일시</th>
|
|
|
|
<th class="cmn" style="width: 140px;" onclick="searchFromGridTitle('VHRNO', this.innerText, 'match', 'part');">차량번호</th>
|
|
|
|
<th class="cmn" style="width: 140px;" onclick="searchFromGridTitle('VHRNO', this.innerText, 'match', 'part');">차량번호</th>
|
|
|
|
<th class="cmn" style="width: 140px;" onclick="searchFromGridTitle('VLTN_ARTCL', this.innerText, 'match', 'part');">위반항목</th>
|
|
|
|
<th class="cmn" style="width: 140px;" onclick="searchFromGridTitle('VLTN_ARTCL', this.innerText, 'match', 'part');">위반항목</th>
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('CRDN_STDG_NM', this.innerText, 'match', 'part');">법정동</th>
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('CRDN_STDG_NM', this.innerText, 'match', 'part');">법정동</th>
|
|
|
|
<th class="cmn" style="width: 280px;" onclick="searchFromGridTitle('CRDN_PLC', this.innerText, 'match', 'part');">단속장소</th>
|
|
|
|
<th class="cmn" style="width: 280px;" onclick="searchFromGridTitle('CRDN_PLC', this.innerText, 'match', 'part');">단속장소</th>
|
|
|
|
|
|
|
|
<th class="bpv" style="width: 280px;" onclick="searchFromGridTitle('DTL_CRDN_PLC', this.innerText, 'match', 'part');">상세단속장소</th>
|
|
|
|
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('FFNLG_AMT', this.innerText, 'match', 'part');">과태료금액</th>
|
|
|
|
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('FFNLG_AMT', this.innerText, 'match', 'part');">과태료금액</th>
|
|
|
|
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('ADVNTCE_AMT', this.innerText, 'match', 'part');">사전통지금액</th>
|
|
|
|
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('ADVNTCE_AMT', this.innerText, 'match', 'part');">사전통지금액</th>
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('CRDN_STTS_CD', this.innerText, 'codeValue', 'FIM010');">처리상태</th>
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('CRDN_STTS_CD', this.innerText, 'codeValue', 'FIM010');">처리상태</th>
|
|
|
|
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('PARKNG_PSBLTY_RSLT_CD', this.innerText, 'codeValue', 'FIM034');">주차가능여부</th>
|
|
|
|
|
|
|
|
<th class="cmn" style="width: 200px;" onclick="searchFromGridTitle('RTPYR_NM', this.innerText, 'match', 'part');">납부자명</th>
|
|
|
|
<th class="cmn" style="width: 200px;" onclick="searchFromGridTitle('RTPYR_NM', this.innerText, 'match', 'part');">납부자명</th>
|
|
|
|
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('RTPYR_BRDT', this.innerText, 'match', 'part');">납부자생일</th>
|
|
|
|
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('RTPYR_BRDT', this.innerText, 'match', 'part');">납부자생일</th>
|
|
|
|
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('ZIP', this.innerText, 'match', 'part');">우편번호</th>
|
|
|
|
<th class="cmn" style="width: 100px;" onclick="searchFromGridTitle('ZIP', this.innerText, 'match', 'part');">우편번호</th>
|
|
|
|
|
|
|
|
<th class="pvs" style="width: 140px;" onclick="searchFromGridTitle('CRDN_SPAREA_CD', this.innerText, 'codeValue', 'FIM007');">단속특별구역</th>
|
|
|
|
|
|
|
|
<th class="eca" style="width: 140px;" onclick="searchFromGridTitle('USE_FUEL_CD', this.innerText, 'codeValue', 'LVS005');">사용연료</th>
|
|
|
|
|
|
|
|
<th class="dpv" style="width: 140px;" onclick="searchFromGridTitle('PARKNG_PSBLTY_RSLT_CD', this.innerText, 'codeValue', 'FIM034');">주차가능여부</th>
|
|
|
|
<th class="cmn" style="width: 180px;">등록일시</th>
|
|
|
|
<th class="cmn" style="width: 180px;">등록일시</th>
|
|
|
|
<th class="cmn" style="width: 140px;">등록사용자</th>
|
|
|
|
<th class="cmn" style="width: 140px;">등록사용자</th>
|
|
|
|
<th class="cmn" style="width: 180px;">수정일시</th>
|
|
|
|
<th class="cmn" style="width: 180px;">수정일시</th>
|
|
|
|
<th class="cmn" style="width: 140px;">수정사용자</th>
|
|
|
|
<th class="cmn" style="width: 140px;">수정사용자</th>
|
|
|
|
<th class="cmn dummy-th"></th>
|
|
|
|
<th class="cmn dummy-th"></th>
|
|
|
|
</tr>
|
|
|
|
</template>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody id="tbody--${pageName}">
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
|
|
<template id="${infoPrefix}Row--${pageName}">
|
|
|
|
<template id="${infoPrefix}Row--${pageName}">
|
|
|
|
<tr data-key="{CRDN_ID}">
|
|
|
|
<tr data-key="{CRDN_ID}">
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td>
|
|
|
|
<td class="cmn text-center">
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{TASK_SE_NM}</td>
|
|
|
|
<input type="checkbox" class="form-check-input" value="{CRDN_ID}" onchange="${pageName}Control.select('{CRDN_ID}', this.checked);">
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CVLCPT_APLY_NO}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CVLCPT_APLY_NO}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CVLCPT_RCPT_NO}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CVLCPT_RCPT_NO}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CVLCPT_RCPT_YMD}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CVLCPT_RCPT_YMD}</td>
|
|
|
@ -204,16 +205,19 @@
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CVLCPT_PRCS_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CVLCPT_PRCS_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_YMD_TM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_YMD_TM}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{VHRNO}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{VHRNO}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{VLTN_ARTCL}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{VLTN_ARTCL}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_STDG_NM}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_STDG_NM}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_PLC}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_PLC}</td>
|
|
|
|
|
|
|
|
<td class="bpv text-start" onclick="{onclick}" ondblclick="{ondblclick}">{DTL_CRDN_PLC}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{FFNLG_AMT}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{FFNLG_AMT}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{ADVNTCE_AMT}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{ADVNTCE_AMT}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_STTS_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_STTS_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{PARKNG_PSBLTY_RSLT_NM}</td>
|
|
|
|
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_NM}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_BRDT}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_BRDT}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ZIP}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ZIP}</td>
|
|
|
|
|
|
|
|
<td class="pvs text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_SPAREA_NM}</td>
|
|
|
|
|
|
|
|
<td class="eca text-center" onclick="{onclick}" ondblclick="{ondblclick}">{USE_FUEL_NM}</td>
|
|
|
|
|
|
|
|
<td class="dpv text-center" onclick="{onclick}" ondblclick="{ondblclick}">{PARKNG_PSBLTY_RSLT_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{REG_DT}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{REG_DT}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RGTR_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RGTR_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{MDFCN_DT}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{MDFCN_DT}</td>
|
|
|
@ -222,7 +226,19 @@
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template id="${infoPrefix}NotFound--${pageName}">
|
|
|
|
<template id="${infoPrefix}NotFound--${pageName}">
|
|
|
|
<tr class="odd">
|
|
|
|
<tr class="bpv">
|
|
|
|
|
|
|
|
<td valign="top" colspan="23" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="dpv">
|
|
|
|
|
|
|
|
<td valign="top" colspan="23" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="eca">
|
|
|
|
|
|
|
|
<td valign="top" colspan="23" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="pvs">
|
|
|
|
|
|
|
|
<td valign="top" colspan="23" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="tpv">
|
|
|
|
<td valign="top" colspan="23" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
<td valign="top" colspan="23" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -248,6 +264,8 @@
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// URL
|
|
|
|
// URL
|
|
|
|
var ${pageName}PrefixUrl = "/sndb/sndb01";
|
|
|
|
var ${pageName}PrefixUrl = "/sndb/sndb01";
|
|
|
|
|
|
|
|
// FormFields
|
|
|
|
|
|
|
|
var ${pageName}Fields = new FormFields("#frmSearch--${pageName}");
|
|
|
|
// 공통 코드
|
|
|
|
// 공통 코드
|
|
|
|
var FIM004 = new CommonCodes(${FIM004}, true);
|
|
|
|
var FIM004 = new CommonCodes(${FIM004}, true);
|
|
|
|
var FIM005 = new CommonCodes(${FIM005}, true);
|
|
|
|
var FIM005 = new CommonCodes(${FIM005}, true);
|
|
|
@ -266,10 +284,6 @@
|
|
|
|
, dataGetter : obj => obj.advntceSndngTrgtList
|
|
|
|
, dataGetter : obj => obj.advntceSndngTrgtList
|
|
|
|
, appendData : true
|
|
|
|
, appendData : true
|
|
|
|
, tableRenderComplete : false // dataTables 에 자료 추가 완료 여부
|
|
|
|
, tableRenderComplete : false // dataTables 에 자료 추가 완료 여부
|
|
|
|
, urls : {
|
|
|
|
|
|
|
|
load : wctx.url(${pageName}PrefixUrl + "/050/list.do") // 검색
|
|
|
|
|
|
|
|
, getInfo : wctx.url("/sprt/sprt02/010/main.do") // 개별총정보
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
, formats : {
|
|
|
|
, formats : {
|
|
|
|
CVLCPT_RCPT_YMD : dateFormat
|
|
|
|
CVLCPT_RCPT_YMD : dateFormat
|
|
|
|
, CRDN_YMD_TM : datetimeFormat
|
|
|
|
, CRDN_YMD_TM : datetimeFormat
|
|
|
@ -308,23 +322,9 @@
|
|
|
|
$("#tbody--${pageName}").setCurrentRow(key);
|
|
|
|
$("#tbody--${pageName}").setCurrentRow(key);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// 선택(체크) 변경 이벤트
|
|
|
|
|
|
|
|
${pageName}Control.onSelectionChange = selected => {
|
|
|
|
|
|
|
|
let ${infoPrefix}List = ${pageName}Control.dataset;
|
|
|
|
|
|
|
|
let keys = selected.map(e => ${infoPrefix}List.getKey(e));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#tbody--${pageName} input[type='checkbox']").each(function() {
|
|
|
|
|
|
|
|
let checkbox = $(this);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
checkbox.prop("checked", keys.includes(checkbox.val()));
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnAdvntceSndngTrg--${pageName}").prop("disabled", keys.length < 1);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 개별총정보 dialog
|
|
|
|
// 개별총정보 dialog
|
|
|
|
${pageName}Control.getInfo = (crdnId) => {
|
|
|
|
${pageName}Control.getInfo = (crdnId) => {
|
|
|
|
if (crdnId == undefined || crdnId == null || crdnId == "") {
|
|
|
|
if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -335,15 +335,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
ajax.get({
|
|
|
|
url : ${pageName}Control.urls.getInfo
|
|
|
|
url : ${pageName}Control.urls.getInfo
|
|
|
|
, data : params || {}
|
|
|
|
, data : params
|
|
|
|
, success : resp => {
|
|
|
|
, success : resp => {
|
|
|
|
dialog.open({
|
|
|
|
dialog.open({
|
|
|
|
id : "totalInfoMainDialog"
|
|
|
|
id : "totalInfoMainDialog"
|
|
|
|
, title : "개별총정보"
|
|
|
|
, title : "개별총정보"
|
|
|
|
, content : resp
|
|
|
|
, content : resp
|
|
|
|
, size : "xxl"
|
|
|
|
, size : "xxl"
|
|
|
|
, init : () => { }
|
|
|
|
|
|
|
|
, onClose : () => { }
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -356,12 +354,27 @@
|
|
|
|
renderList${pageName} = () => {
|
|
|
|
renderList${pageName} = () => {
|
|
|
|
let ${infoPrefix}List = ${pageName}Control.dataset;
|
|
|
|
let ${infoPrefix}List = ${pageName}Control.dataset;
|
|
|
|
let empty = ${infoPrefix}List.empty;
|
|
|
|
let empty = ${infoPrefix}List.empty;
|
|
|
|
|
|
|
|
let clsForTask = $("#frmSearch--${pageName} input[name='taskSeCd']:checked").val();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (typeof clsForTask == "undefined" || clsForTask == null || clsForTask == "") {
|
|
|
|
|
|
|
|
clsForTask = $("#layout-navbar input[name='taskSeCd']:checked").val().toLowerCase();
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
clsForTask = clsForTask.toLowerCase();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 업무별 그리드 td
|
|
|
|
|
|
|
|
let foundContent = document.getElementById("${infoPrefix}Row--${pageName}").content;
|
|
|
|
|
|
|
|
let foundTr = $(foundContent).find("tr")[0].cloneNode(false);
|
|
|
|
|
|
|
|
let foundTds = $(foundContent).find("." + clsForTask + ",.cmn");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foundTds.each(function() {
|
|
|
|
|
|
|
|
foundTr.appendChild(this.cloneNode(true));
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
let trs = empty ?
|
|
|
|
let trs = empty ?
|
|
|
|
[document.getElementById("${infoPrefix}NotFound--${pageName}").innerHTML] : <%-- from template#${infoPrefix}NotFound --%>
|
|
|
|
[document.getElementById("${infoPrefix}NotFound--${pageName}").content.querySelector("." + clsForTask + ",.cmn").outerHTML]
|
|
|
|
${infoPrefix}List.inStrings(
|
|
|
|
: ${infoPrefix}List.inStrings(foundTr.outerHTML
|
|
|
|
document.getElementById("${infoPrefix}Row--${pageName}").innerHTML, <%-- from template#${infoPrefix}Row --%>
|
|
|
|
, (str, dataItem) => str
|
|
|
|
(str, dataItem) => str
|
|
|
|
|
|
|
|
.replace(/{onclick}/gi, "${pageName}Control.setCurrent('" + dataItem.getValue("CRDN_ID") + "');")
|
|
|
|
.replace(/{onclick}/gi, "${pageName}Control.setCurrent('" + dataItem.getValue("CRDN_ID") + "');")
|
|
|
|
.replace(/{ondblclick}/gi, "${pageName}Control.getInfo('" + dataItem.getValue("CRDN_ID") + "');")
|
|
|
|
.replace(/{ondblclick}/gi, "${pageName}Control.getInfo('" + dataItem.getValue("CRDN_ID") + "');")
|
|
|
|
);
|
|
|
|
);
|
|
|
@ -373,59 +386,9 @@
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 업무구분 변경
|
|
|
|
|
|
|
|
fnResetAndChangeBiz${pageName} = (taskSeCd) => {
|
|
|
|
|
|
|
|
initForm${pageName}();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
${pageName}Control.urls.load = wctx.url("/" + taskSeCd + ${pageName}PrefixUrl + "/050/list.do"); // 조회
|
|
|
|
|
|
|
|
${pageName}Control.urls.getInfo = wctx.url("/" + taskSeCd + "/sprt/sprt02/010/main.do"); // 개별총정보
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 업무에 따른 위반 내용
|
|
|
|
|
|
|
|
let vltnCode = [];
|
|
|
|
|
|
|
|
if (taskSeCd == "PVS") { // 주정차 위반
|
|
|
|
|
|
|
|
vltnCode = FIM004.list();
|
|
|
|
|
|
|
|
} else if (taskSeCd == "BPV") { // 전용차로 위반
|
|
|
|
|
|
|
|
vltnCode = FIM005.list();
|
|
|
|
|
|
|
|
} else if (taskSeCd == "DPV") { // 장애인 전용
|
|
|
|
|
|
|
|
vltnCode = FIM006.list();
|
|
|
|
|
|
|
|
} else if (taskSeCd == "ECA") { // 전기차 주차 위반
|
|
|
|
|
|
|
|
vltnCode = FIM061.list();
|
|
|
|
|
|
|
|
} else if (taskSeCd == "TPV") { // 밤샘 주차 위반
|
|
|
|
|
|
|
|
vltnCode = FIM064.list();
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 항목 초기화
|
|
|
|
|
|
|
|
$("#schVltnCd--${pageName}").empty();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#schVltnCd--${pageName}").append("<option value=''>" + "전체" + "</option>");
|
|
|
|
|
|
|
|
$(vltnCode).each(function(index, item) {
|
|
|
|
|
|
|
|
$("#schVltnCd--${pageName}").append("<option value='" + vltnCode[index].code +"'>" + vltnCode[index].value + "</option>");
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 검색 조건 파라미터 가져오기
|
|
|
|
|
|
|
|
getParams${pageName} = () => {
|
|
|
|
|
|
|
|
let formFields = new FimsFormFields("#frmSearch--${pageName}");
|
|
|
|
|
|
|
|
let formData = formFields.get();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
formData.fetchSize = FETCH_XS; // 한번에 조회되는 자료 건수
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 나중에 삭제
|
|
|
|
|
|
|
|
formData.sggCd = "41480"; // 시군구 코드 임시
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return formData;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 사전통지 발송 등록 dialog -> callback 추가
|
|
|
|
// 사전통지 발송 등록 dialog -> callback 추가
|
|
|
|
getInfoAdvntceSndngTrg${pageName} = (params) => {
|
|
|
|
getInfoAdvntceSndngTrg${pageName} = (params) => {
|
|
|
|
// 선택된 자료의 단속ID 추가
|
|
|
|
if (!params) return;
|
|
|
|
let selected = ${pageName}Control.dataset.getKeys("selected");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (selected.length < 1) return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
params["crdnIDs"] = selected.join(",");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
ajax.get({
|
|
|
|
url : wctx.url("/" + params.taskSeCd + ${pageName}PrefixUrl + "/060/info.do")
|
|
|
|
url : wctx.url("/" + params.taskSeCd + ${pageName}PrefixUrl + "/060/info.do")
|
|
|
@ -436,7 +399,6 @@
|
|
|
|
, title : ${pageName}Control.prefixName + " 정보"
|
|
|
|
, title : ${pageName}Control.prefixName + " 정보"
|
|
|
|
, content : resp
|
|
|
|
, content : resp
|
|
|
|
, size : "xl"
|
|
|
|
, size : "xl"
|
|
|
|
, init : () => { }
|
|
|
|
|
|
|
|
, onClose : () => { ${pageName}Control.load(${pageName}Control.query.pageNum); } // callback
|
|
|
|
, onClose : () => { ${pageName}Control.load(${pageName}Control.query.pageNum); } // callback
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -446,14 +408,12 @@
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* 초기 셋팅
|
|
|
|
* 초기 셋팅
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// 화면 초기값 셋팅
|
|
|
|
// 초기화
|
|
|
|
initForm${pageName} = () => {
|
|
|
|
initForm${pageName} = () => {
|
|
|
|
// 달력 초기화
|
|
|
|
// 화면 초기화
|
|
|
|
initDatepicker("frmSearch--${pageName}");
|
|
|
|
$("#frmSearch--${pageName}")[0].reset();
|
|
|
|
|
|
|
|
|
|
|
|
$("#schCrdnYmdFrom--${pageName}").datepicker("setDate", DateUtil.getDateDay(-90).date);
|
|
|
|
|
|
|
|
$("#schCrdnYmdTo--${pageName}").datepicker("setDate", new Date());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// dataset 초기화
|
|
|
|
${pageName}Control.dataset.clear();
|
|
|
|
${pageName}Control.dataset.clear();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -501,43 +461,117 @@
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 화면 초기값 셋팅
|
|
|
|
|
|
|
|
setForm${pageName} = (taskSeCd) => {
|
|
|
|
|
|
|
|
// 업무 구분 코드
|
|
|
|
|
|
|
|
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + taskSeCd + "']").prop("checked", true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 최고 관리자 경우 업무구분을 선택할 수 있도록 하자.
|
|
|
|
|
|
|
|
$("#frmSearch--${pageName} input[name='taskSeCd']").each(function(i) {
|
|
|
|
|
|
|
|
$(this).prop("disabled", "true");
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 업무에 따른 위반 내용
|
|
|
|
|
|
|
|
let vltnCode = [];
|
|
|
|
|
|
|
|
if (taskSeCd == "PVS") { // 주정차 위반
|
|
|
|
|
|
|
|
vltnCode = FIM004.list();
|
|
|
|
|
|
|
|
} else if (taskSeCd == "BPV") { // 전용차로 위반
|
|
|
|
|
|
|
|
vltnCode = FIM005.list();
|
|
|
|
|
|
|
|
} else if (taskSeCd == "DPV") { // 장애인 전용
|
|
|
|
|
|
|
|
vltnCode = FIM006.list();
|
|
|
|
|
|
|
|
} else if (taskSeCd == "ECA") { // 전기차 주차 위반
|
|
|
|
|
|
|
|
vltnCode = FIM061.list();
|
|
|
|
|
|
|
|
} else if (taskSeCd == "TPV") { // 밤샘 주차 위반
|
|
|
|
|
|
|
|
vltnCode = FIM064.list();
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 위반 항목
|
|
|
|
|
|
|
|
$("#schVltnCd--${pageName}").empty();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#schVltnCd--${pageName}").append("<option value=''>" + "전체" + "</option>");
|
|
|
|
|
|
|
|
$(vltnCode).each(function(index, item) {
|
|
|
|
|
|
|
|
$("#schVltnCd--${pageName}").append("<option value='" + vltnCode[index].code +"'>" + vltnCode[index].value + "</option>");
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 달력 초기화
|
|
|
|
|
|
|
|
initDatepicker("frmSearch--${pageName}");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#schCrdnYmdFrom--${pageName}").datepicker("setDate", DateUtil.getDateDay(-365).date);
|
|
|
|
|
|
|
|
$("#schCrdnYmdTo--${pageName}").datepicker("setDate", new Date());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 업무별 조회조건
|
|
|
|
|
|
|
|
let clsForTask = taskSeCd.toLowerCase();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
renderForTask("frmSearch--${pageName}", clsForTask);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 업무별 그리드 th
|
|
|
|
|
|
|
|
$("#DataTables_Table_0--${pageName}").find("th").resizable( "destroy" );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let colContent = document.getElementById("${infoPrefix}Col--${pageName}").content;
|
|
|
|
|
|
|
|
let cols = $(colContent).find("." + clsForTask + ",.cmn");
|
|
|
|
|
|
|
|
let colsOuterHTML = "";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cols.each(function() {
|
|
|
|
|
|
|
|
colsOuterHTML += this.outerHTML;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#theadTr--${pageName}").html(colsOuterHTML);
|
|
|
|
|
|
|
|
$("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} );
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// URL 설정
|
|
|
|
|
|
|
|
setURL${pageName} = (taskSeCd) => {
|
|
|
|
|
|
|
|
${pageName}Control.urls.load = wctx.url("/" + taskSeCd + ${pageName}PrefixUrl + "/050/list.do"); // 조회
|
|
|
|
|
|
|
|
${pageName}Control.urls.getInfo = wctx.url("/" + taskSeCd + "/sprt/sprt02/010/main.do"); // 개별총정보
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* 버튼 clickEvent
|
|
|
|
* 버튼 clickEvent
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
// 업무 구분 변경
|
|
|
|
|
|
|
|
fnResetAndChangeBiz${pageName} = (taskSeCd) => {
|
|
|
|
// 초기화
|
|
|
|
// 초기화
|
|
|
|
fnReset${pageName} = () => {
|
|
|
|
initForm${pageName}();
|
|
|
|
let taskSeCd = $("#layout-navbar input[name='taskSeCd']:checked").val();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fnResetAndChangeBiz${pageName}(taskSeCd);
|
|
|
|
// 업무 구분 코드
|
|
|
|
|
|
|
|
if (typeof taskSeCd == "undefined" || taskSeCd == null || taskSeCd == "") {
|
|
|
|
|
|
|
|
taskSeCd = $("#layout-navbar input[name='taskSeCd']:checked").val();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 검색
|
|
|
|
// 화면 초기값 설정
|
|
|
|
|
|
|
|
setForm${pageName}(taskSeCd);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// URL 설정
|
|
|
|
|
|
|
|
setURL${pageName}(taskSeCd);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 초기화 버튼 이벤트
|
|
|
|
|
|
|
|
fnReset${pageName} = () => {
|
|
|
|
|
|
|
|
fnResetAndChangeBiz${pageName}();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 검색 버튼 이벤트
|
|
|
|
fnSearchList${pageName} = () => {
|
|
|
|
fnSearchList${pageName} = () => {
|
|
|
|
// 검색조건
|
|
|
|
// 검색조건
|
|
|
|
${pageName}Control.query = getParams${pageName}();
|
|
|
|
${pageName}Control.query = ${pageName}Fields.get();
|
|
|
|
${pageName}Control.query.delYn = "N"; // 삭제 여부
|
|
|
|
${pageName}Control.query.fetchSize = FETCH_XS; // 한번에 조회되는 자료 건수 FETCH_XS = 30
|
|
|
|
${pageName}Control.query.crdnDelYn = "N"; // 단속 대장 삭제 여부
|
|
|
|
|
|
|
|
// if () { } 주정차, 전용차로 위반
|
|
|
|
|
|
|
|
// else { } 기타
|
|
|
|
|
|
|
|
${pageName}Control.query.crdnSttsCd = "21"; // 21 납부자 등록
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
${pageName}Control.load();
|
|
|
|
${pageName}Control.load();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 엑셀
|
|
|
|
// 엑셀 버튼 이벤트
|
|
|
|
fnExcel${pageName} = () => {
|
|
|
|
fnExcel${pageName} = () => {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 사전통지 발송 대상 등록
|
|
|
|
// 사전통지 발송 대상 등록 버튼 이벤트
|
|
|
|
fnAdvntceSndngTrg${pageName} = () => {
|
|
|
|
fnAdvntceSndngTrg${pageName} = () => {
|
|
|
|
let params = {
|
|
|
|
let params = ${pageName}Fields.get();
|
|
|
|
callPurpose : "create"
|
|
|
|
|
|
|
|
, sggCd : ${pageName}Control.dataset.getValue("SGG_CD") // 시군구 코드
|
|
|
|
params.callPurpose = "create";
|
|
|
|
, taskSeCd : ${pageName}Control.dataset.getValue("TASK_SE_CD") // 업무 구분 코드
|
|
|
|
params.sndngSeCd = "02"; // 발송 구분 코드 - 02 사전통지서
|
|
|
|
, sndngSeCd : "01" // 발송 구분 코드 - 01 사전통지서
|
|
|
|
|
|
|
|
, vltnCd : $("#schVltnCd--${pageName}").val() // 위반 코드
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getInfoAdvntceSndngTrg${pageName}(params);
|
|
|
|
getInfoAdvntceSndngTrg${pageName}(params);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -546,16 +580,20 @@
|
|
|
|
* script 진입
|
|
|
|
* script 진입
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
$(document).ready(function() {
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
|
|
|
// 기본 데이터 설정
|
|
|
|
|
|
|
|
$("#sggCd--${pageName}").val("${sggCd}"); // 시군구 코드
|
|
|
|
|
|
|
|
|
|
|
|
// 이벤트 설정
|
|
|
|
// 이벤트 설정
|
|
|
|
setEvent${pageName}();
|
|
|
|
setEvent${pageName}();
|
|
|
|
|
|
|
|
|
|
|
|
// 보안모드
|
|
|
|
// 보안모드
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
|
|
|
|
|
|
|
|
// 업무구분 및 화면 초기 설정
|
|
|
|
// 업무 구분 설정
|
|
|
|
let defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
|
|
|
|
let defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
|
|
|
|
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked", true);
|
|
|
|
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked", true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 업무 구분 및 화면 초기 설정
|
|
|
|
fnResetAndChangeBiz${pageName}(defaultBizValue);
|
|
|
|
fnResetAndChangeBiz${pageName}(defaultBizValue);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|