|
|
|
@ -4,141 +4,144 @@
|
|
|
|
|
<c:set var="prefixName" scope="request">고지서 발송 현황 상세 정보</c:set>
|
|
|
|
|
|
|
|
|
|
<!-- inner page html -->
|
|
|
|
|
<div class="content-wrapper">
|
|
|
|
|
<div class="content-pop">
|
|
|
|
|
<!-- Content -->
|
|
|
|
|
<div class="container flex-grow-1 px-0">
|
|
|
|
|
|
|
|
|
|
<!-- Page Body -->
|
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="wrapper-pop">
|
|
|
|
|
<!-- 입력 영역 -->
|
|
|
|
|
<form id="frmEdit--${pageName}" name="frmEdit">
|
|
|
|
|
<input type="hidden" id="sndngId--${pageName}" name="sndngId" />
|
|
|
|
|
</form> <!-- /입력 영역 -->
|
|
|
|
|
|
|
|
|
|
<!-- 업무 버튼 및 건수 표시 -->
|
|
|
|
|
<div>
|
|
|
|
|
<span class="container-page-btn">
|
|
|
|
|
<!-- 건수, 페이지 표시 -->
|
|
|
|
|
<div class="d-flex flex-row justify-content-between">
|
|
|
|
|
<span class="dataTables_info" id="paging--${pageName}PagingInfo" role="status" aria-live="polite"></span>
|
|
|
|
|
<ul class="pagination pagination-primary" id="paging--${pageName}">
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
|
<!-- 업무 버튼 -->
|
|
|
|
|
<button type="button" class="btn btn-excel w-px-120" id="btnExcel--${pageName}" title="엑셀 저장">
|
|
|
|
|
엑셀 저장
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" id="btnPrintNhtOutsourcing--${pageName}" title="파일 출력">
|
|
|
|
|
파일 출력
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" id="btnPrintNhtPdf01--${pageName}" title="고지서 출력(PDF-A4)">
|
|
|
|
|
고지서 출력(PDF-A4)
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" id="btnPrintNhtPdf02--${pageName}" title="고지서 출력(PDF-Letter)">
|
|
|
|
|
고지서서 출력(PDF-Letter)
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" id="btnRemoveDpcnData--${pageName}" title="중복자료 삭제">
|
|
|
|
|
중복자료 삭제
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" id="btnCreateSndbk--${pageName}" title="반송 등록">
|
|
|
|
|
반송 확인
|
|
|
|
|
</button>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
</div> <!-- / 업무 버튼 및 건수 표시 -->
|
|
|
|
|
|
|
|
|
|
<!-- DataTables(그리드) -->
|
|
|
|
|
<div class="card-datatable text-nowrap">
|
|
|
|
|
<div class="dataTables_wrapper dt-bootstrap5 no-footer" id="DataTables_Table_0_wrapper--${pageName}">
|
|
|
|
|
<div class="table-responsive ox-scroll oy-scroll h-px-500" id="table-responsive--${pageName}">
|
|
|
|
|
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--${pageName}" aria-describedby="DataTables_Table_0_info">
|
|
|
|
|
<thead class="sticky-thead">
|
|
|
|
|
<tr id="theadTr--${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: 72px;">No.</th>
|
|
|
|
|
<th class="cmn" style="width: 120px;">발송상태</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: 200px;">성명</th>
|
|
|
|
|
<th class="cmn" style="width: 100px;">우편번호</th>
|
|
|
|
|
<th class="cmn" style="width: 280px;">주소</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: 160px;">차량번호</th>
|
|
|
|
|
<th class="cmn" style="width: 160px;">단속법정동</th>
|
|
|
|
|
<th class="cmn" style="width: 280px;">단속장소</th>
|
|
|
|
|
<th class="cmn" style="width: 100px;">회계연도</th>
|
|
|
|
|
<th class="cmn" style="width: 100px;">부과번호</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: 140px;">등록사용자</th>
|
|
|
|
|
<th class="cmn" style="width: 180px;">수정일시</th>
|
|
|
|
|
<th class="cmn" style="width: 140px;">수정사용자</th>
|
|
|
|
|
<th class="cmn dummy-th"></th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody id="tbody--${pageName}">
|
|
|
|
|
</tbody>
|
|
|
|
|
<template id="${infoPrefix}Row--${pageName}">
|
|
|
|
|
<tr data-key="{SNDNG_DTL_ID}">
|
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td>
|
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{SNDNG_DTL_STTS_NM}</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_END_YMD}</td>
|
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RCPN_NM}</td>
|
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RCPN_ZIP}</td>
|
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RCPN_ADDR}</td>
|
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RCPN_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-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_PLC}</td>
|
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{FYR}</td>
|
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{LEVY_NO}</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-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-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}">{MDFCN_DT}</td>
|
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{MDFR_NM}</td>
|
|
|
|
|
<td class="cmn dummy-td"></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</template>
|
|
|
|
|
<template id="${infoPrefix}NotFound--${pageName}">
|
|
|
|
|
<tr class="odd">
|
|
|
|
|
<td valign="top" colspan="31" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</template>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 입력 영역 -->
|
|
|
|
|
<form id="frmEdit--${pageName}" name="frmEdit">
|
|
|
|
|
<input type="hidden" id="sndngId--${pageName}" name="sndngId" data-map="SNDNG_ID" />
|
|
|
|
|
</form>
|
|
|
|
|
<!-- 입력 영역 -->
|
|
|
|
|
|
|
|
|
|
<!-- 업무 버튼 및 건수 표시 -->
|
|
|
|
|
<div>
|
|
|
|
|
<span class="container-page-btn">
|
|
|
|
|
<!-- 건수, 페이지 표시 -->
|
|
|
|
|
<div class="d-flex flex-row justify-content-between">
|
|
|
|
|
<span class="dataTables_info" id="paging--${pageName}PagingInfo" role="status" aria-live="polite"></span>
|
|
|
|
|
<ul class="pagination pagination-primary" id="paging--${pageName}">
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 업무 버튼 -->
|
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
|
<button type="button" class="btn btn-excel w-px-120" id="btnExcel--${pageName}" title="엑셀 저장">
|
|
|
|
|
엑셀 저장
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" id="btnPrintNhtPdf01--${pageName}" title="고지서 출력(PDF-A4)">
|
|
|
|
|
고지서 출력(PDF-A4)
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" id="btnPrintNhtPdf02--${pageName}" title="고지서 출력(PDF-Letter)">
|
|
|
|
|
고지서 출력(PDF-Letter)
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" id="btnPrintNhtOutsourcing--${pageName}" title="고지서 출력(외주파일)">
|
|
|
|
|
고지서 출력(외주파일)
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" id="btnRemoveDpcnData--${pageName}" title="중복자료 삭제">
|
|
|
|
|
중복자료 삭제
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" id="btnCreateSndbk--${pageName}" title="반송 등록">
|
|
|
|
|
반송 확인
|
|
|
|
|
</button>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
</div> <!-- 업무 버튼 및 건수 표시 -->
|
|
|
|
|
|
|
|
|
|
<!-- DataTables(그리드) -->
|
|
|
|
|
<div class="card-datatable text-nowrap">
|
|
|
|
|
<div class="dataTables_wrapper dt-bootstrap5 no-footer" id="DataTables_Table_0_wrapper--${pageName}">
|
|
|
|
|
<div class="table-responsive ox-scroll oy-scroll h-px-500" id="table-responsive--${pageName}">
|
|
|
|
|
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--${pageName}" aria-describedby="DataTables_Table_0_info">
|
|
|
|
|
<thead class="sticky-thead">
|
|
|
|
|
<tr id="theadTr--${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: 72px;">No.</th>
|
|
|
|
|
<th class="cmn" style="width: 120px;">발송상태</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: 200px;">성명</th>
|
|
|
|
|
<th class="cmn" style="width: 100px;">우편번호</th>
|
|
|
|
|
<th class="cmn" style="width: 280px;">주소</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: 160px;">차량번호</th>
|
|
|
|
|
<th class="cmn" style="width: 160px;">단속법정동</th>
|
|
|
|
|
<th class="cmn" style="width: 280px;">단속장소</th>
|
|
|
|
|
<th class="cmn" style="width: 100px;">회계연도</th>
|
|
|
|
|
<th class="cmn" style="width: 100px;">부과번호</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: 140px;">등록사용자</th>
|
|
|
|
|
<th class="cmn" style="width: 180px;">수정일시</th>
|
|
|
|
|
<th class="cmn" style="width: 140px;">수정사용자</th>
|
|
|
|
|
<th class="cmn dummy-th"></th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody id="tbody--${pageName}">
|
|
|
|
|
</tbody>
|
|
|
|
|
<template id="${infoPrefix}Row--${pageName}">
|
|
|
|
|
<tr data-key="{SNDNG_DTL_ID}">
|
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td>
|
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{SNDNG_DTL_STTS_NM}</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_END_YMD}</td>
|
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RCPN_NM}</td>
|
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RCPN_ZIP}</td>
|
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RCPN_ADDR}</td>
|
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RCPN_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-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_PLC}</td>
|
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{FYR}</td>
|
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{LEVY_NO}</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-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-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}">{MDFCN_DT}</td>
|
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{MDFR_NM}</td>
|
|
|
|
|
<td class="cmn dummy-td"></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</template>
|
|
|
|
|
<template id="${infoPrefix}NotFound--${pageName}">
|
|
|
|
|
<tr class="odd">
|
|
|
|
|
<td valign="top" colspan="31" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</template>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- / DataTables(그리드) -->
|
|
|
|
|
</div> <!-- <div class="wrapper-list"> -->
|
|
|
|
|
</div> <!-- DataTables(그리드) -->
|
|
|
|
|
</div> <!-- <div class="card"> -->
|
|
|
|
|
</div> <!-- / Content <div class="container flex-grow-1 px-0"> -->
|
|
|
|
|
<!-- Page Body -->
|
|
|
|
|
|
|
|
|
|
<span id="tempArea--${pageName}" hidden></span>
|
|
|
|
|
</div> <!-- <div class="container flex-grow-1 px-0"> -->
|
|
|
|
|
<!-- Content -->
|
|
|
|
|
</div>
|
|
|
|
|
<!-- / inner page html <div class="content-wrapper"> -->
|
|
|
|
|
|
|
|
|
@ -153,10 +156,8 @@
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
// pageObject
|
|
|
|
|
var $P = pageObject["${pageName}"];
|
|
|
|
|
let $P = pageObject["${pageName}"];
|
|
|
|
|
|
|
|
|
|
// URL
|
|
|
|
|
$P.PrefixUrl = "/sndb/sndb01";
|
|
|
|
|
// infoDialog 호출 용도(view 조회(편집불가), create 등록, update 수정)
|
|
|
|
|
$P.callPurpose = "${callPurpose}";
|
|
|
|
|
// FormFields
|
|
|
|
@ -168,28 +169,30 @@
|
|
|
|
|
* DatasetControl
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
$P.control = new DatasetControl({
|
|
|
|
|
prefix : "nhtSndngDtl"
|
|
|
|
|
, prefixName : "발송 상세"
|
|
|
|
|
, keymapper : info => info ? info.SNDNG_DTL_ID : ""
|
|
|
|
|
, dataGetter : obj => obj.${infoPrefix}List
|
|
|
|
|
, appendData : true
|
|
|
|
|
, formats : {
|
|
|
|
|
SNDNG_YMD : dateFormat
|
|
|
|
|
, SNDNG_END_YMD : dateFormat
|
|
|
|
|
, DLVR_YMD : dateFormat
|
|
|
|
|
, LEVY_YMD : dateFormat
|
|
|
|
|
, DUDT_YMD : dateFormat
|
|
|
|
|
, FFNLG_AMT : numberFormat
|
|
|
|
|
, SUM_AMT : numberFormat
|
|
|
|
|
, REG_DT : datetimeFormat
|
|
|
|
|
, MDFCN_DT : datetimeFormat
|
|
|
|
|
prefix: "nhtSndngDtl"
|
|
|
|
|
, prefixName: "고지서 발송 상세"
|
|
|
|
|
, keymapper: info => info ? info.SNDNG_DTL_ID : ""
|
|
|
|
|
, dataGetter: obj => obj.${infoPrefix}List
|
|
|
|
|
, appendData: true
|
|
|
|
|
, formats: {
|
|
|
|
|
SNDNG_YMD: dateFormat
|
|
|
|
|
, SNDNG_END_YMD: dateFormat
|
|
|
|
|
, DLVR_YMD: dateFormat
|
|
|
|
|
, LEVY_YMD: dateFormat
|
|
|
|
|
, DUDT_YMD: dateFormat
|
|
|
|
|
, FFNLG_AMT: numberFormat
|
|
|
|
|
, PCPTAX: numberFormat
|
|
|
|
|
, ADAMT: numberFormat
|
|
|
|
|
, SUM_AMT: numberFormat
|
|
|
|
|
, REG_DT: datetimeFormat
|
|
|
|
|
, MDFCN_DT: datetimeFormat
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
// $P.control 설정
|
|
|
|
|
$P.control.defaultFetchSize = FETCH_XS; // 1 페이지당 조회되는 자료 건수 index.jsp에서 확인 FETCH_XS = 30
|
|
|
|
|
$P.control.untilPageNum = 0; // 현재 페이지 번호
|
|
|
|
|
$P.control.tableRenderComplete = false; // dataTables 에 자료 추가 완료 여부
|
|
|
|
|
$P.control.defaultFetchSize = FETCH_XS; // 1 페이지당 조회되는 자료 건수 index.jsp에서 확인 FETCH_XS = 30
|
|
|
|
|
$P.control.untilPageNum = 0; // 현재 페이지 번호
|
|
|
|
|
$P.control.beforeCurrent = null;
|
|
|
|
|
$P.control.tableRenderComplete = false; // dataTables 에 자료 추가 완료 여부
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* DatasetControl 이벤트
|
|
|
|
@ -199,15 +202,15 @@
|
|
|
|
|
$P.renderList(obj.${infoPrefix}Total);
|
|
|
|
|
|
|
|
|
|
$("#paging--${pageName}").setPagingInfo({
|
|
|
|
|
list : $P.control.dataset
|
|
|
|
|
, prefix : "paging--${pageName}"
|
|
|
|
|
, start : obj.${infoPrefix}Start
|
|
|
|
|
, totalSize : obj.${infoPrefix}Total
|
|
|
|
|
, fetchSize : obj.${infoPrefix}Fetch
|
|
|
|
|
, func : "pageObject['${pageName}'].control.load({index})"
|
|
|
|
|
list: $P.control.dataset
|
|
|
|
|
, prefix: "paging--${pageName}"
|
|
|
|
|
, start: obj.${infoPrefix}Start
|
|
|
|
|
, totalSize: obj.${infoPrefix}Total
|
|
|
|
|
, fetchSize: obj.${infoPrefix}Fetch
|
|
|
|
|
, func: "pageObject['${pageName}'].control.load({index})"
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$P.control.tableRenderComplete = true; // dataTables 에 자료 추가 완료
|
|
|
|
|
$P.control.tableRenderComplete = true; // dataTables 에 자료 추가 완료
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 현재 선택 자료 변경 이벤트
|
|
|
|
@ -253,43 +256,45 @@
|
|
|
|
|
|
|
|
|
|
// DataTables에 스크롤이 맨 밑으로 이동했을 때 이벤트
|
|
|
|
|
$P.scrollDataList = () => {
|
|
|
|
|
$P.control.tableRenderComplete = false; // dataTables 에 자료 추가 false
|
|
|
|
|
$P.control.tableRenderComplete = false; // dataTables 에 자료 추가 false
|
|
|
|
|
|
|
|
|
|
$P.control.load($P.control.query.pageNum + 1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* 사용자 함수(function)
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
// 개별총정보 dialog
|
|
|
|
|
// DataTables에 더블 클릭시 개별총정보 dialog
|
|
|
|
|
$P.getTotalInfo = (crdnId) => {
|
|
|
|
|
if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return;
|
|
|
|
|
|
|
|
|
|
let params = {
|
|
|
|
|
callControlName : "pageObject['${pageName}'].control"
|
|
|
|
|
, callPurpose : "view"
|
|
|
|
|
, crdnId : crdnId
|
|
|
|
|
, sggCd : $P.control.dataset.getValue("SGG_CD")
|
|
|
|
|
, taskSeCd : $P.control.dataset.getValue("TASK_SE_CD")
|
|
|
|
|
callControlName: "pageObject['${pageName}'].control"
|
|
|
|
|
, sggCd: $P.control.dataset.getValue("SGG_CD")
|
|
|
|
|
, taskSeCd: $P.control.dataset.getValue("TASK_SE_CD")
|
|
|
|
|
, crdnId: crdnId
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
url : wctx.url("/" + params.taskSeCd + "/sprt/sprt02/010/main.do")
|
|
|
|
|
, data : params
|
|
|
|
|
, success : resp => {
|
|
|
|
|
url: wctx.url("/" + params.taskSeCd + "/sprt/sprt02/010/main.do")
|
|
|
|
|
, data: params
|
|
|
|
|
, success: resp => {
|
|
|
|
|
dialog.open({
|
|
|
|
|
id : "totalInfoMainDialog"
|
|
|
|
|
, title : "개별총정보"
|
|
|
|
|
, content : resp
|
|
|
|
|
, size : "xxl"
|
|
|
|
|
id: "totalInfoMainDialog"
|
|
|
|
|
, title: "개별총정보"
|
|
|
|
|
, content: resp
|
|
|
|
|
, size: "xxl"
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 고지서 출력
|
|
|
|
|
$P.print = (params) => {
|
|
|
|
|
if (!params) return;
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* 사용자 함수(function)
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
// 검색 자료 재조회
|
|
|
|
|
$P.fnRefreshList = () => {
|
|
|
|
|
$P.control.untilPageNum = $P.control.query.pageNum;
|
|
|
|
|
$P.control.query.fetchSize = $P.control.defaultFetchSize * $P.control.query.pageNum;
|
|
|
|
|
|
|
|
|
|
$P.control.load(1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 반송 확인(종적결과 등록)
|
|
|
|
@ -297,15 +302,15 @@
|
|
|
|
|
if (!params) return;
|
|
|
|
|
|
|
|
|
|
ajax.post({
|
|
|
|
|
url: wctx.url("/" + params.taskSeCd + "${infoPrefixUrl}" + "/210/createList.do")
|
|
|
|
|
url: wctx.url("/" + params.taskSeCd + "${infoPrefixUrl}" + "/230/createSndbkList.do")
|
|
|
|
|
, data: params || {}
|
|
|
|
|
, success: resp => {
|
|
|
|
|
// S 또는 F 를 버튼 title 로 변경하여 메시지 출력
|
|
|
|
|
let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, $("#btnCreateSndbk--${pageName}").attr("title"));
|
|
|
|
|
let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, params.title);
|
|
|
|
|
|
|
|
|
|
dialog.alert({
|
|
|
|
|
content: showMessage
|
|
|
|
|
, onOK: () => { }
|
|
|
|
|
, init: () => { setDialogZindex(); }
|
|
|
|
|
, onOK: () => { $P.fnRefreshList(); } // 자료 재조회
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
@ -318,51 +323,56 @@
|
|
|
|
|
$P.fnExcel = () => {
|
|
|
|
|
if ($P.control.dataset.empty) {
|
|
|
|
|
dialog.alert({
|
|
|
|
|
content : "검색된 자료가 없습니다."
|
|
|
|
|
, onOK : () => { }
|
|
|
|
|
content: "검색된 자료가 없습니다."
|
|
|
|
|
, init: () => { setDialogZindex(); }
|
|
|
|
|
, onOK: () => { }
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DataTables(그리드)
|
|
|
|
|
let cellDefs = getCellDefs($("#theadTr--${pageName} th").not(".dummy-th")
|
|
|
|
|
, $($("#${infoPrefix}Row--${pageName}")[0].content).find("td").not(".dummy-td"));
|
|
|
|
|
let cellDefs = getCellDefs($("#theadTr--${pageName} th").not(".dummy-th").not(":eq(0)")
|
|
|
|
|
, $($("#${infoPrefix}Row--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)"));
|
|
|
|
|
$P.control.query.cellDefs = cellDefs;
|
|
|
|
|
|
|
|
|
|
$P.control.download();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 파일 출력 및 고지서출력
|
|
|
|
|
// 고지서 출력 버튼 이벤트
|
|
|
|
|
$P.fnMakeFileNht = (title, fileType, paper) => {
|
|
|
|
|
//
|
|
|
|
|
// validate 확인
|
|
|
|
|
if (!customValidate($("#frmEdit--${pageName}").find("input, select, textarea"))) return;
|
|
|
|
|
|
|
|
|
|
let submitParam = {
|
|
|
|
|
sggCd: $P.control.dataset.getValue("SGG_CD") // 시군구 코드
|
|
|
|
|
, taskSeCd: $P.control.dataset.getValue("TASK_SE_CD") // 업무 구분 코드
|
|
|
|
|
, sndngId: $P.control.dataset.getValue("SNDNG_ID") // 발송 ID
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
let url = "";
|
|
|
|
|
let fileTypeName = "";
|
|
|
|
|
|
|
|
|
|
if (fileType == "pdf") {
|
|
|
|
|
url = wctx.url("/sprt/sprt01/150/makeNhtPdf.do");
|
|
|
|
|
url = wctx.url("/" + submitParam.taskSeCd + "${infoPrefixUrl}" + "/120/makeNhtPdf.do");
|
|
|
|
|
fileTypeName = "PDF 파일";
|
|
|
|
|
} else if (fileType == "outsourcing") {
|
|
|
|
|
url = wctx.url("/sprt/sprt01/150/makeNhtOutsourcing.do");
|
|
|
|
|
url = wctx.url("/" + submitParam.taskSeCd + "${infoPrefixUrl}" + "/120/makeNhtOutsourcing.do");
|
|
|
|
|
fileTypeName = "외주 요청 파일";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let params = {
|
|
|
|
|
crdnIds : $P.control.dataset.getValue("CRDN_ID") // 단속 ID
|
|
|
|
|
, taskSeCd : $P.control.dataset.getValue("TASK_SE_CD") // 업무 구분
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
let inBrowser = false;
|
|
|
|
|
|
|
|
|
|
let inBrowser = false;
|
|
|
|
|
if (fileType == "pdf") {
|
|
|
|
|
params.paperSeCd = paper;
|
|
|
|
|
submitParam.paperSeCd = paper;
|
|
|
|
|
inBrowser = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (inBrowser) {
|
|
|
|
|
let parameter = toQuery(params);
|
|
|
|
|
let filenameInHeader = "";
|
|
|
|
|
if (inBrowser) {
|
|
|
|
|
var parameter = toQuery(submitParam);
|
|
|
|
|
var filenameInHeader = "";
|
|
|
|
|
|
|
|
|
|
fetch(url + "?" + parameter)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
let header = response.headers.get('Content-Disposition');
|
|
|
|
|
var header = response.headers.get('Content-Disposition');
|
|
|
|
|
if(!header){
|
|
|
|
|
response.json().then((responseJson)=>{
|
|
|
|
|
dialog.alert({
|
|
|
|
@ -374,9 +384,8 @@
|
|
|
|
|
});
|
|
|
|
|
new Error("");
|
|
|
|
|
}
|
|
|
|
|
let parts = header.split(';');
|
|
|
|
|
filenameInHeader = decodeURIComponent(parts[1].split('=')[1]);
|
|
|
|
|
|
|
|
|
|
var parts = header.split(';');
|
|
|
|
|
filenameInHeader = decodeURIComponent(parts[1].split('=')[1]);
|
|
|
|
|
return response.blob();
|
|
|
|
|
})
|
|
|
|
|
.then((blob) => {
|
|
|
|
@ -384,7 +393,7 @@
|
|
|
|
|
})
|
|
|
|
|
.catch(()=>{});
|
|
|
|
|
} else {
|
|
|
|
|
let parameter = toQuery(params);
|
|
|
|
|
var parameter = toQuery(submitParam);
|
|
|
|
|
document.location.href = url + "?" + parameter;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -400,9 +409,13 @@
|
|
|
|
|
if (!customValidate($("#frmEdit--${pageName}").find("input, select, textarea"))) return;
|
|
|
|
|
|
|
|
|
|
dialog.alert({
|
|
|
|
|
content : "종적 결과를 확인하시겠습니까?"
|
|
|
|
|
, onOK : () => {
|
|
|
|
|
$P.createSndbk($P.mainQuery);
|
|
|
|
|
content: "종적결과를 확인하시겠습니까?"
|
|
|
|
|
, onOK: () => {
|
|
|
|
|
// 파리미터 설정
|
|
|
|
|
let params = $P.mainQuery; // mainQuery
|
|
|
|
|
params.title = title; // 타이틀
|
|
|
|
|
|
|
|
|
|
$P.createSndbk(params);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
@ -415,25 +428,21 @@
|
|
|
|
|
// 기본 버튼 이벤트
|
|
|
|
|
$("#btnExcel--${pageName}").on("click", () => $P.fnExcel()); // 엑셀
|
|
|
|
|
|
|
|
|
|
// 파일 출력 버튼 이벤트
|
|
|
|
|
$("#btnPrintNhtOutsourcing--${pageName}").on("click", function() {
|
|
|
|
|
$P.fnMakeFileNht($(this).attr("title"), "outsourcing")
|
|
|
|
|
});
|
|
|
|
|
// 고지서 출력 버튼 이벤트
|
|
|
|
|
// 업무 버튼 이벤트
|
|
|
|
|
$("#btnPrintNhtPdf01--${pageName}").on("click", function() {
|
|
|
|
|
$P.fnMakeFileNht($(this).attr("title"), "pdf", "01");
|
|
|
|
|
$P.fnMakeFileNht($(this).attr("title"), "pdf", "01"); // 고지서 출력(PDF-A4)
|
|
|
|
|
});
|
|
|
|
|
// 고지서 출력 버튼 이벤트
|
|
|
|
|
$("#btnPrintNhtPdf02--${pageName}").on("click", function() {
|
|
|
|
|
$P.fnMakeFileNht($(this).attr("title"), "pdf", "01");
|
|
|
|
|
$P.fnMakeFileNht($(this).attr("title"), "pdf", "01"); // 고지서 출력(PDF-Letter)
|
|
|
|
|
});
|
|
|
|
|
$("#btnPrintNhtOutsourcing--${pageName}").on("click", function() {
|
|
|
|
|
$P.fnMakeFileNht($(this).attr("title"), "outsourcing") // 고지서 출력(외주파일)
|
|
|
|
|
});
|
|
|
|
|
// 중복자료 삭제 버튼 이벤트
|
|
|
|
|
$("#btnRemoveDpcnData--${pageName}").on("click", function() {
|
|
|
|
|
$P.fnRemoveDpcnData();
|
|
|
|
|
$P.fnRemoveDpcnData($(this).attr("title")); // 중복자료 삭제
|
|
|
|
|
});
|
|
|
|
|
// 반송 등록 버튼 이벤트
|
|
|
|
|
$("#btnCreateSndbk--${pageName}").on("click", function() {
|
|
|
|
|
$P.fnCreateSndbk();
|
|
|
|
|
$P.fnCreateSndbk($(this).attr("title")); // 반송 등록
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// DataTables width 변경 조정
|
|
|
|
@ -443,12 +452,12 @@
|
|
|
|
|
fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList);
|
|
|
|
|
|
|
|
|
|
// DataTables 스크롤을 위해서 다이얼로그 화면이 생성된 후 Dataset을 설정한다.
|
|
|
|
|
$("#${infoPrefix}Dialog").on("shown.bs.modal", function (e) {
|
|
|
|
|
$("#${infoPrefix}Dialog--${openerPageName}").on("shown.bs.modal", function (e) {
|
|
|
|
|
$P.control.setData({
|
|
|
|
|
${infoPrefix}List : ${nhtSndngDtlList}
|
|
|
|
|
, ${infoPrefix}Start : ${nhtSndngDtlStart}
|
|
|
|
|
, ${infoPrefix}Fetch : ${nhtSndngDtlFetch}
|
|
|
|
|
, ${infoPrefix}Total : ${nhtSndngDtlTotal}
|
|
|
|
|
${infoPrefix}List: ${nhtSndngDtlList}
|
|
|
|
|
, ${infoPrefix}Start: ${nhtSndngDtlStart}
|
|
|
|
|
, ${infoPrefix}Fetch: ${nhtSndngDtlFetch}
|
|
|
|
|
, ${infoPrefix}Total: ${nhtSndngDtlTotal}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// 초기 데이터 설정
|
|
|
|
@ -468,15 +477,11 @@
|
|
|
|
|
$("#sndngId--${pageName}").val($P.control.dataset.getValue("SNDNG_ID"));
|
|
|
|
|
|
|
|
|
|
// 검색 조건 설정
|
|
|
|
|
$P.control.defaultFetchSize = $P.mainQuery.fetchSize;
|
|
|
|
|
$P.control.query = $P.mainQuery;
|
|
|
|
|
|
|
|
|
|
// URL 설정
|
|
|
|
|
$P.setURL($P.mainQuery.taskSeCd);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 업무구분에 따른 URL 설정
|
|
|
|
|
$P.setURL = (taskSeCd) => {
|
|
|
|
|
$P.control.urls.load = wctx.url("/" + taskSeCd + $P.PrefixUrl + "/100/list.do"); // 검색
|
|
|
|
|
// 업무구분에 따른 URL 설정
|
|
|
|
|
$P.control.urls.load = wctx.url("/" + $P.mainQuery.taskSeCd + "${infoPrefixUrl}" + "/120/list.do"); // 검색
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|