|
|
@ -5,7 +5,7 @@
|
|
|
|
<div class="content-wrapper">
|
|
|
|
<div class="content-wrapper">
|
|
|
|
<!-- Content -->
|
|
|
|
<!-- Content -->
|
|
|
|
<div class="container flex-grow-1 px-0">
|
|
|
|
<div class="container flex-grow-1 px-0">
|
|
|
|
<c:set var="prefixName" scope="request">공시송달 정보</c:set>
|
|
|
|
<c:set var="prefixName" scope="request">공시송달 상세</c:set>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Page Body -->
|
|
|
|
<!-- Page Body -->
|
|
|
|
<div class="card">
|
|
|
|
<div class="card">
|
|
|
@ -20,6 +20,12 @@
|
|
|
|
<!-- 업무 버튼 및 건수 표시 -->
|
|
|
|
<!-- 업무 버튼 및 건수 표시 -->
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<span class="container-page-btn">
|
|
|
|
<span class="container-page-btn">
|
|
|
|
|
|
|
|
<!-- 건수, 페이지 표시 -->
|
|
|
|
|
|
|
|
<div class="d-flex flex-row justify-content-between">
|
|
|
|
|
|
|
|
<label class="dataTables_info" id="paging--${pageName}PagingInfo" role="status" aria-live="polite"></label>
|
|
|
|
|
|
|
|
<ul class="pagination pagination-primary" id="paging--${pageName}">
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
<!-- 업무 버튼 -->
|
|
|
|
<!-- 업무 버튼 -->
|
|
|
|
<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}();">
|
|
|
@ -28,13 +34,12 @@
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" id="btnHwpPrint--${pageName}" title="한글파일 출력" onclick="fnHwpPrint${pageName}();">
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" id="btnHwpPrint--${pageName}" title="한글파일 출력" onclick="fnHwpPrint${pageName}();">
|
|
|
|
한글파일 출력
|
|
|
|
한글파일 출력
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" id="btnSvbtcRemove--${pageName}" title="공시송달 삭제" onclick="fnSvbtcRemove${pageName}();">
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" id="btnRemove--${pageName}" title="공시송달 삭제" onclick="fnRemove${pageName}();">
|
|
|
|
공시송달 삭제
|
|
|
|
공시송달 삭제
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div> <!-- / 업무 버튼 및 건수 표시 -->
|
|
|
|
<!-- / 업무 버튼 및 건수 표시 -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- DataTables(그리드) -->
|
|
|
|
<!-- DataTables(그리드) -->
|
|
|
|
<div class="card-datatable text-nowrap">
|
|
|
|
<div class="card-datatable text-nowrap">
|
|
|
@ -44,19 +49,21 @@
|
|
|
|
<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}">
|
|
|
|
<th class="cmn" style="width: 56px;">
|
|
|
|
<th class="cmn" style="width: 56px;"><input type="checkbox" class="form-check-input" onchange="${pageName}Control.select(this.checked);"></th>
|
|
|
|
<input type="checkbox" class="form-check-input" onchange="${pageName}Control.select(this.checked);">
|
|
|
|
|
|
|
|
</th>
|
|
|
|
|
|
|
|
<th class="cmn" style="width: 120px;">발송상태</th>
|
|
|
|
<th class="cmn" style="width: 120px;">발송상태</th>
|
|
|
|
<th class="cmn" style="width: 120px;">공시송달일자</th>
|
|
|
|
<th class="cmn" style="width: 120px;">공시송달일자</th>
|
|
|
|
<th class="cmn" style="width: 160px;">등기번호</th>
|
|
|
|
<th class="cmn" style="width: 160px;">등기번호</th>
|
|
|
|
<th class="cmn" style="width: 120px;">발송일자</th>
|
|
|
|
<th class="cmn" style="width: 120px;">발송일자</th>
|
|
|
|
<th class="cmn" style="width: 120px;">발송종료일자</th>
|
|
|
|
<th class="cmn" style="width: 120px;">발송종료일자</th>
|
|
|
|
<th class="cmn" style="width: 200px;">납부자명</th>
|
|
|
|
<th class="cmn" style="width: 200px;">성명</th>
|
|
|
|
<th class="cmn" style="width: 160px;">납부자번호</th>
|
|
|
|
|
|
|
|
<th class="cmn" style="width: 100px;">우편번호</th>
|
|
|
|
<th class="cmn" style="width: 100px;">우편번호</th>
|
|
|
|
<th class="cmn" style="width: 280px;">주소</th>
|
|
|
|
<th class="cmn" style="width: 280px;">주소</th>
|
|
|
|
<th class="cmn" style="width: 320px;">상세주소</th>
|
|
|
|
<th class="cmn" style="width: 320px;">상세주소</th>
|
|
|
|
|
|
|
|
<th class="cmn" style="width: 120px;">배달일자</th>
|
|
|
|
|
|
|
|
<th class="cmn" style="width: 120px;">배달시각</th>
|
|
|
|
|
|
|
|
<th class="cmn" style="width: 200px;">미배달사유</th>
|
|
|
|
|
|
|
|
<th class="cmn" style="width: 200px;">수령인</th>
|
|
|
|
|
|
|
|
<th class="cmn" style="width: 200px;">수령인관계</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: 160px;">법정동</th>
|
|
|
|
<th class="cmn" style="width: 160px;">법정동</th>
|
|
|
@ -66,6 +73,8 @@
|
|
|
|
<th class="cmn" style="width: 120px;">부과일자</th>
|
|
|
|
<th class="cmn" style="width: 120px;">부과일자</th>
|
|
|
|
<th class="cmn" style="width: 120px;">납기일자</th>
|
|
|
|
<th class="cmn" style="width: 120px;">납기일자</th>
|
|
|
|
<th class="cmn" style="width: 120px;">과태료금액</th>
|
|
|
|
<th class="cmn" style="width: 120px;">과태료금액</th>
|
|
|
|
|
|
|
|
<th class="cmn" style="width: 120px;">본세</th>
|
|
|
|
|
|
|
|
<th class="cmn" style="width: 120px;">가산금</th>
|
|
|
|
<th class="cmn" style="width: 120px;">합계금액</th>
|
|
|
|
<th class="cmn" style="width: 120px;">합계금액</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>
|
|
|
@ -78,19 +87,21 @@
|
|
|
|
</tbody>
|
|
|
|
</tbody>
|
|
|
|
<template id="${infoPrefix}Row--${pageName}">
|
|
|
|
<template id="${infoPrefix}Row--${pageName}">
|
|
|
|
<tr data-key="{SNDNG_DTL_ID}">
|
|
|
|
<tr data-key="{SNDNG_DTL_ID}">
|
|
|
|
<td class="cmn text-center">
|
|
|
|
<td class="cmn text-center"><input type="checkbox" class="form-check-input" value="{SNDNG_DTL_ID}" onchange="${pageName}Control.select('{SNDNG_DTL_ID}', this.checked);"></td>
|
|
|
|
<input type="checkbox" class="form-check-input" value="{SNDNG_DTL_ID}" onchange="${pageName}Control.select('{SNDNG_DTL_ID}', this.checked);">
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{SNDNG_DTL_STTS_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{SNDNG_DTL_STTS_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{SVBTC_YMD}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{SVBTC_YMD}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RG_NO}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RG_NO}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{SNDNG_YMD}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{SNDNG_YMD}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{SNDNG_END_YMD}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{SNDNG_END_YMD}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_NM}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RCPN_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_BRDT}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RCPN_ZIP}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_ZIP}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RCPN_ADDR}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_ADDR}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RCPN_DTL_ADDR}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_DTL_ADDR}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DLVR_YMD}</td>
|
|
|
|
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DLVR_TM}</td>
|
|
|
|
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{UNDLVR_RSN_NM}</td>
|
|
|
|
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{ACTL_RCPN_NM}</td>
|
|
|
|
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RCPN_REL_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_DT}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_DT}</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-start" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_STDG_NM}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_STDG_NM}</td>
|
|
|
@ -100,6 +111,8 @@
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{LEVY_YMD}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{LEVY_YMD}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DUDT_YMD}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DUDT_YMD}</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}">{PCPTAX}</td>
|
|
|
|
|
|
|
|
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{ADAMT}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{SUM_AMT}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{SUM_AMT}</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>
|
|
|
@ -110,14 +123,14 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template id="${infoPrefix}NotFound--${pageName}">
|
|
|
|
<template id="${infoPrefix}NotFound--${pageName}">
|
|
|
|
<tr class="odd">
|
|
|
|
<tr class="odd">
|
|
|
|
<td valign="top" colspan="26" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
<td valign="top" colspan="32" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div> <!-- / DataTables(그리드) -->
|
|
|
|
<!-- / DataTables(그리드) -->
|
|
|
|
|
|
|
|
</div> <!-- <div class="wrapper-list"> -->
|
|
|
|
</div> <!-- <div class="wrapper-list"> -->
|
|
|
|
</div> <!-- <div class="card"> -->
|
|
|
|
</div> <!-- <div class="card"> -->
|
|
|
|
</div> <!-- / Content <div class="container flex-grow-1 px-0"> -->
|
|
|
|
</div> <!-- / Content <div class="container flex-grow-1 px-0"> -->
|
|
|
@ -132,24 +145,29 @@
|
|
|
|
var ${pageName}PrefixUrl = "/sndb/sndb01";
|
|
|
|
var ${pageName}PrefixUrl = "/sndb/sndb01";
|
|
|
|
// FormFields
|
|
|
|
// FormFields
|
|
|
|
var ${pageName}Fields = new FimsFormFields("#frmEdit--${pageName}");
|
|
|
|
var ${pageName}Fields = new FimsFormFields("#frmEdit--${pageName}");
|
|
|
|
|
|
|
|
// main 의 검색 조건을 그대로 유지
|
|
|
|
|
|
|
|
var ${pageName}Query = ${query};
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* DatasetControl
|
|
|
|
* DatasetControl
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
var ${pageName}Control = new DatasetControl({
|
|
|
|
var ${pageName}Control = new DatasetControl({
|
|
|
|
prefix : "svbtcDtl"
|
|
|
|
prefix : "svbtcDtl"
|
|
|
|
, prefixName : "공시송달 상세"
|
|
|
|
, prefixName : "공시송달 상세 정보"
|
|
|
|
, keymapper : info => info ? info.SNDNG_DTL_ID : ""
|
|
|
|
, keymapper : info => info ? info.SNDNG_DTL_ID : ""
|
|
|
|
, dataGetter : obj => obj.svbtcDtlList
|
|
|
|
, dataGetter : obj => obj.svbtcDtlList
|
|
|
|
, appendData : true
|
|
|
|
, appendData : true
|
|
|
|
|
|
|
|
, untilPageNum : 0 // 현재 페이지 번호
|
|
|
|
, tableRenderComplete : false // dataTables 에 자료 추가 완료 여부
|
|
|
|
, tableRenderComplete : false // dataTables 에 자료 추가 완료 여부
|
|
|
|
, formats : {
|
|
|
|
, formats : {
|
|
|
|
SVBTC_YMD : dateFormat
|
|
|
|
SVBTC_YMD : dateFormat
|
|
|
|
, SNDNG_YMD : dateFormat
|
|
|
|
, SNDNG_YMD : dateFormat
|
|
|
|
, SNDNG_END_YMD : dateFormat
|
|
|
|
, SNDNG_END_YMD : dateFormat
|
|
|
|
|
|
|
|
, DLVR_YMD : dateFormat
|
|
|
|
, LEVY_YMD : dateFormat
|
|
|
|
, LEVY_YMD : dateFormat
|
|
|
|
, DUDT_YMD : dateFormat
|
|
|
|
, DUDT_YMD : dateFormat
|
|
|
|
, FFNLG_AMT : numberFormat
|
|
|
|
, PCPTAX : numberFormat
|
|
|
|
|
|
|
|
, ADAMT : numberFormat
|
|
|
|
, SUM_AMT : numberFormat
|
|
|
|
, SUM_AMT : numberFormat
|
|
|
|
, REG_DT : datetimeFormat
|
|
|
|
, REG_DT : datetimeFormat
|
|
|
|
, MDFCN_DT : datetimeFormat
|
|
|
|
, MDFCN_DT : datetimeFormat
|
|
|
@ -161,7 +179,16 @@
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// Dataset 변경 이벤트
|
|
|
|
// Dataset 변경 이벤트
|
|
|
|
${pageName}Control.onDatasetChange = obj => {
|
|
|
|
${pageName}Control.onDatasetChange = obj => {
|
|
|
|
renderList${pageName}();
|
|
|
|
renderList${pageName}(obj.${infoPrefix}Total);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#paging--${pageName}").setPagingInfo({
|
|
|
|
|
|
|
|
list : ${pageName}Control.dataset
|
|
|
|
|
|
|
|
, prefix : "paging--${pageName}"
|
|
|
|
|
|
|
|
, start : obj.${infoPrefix}Start
|
|
|
|
|
|
|
|
, totalSize : obj.${infoPrefix}Total
|
|
|
|
|
|
|
|
, fetchSize : obj.${infoPrefix}Fetch
|
|
|
|
|
|
|
|
, func : "${pageName}Control.load({index})"
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
${pageName}Control.tableRenderComplete = true; // dataTables 에 자료 추가 완료
|
|
|
|
${pageName}Control.tableRenderComplete = true; // dataTables 에 자료 추가 완료
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -173,8 +200,6 @@
|
|
|
|
let key = item.data.SNDNG_DTL_ID;
|
|
|
|
let key = item.data.SNDNG_DTL_ID;
|
|
|
|
|
|
|
|
|
|
|
|
$("#tbody--${pageName}").setCurrentRow(key);
|
|
|
|
$("#tbody--${pageName}").setCurrentRow(key);
|
|
|
|
|
|
|
|
|
|
|
|
${pageName}Control.urls.getInfo = wctx.url("/" + item.data.TASK_SE_CD + "/sprt/sprt02/010/main.do"); // 개별총정보
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// 선택(체크) 변경 이벤트
|
|
|
|
// 선택(체크) 변경 이벤트
|
|
|
@ -188,33 +213,9 @@
|
|
|
|
checkbox.prop("checked", keys.includes(checkbox.val()));
|
|
|
|
checkbox.prop("checked", keys.includes(checkbox.val()));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$("#btnSvbtcRemove--${pageName}").prop("disabled", keys.length < 1);
|
|
|
|
$("#btnRemove--${pageName}").prop("disabled", keys.length < 1);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// 개별총정보 dialog
|
|
|
|
|
|
|
|
${pageName}Control.getInfo = (crdnId) => {
|
|
|
|
|
|
|
|
if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let params = {
|
|
|
|
|
|
|
|
callControlName : "${pageName}Control"
|
|
|
|
|
|
|
|
, callPurpose : "view"
|
|
|
|
|
|
|
|
, crdnId : crdnId
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
|
|
|
url : ${pageName}Control.urls.getInfo
|
|
|
|
|
|
|
|
, data : params
|
|
|
|
|
|
|
|
, success : resp => {
|
|
|
|
|
|
|
|
dialog.open({
|
|
|
|
|
|
|
|
id : "totalInfoMainDialog"
|
|
|
|
|
|
|
|
, title : "개별총정보"
|
|
|
|
|
|
|
|
, content : resp
|
|
|
|
|
|
|
|
, size : "xxl"
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 삭제 callback
|
|
|
|
// 삭제 callback
|
|
|
|
${pageName}Control.onRemove = (selected, resp) => {
|
|
|
|
${pageName}Control.onRemove = (selected, resp) => {
|
|
|
|
let taskSeCd = $("#taskSeCd--${pageName}").val();
|
|
|
|
let taskSeCd = $("#taskSeCd--${pageName}").val();
|
|
|
@ -257,10 +258,10 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
*
|
|
|
|
* DataTables 이벤트
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// DataTables에 click, dbclick 이벤트
|
|
|
|
// DataTables에 click, dbclick 이벤트
|
|
|
|
renderList${pageName} = () => {
|
|
|
|
renderList${pageName} = (totalSize) => {
|
|
|
|
let ${infoPrefix}List = ${pageName}Control.dataset;
|
|
|
|
let ${infoPrefix}List = ${pageName}Control.dataset;
|
|
|
|
let empty = ${infoPrefix}List.empty;
|
|
|
|
let empty = ${infoPrefix}List.empty;
|
|
|
|
|
|
|
|
|
|
|
@ -270,16 +271,105 @@
|
|
|
|
document.getElementById("${infoPrefix}Row--${pageName}").innerHTML, <%-- from template#${infoPrefix}Row --%>
|
|
|
|
document.getElementById("${infoPrefix}Row--${pageName}").innerHTML, <%-- from template#${infoPrefix}Row --%>
|
|
|
|
(str, dataItem) => str
|
|
|
|
(str, dataItem) => str
|
|
|
|
.replace(/{onclick}/gi, "${pageName}Control.setCurrent('" + dataItem.getValue("SNDNG_DTL_ID") + "');")
|
|
|
|
.replace(/{onclick}/gi, "${pageName}Control.setCurrent('" + dataItem.getValue("SNDNG_DTL_ID") + "');")
|
|
|
|
.replace(/{ondblclick}/gi, "${pageName}Control.getInfo('" + dataItem.getValue("CRDN_ID") + "');")
|
|
|
|
.replace(/{ondblclick}/gi, "getTotalInfo${pageName}('" + dataItem.getValue("CRDN_ID") + "');")
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
$("#tbody--${pageName}").html(trs.join());
|
|
|
|
let noMore = (totalSize == ${infoPrefix}List.length);
|
|
|
|
$("th input[type='checkbox']").prop("checked", false);
|
|
|
|
let initScroll = (${pageName}Control.query.pageNum < 2) && (${pageName}Control.untilPageNum == 0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#table-responsive--${pageName}")[0].changeContent(trs.join(), initScroll, noMore);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (${pageName}Control.untilPageNum != 0) {
|
|
|
|
|
|
|
|
${pageName}Control.query.fetchSize = ${pageName}Control.defaultFetchSize;
|
|
|
|
|
|
|
|
${pageName}Control.query.pageNum = ${pageName}Control.untilPageNum;
|
|
|
|
|
|
|
|
${pageName}Control.untilPageNum = 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//보안모드
|
|
|
|
//보안모드
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables에 스크롤이 맨 밑으로 이동했을 때 이벤트
|
|
|
|
|
|
|
|
scrollDataList${pageName} = () => {
|
|
|
|
|
|
|
|
${pageName}Control.tableRenderComplete = false; // dataTables 에 자료 추가 false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
${pageName}Control.load(${pageName}Control.query.pageNum + 1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
|
|
|
* 사용자 함수(function)
|
|
|
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
// 개별총정보 dialog
|
|
|
|
|
|
|
|
getTotalInfo${pageName} = (crdnId) => {
|
|
|
|
|
|
|
|
if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let params = {
|
|
|
|
|
|
|
|
callControlName : "${pageName}Control"
|
|
|
|
|
|
|
|
, callPurpose : "view"
|
|
|
|
|
|
|
|
, sggCd : $("#sggCd--${pageName}").val()
|
|
|
|
|
|
|
|
, taskSeCd : $("#taskSeCd--${pageName}").val()
|
|
|
|
|
|
|
|
, crdnId : crdnId
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
|
|
|
url : wctx.url("/" + params.taskSeCd + "/sprt/sprt02/010/main.do")
|
|
|
|
|
|
|
|
, data : params
|
|
|
|
|
|
|
|
, success : resp => {
|
|
|
|
|
|
|
|
dialog.open({
|
|
|
|
|
|
|
|
id : "totalInfoMainDialog"
|
|
|
|
|
|
|
|
, title : "개별총정보"
|
|
|
|
|
|
|
|
, content : resp
|
|
|
|
|
|
|
|
, size : "xxl"
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 검색 자료 재조회
|
|
|
|
|
|
|
|
refreshList${pageName} = () => {
|
|
|
|
|
|
|
|
${pageName}Control.untilPageNum = ${pageName}Control.query.pageNum;
|
|
|
|
|
|
|
|
${pageName}Control.query.fetchSize = ${pageName}Control.defaultFetchSize * ${pageName}Control.query.pageNum;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
${pageName}Control.load(1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
|
|
|
* 버튼 clickEvent
|
|
|
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
// 엑셀 버튼 이벤트
|
|
|
|
|
|
|
|
fnExcel${pageName} = () => {
|
|
|
|
|
|
|
|
if (${pageName}Control.dataset.empty) {
|
|
|
|
|
|
|
|
dialog.alert({
|
|
|
|
|
|
|
|
content : "검색된 자료가 없습니다."
|
|
|
|
|
|
|
|
, onOK : () => { }
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables(그리드)
|
|
|
|
|
|
|
|
let cellDefs = getCellDefs($("#theadTr--${pageName} th").not(".dummy-th")
|
|
|
|
|
|
|
|
, $($("#${infoPrefix}Row--${pageName}")[0].content).find("td").not(".dummy-td"));
|
|
|
|
|
|
|
|
${pageName}Control.query.cellDefs = cellDefs;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
${pageName}Control.download();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 한글파일 출력 버튼 이벤트
|
|
|
|
|
|
|
|
fnHwpPrint${pageName} = () => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 공시송달 삭제 버튼 이벤트
|
|
|
|
|
|
|
|
fnRemove${pageName} = () => {
|
|
|
|
|
|
|
|
dialog.alert({
|
|
|
|
|
|
|
|
content : "공시송달 내역에서 선택한 정보를 삭제하시겠습니까?"
|
|
|
|
|
|
|
|
, onOK : () => {
|
|
|
|
|
|
|
|
${pageName}Control.remove();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* 초기 셋팅
|
|
|
|
* 초기 셋팅
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
@ -300,50 +390,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables width 변경 조정
|
|
|
|
// DataTables width 변경 조정
|
|
|
|
$("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} );
|
|
|
|
$("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} );
|
|
|
|
}
|
|
|
|
|
|
|
|
// URL 설정
|
|
|
|
|
|
|
|
setURL${pageName} = (taskSeCd) => {
|
|
|
|
|
|
|
|
${pageName}Control.urls.remove = wctx.url("/" + taskSeCd + ${pageName}PrefixUrl + "/250/remove.do"); // 삭제
|
|
|
|
|
|
|
|
${pageName}Control.urls.getInfo = wctx.url("/" + taskSeCd + "/sprt/sprt02/010/main.do"); // 개별총정보
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
// DataTables 스크롤 이벤트 생성
|
|
|
|
* 버튼 clickEvent
|
|
|
|
fnMakeScrollableTable($("#table-responsive--${pageName}")[0], scrollDataList${pageName});
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
// 엑셀 버튼 이벤트
|
|
|
|
|
|
|
|
fnExcel${pageName} = () => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables 스크롤을 위해서 다이얼로그 화면이 생성된 후 Dataset을 설정한다.
|
|
|
|
|
|
|
|
$("#${infoPrefix}Dialog").on("shown.bs.modal", function (e) {
|
|
|
|
|
|
|
|
${pageName}Control.setData({
|
|
|
|
|
|
|
|
${infoPrefix}List : ${svbtcDtlList}
|
|
|
|
|
|
|
|
, ${infoPrefix}Start : ${svbtcDtlStart}
|
|
|
|
|
|
|
|
, ${infoPrefix}Fetch : ${svbtcDtlFetch}
|
|
|
|
|
|
|
|
, ${infoPrefix}Total : ${svbtcDtlTotal}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 공시송달 삭제 버튼 이벤트
|
|
|
|
// 기본 데이터 설정
|
|
|
|
fnSvbtcRemove${pageName} = () => {
|
|
|
|
initData${pageName} = () => {
|
|
|
|
dialog.alert({
|
|
|
|
let sggCd = ${pageName}Query.sggCd;
|
|
|
|
content : "공시송달 내역에서 선택한 정보를 삭제하시겠습니까?"
|
|
|
|
let taskSeCd = ${pageName}Query.taskSeCd;
|
|
|
|
, onOK : () => {
|
|
|
|
|
|
|
|
${pageName}Control.remove();
|
|
|
|
$("#sggCd--${pageName}").val(sggCd); // 시군구 코드
|
|
|
|
|
|
|
|
$("#taskSeCd--${pageName}").val(taskSeCd); // 업무 구분 코드
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 검색 조건 설정
|
|
|
|
|
|
|
|
${pageName}Control.defaultFetchSize = ${pageName}Query.fetchSize;
|
|
|
|
|
|
|
|
${pageName}Control.query = ${pageName}Query;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// URL 설정
|
|
|
|
|
|
|
|
setURL${pageName}(taskSeCd);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// 업무구분에 따른 url 설정
|
|
|
|
|
|
|
|
setURL${pageName} = (taskSeCd) => {
|
|
|
|
|
|
|
|
${pageName}Control.urls.load = wctx.url("/" + taskSeCd + ${pageName}PrefixUrl + "/250/list.do"); // 조회
|
|
|
|
|
|
|
|
${pageName}Control.urls.remove = wctx.url("/" + taskSeCd + ${pageName}PrefixUrl + "/250/remove.do"); // 삭제
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* script 진입
|
|
|
|
* script 진입
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
$(document).ready(function() {
|
|
|
|
$(document).ready(function() {
|
|
|
|
// 기본 데이터
|
|
|
|
|
|
|
|
$("#sggCd--${pageName}").val("${sggCd}"); // 시군구 코드
|
|
|
|
|
|
|
|
$("#taskSeCd--${pageName}").val("${taskSeCd}"); // 업무 구분 코드
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 보안모드
|
|
|
|
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 이벤트 설정
|
|
|
|
// 이벤트 설정
|
|
|
|
setEvent${pageName}();
|
|
|
|
setEvent${pageName}();
|
|
|
|
|
|
|
|
|
|
|
|
// URL 설정
|
|
|
|
// 기본 데이터 설정
|
|
|
|
setURL${pageName}("${taskSeCd}");
|
|
|
|
initData${pageName}();
|
|
|
|
|
|
|
|
|
|
|
|
// Dataset 셋팅 - 화면이 열리면서 조회하는 경우 addData 하여 자료를 추가
|
|
|
|
// 보안모드
|
|
|
|
${pageName}Control.addData(${svbtcDtl});
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|