|
|
@ -13,7 +13,7 @@
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<!-- 상단 버튼 -->
|
|
|
|
<!-- 상단 버튼 -->
|
|
|
|
<div class="container-page-btn">
|
|
|
|
<div class="container-page-btn">
|
|
|
|
<button type="button" class="btn btn-outline-dark" id="btnReset--${pageName}" title="초기화" onclick="fnReset${pageName}();">
|
|
|
|
<button type="button" class="btn btn-outline-dark w-px-120" id="btnReset--${pageName}" title="초기화" onclick="fnResetAndChangeBiz${pageName}();">
|
|
|
|
초기화
|
|
|
|
초기화
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
<span class="container-window-btn-right">
|
|
|
@ -39,7 +39,7 @@
|
|
|
|
<div class="col-12">
|
|
|
|
<div class="col-12">
|
|
|
|
<label class="form-label fw-bold form-search-title text-end">업무구분</label>
|
|
|
|
<label class="form-label fw-bold form-search-title text-end">업무구분</label>
|
|
|
|
<span class="form-search-linebox">
|
|
|
|
<span class="form-search-linebox">
|
|
|
|
<c:forEach items="${FIM054List}" var="item">
|
|
|
|
<c:forEach items="${TaskListForSgg}" var="item">
|
|
|
|
<label>
|
|
|
|
<label>
|
|
|
|
<input type="radio" class="form-check-input" name="taskSeCd" alt="업무구분"
|
|
|
|
<input type="radio" class="form-check-input" name="taskSeCd" alt="업무구분"
|
|
|
|
value="${item.code}" onchange="fnResetAndChangeBiz${pageName}(this.value);">
|
|
|
|
value="${item.code}" onchange="fnResetAndChangeBiz${pageName}(this.value);">
|
|
|
@ -89,11 +89,11 @@
|
|
|
|
<input type="text" class="form-control" id="byOutput--${pageName}" value="동적 검색" readonly />
|
|
|
|
<input type="text" class="form-control" id="byOutput--${pageName}" value="동적 검색" readonly />
|
|
|
|
<input type="hidden" id="mainOption--${pageName}" name="mainOption" />
|
|
|
|
<input type="hidden" id="mainOption--${pageName}" name="mainOption" />
|
|
|
|
<input type="hidden" id="subOption--${pageName}" name="subOption" />
|
|
|
|
<input type="hidden" id="subOption--${pageName}" name="subOption" />
|
|
|
|
<input type="text" class="form-control w-px-300" id="term--${pageName}" name="term" />
|
|
|
|
<input type="text" class="form-control w-px-300" id="term--${pageName}" name="term" autocomplete="off" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 선택등기 표시 -->
|
|
|
|
<!-- 선택등기 표시 -->
|
|
|
|
<div class="col-6 form-check">
|
|
|
|
<div class="col-6 form-check">
|
|
|
|
<input type="checkbox" class="form-check-input" id="schChcRgIndct--${pageName}" name="schChcRgIndct" value="Y" checked />
|
|
|
|
<input type="checkbox" class="form-check-input" id="schChcRgIndct--${pageName}" name="schChcRgIndct" value="Y" />
|
|
|
|
<label class="form-check-label" for="schChcRgIndct--${pageName}">선택등기표시</label>
|
|
|
|
<label class="form-check-label" for="schChcRgIndct--${pageName}">선택등기표시</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 상세 검색조건 버튼 -->
|
|
|
|
<!-- 상세 검색조건 버튼 -->
|
|
|
@ -141,8 +141,7 @@
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div> <!-- / 상세 조건 -->
|
|
|
|
<!-- / 상세 조건 -->
|
|
|
|
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
<!-- / 검색 조건 영역 -->
|
|
|
|
<!-- / 검색 조건 영역 -->
|
|
|
|
|
|
|
|
|
|
|
@ -171,31 +170,40 @@
|
|
|
|
<!-- DataTables(그리드) -->
|
|
|
|
<!-- DataTables(그리드) -->
|
|
|
|
<div class="card-datatable text-nowrap">
|
|
|
|
<div class="card-datatable text-nowrap">
|
|
|
|
<div class="dataTables_wrapper dt-bootstrap5 no-footer" id="DataTables_Table_0_wrapper--${pageName}">
|
|
|
|
<div class="dataTables_wrapper dt-bootstrap5 no-footer" id="DataTables_Table_0_wrapper--${pageName}">
|
|
|
|
<div class="table-responsive" id="table-responsive--${pageName}" style="overflow-x:scroll; height:400px; overflow-y:scroll;" >
|
|
|
|
<div class="table-responsive" id="table-responsive--${pageName}" style="overflow-x:scroll; height:460px; overflow-y:scroll;" >
|
|
|
|
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--${pageName}" aria-describedby="DataTables_Table_0_info">
|
|
|
|
<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">
|
|
|
|
<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: 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: 160px;" onclick="searchFromGridTitle('TASK_SE_CD', this.innerText, 'codeValue', 'FIM054');">업무구분</th>
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('TASK_SE_CD', this.innerText, 'codeValue', 'FIM054');">업무구분</th>
|
|
|
|
<th class="cmn" style="width: 140px;">고지번호</th>
|
|
|
|
<th class="cmn" style="width: 140px;">고지번호</th>
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('RG_NO', this.innerText, 'match', 'part');">등기번호</th>
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('RG_NO', this.innerText, 'match', 'part');">등기번호</th>
|
|
|
|
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('DLVR_YMD', this.innerText, 'ymd', '');">배달일자</th>
|
|
|
|
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('DLVR_YMD', this.innerText, 'ymd', '');">배달일자</th>
|
|
|
|
<th class="cmn" style="width: 100px;" onclick="searchFromGridTitle('DLVR_TM', this.innerText, 'time', '');">배달시간</th>
|
|
|
|
<th class="cmn" style="width: 100px;" onclick="searchFromGridTitle('DLVR_TM', this.innerText, 'time', '');">배달시간</th>
|
|
|
|
<th class="cmn" style="width: 200px;" onclick="searchFromGridTitle('UNDLVR_RSN_NM', this.innerText, 'match', 'part');">미배달사유</th>
|
|
|
|
<th class="cmn" style="width: 200px;" onclick="searchFromGridTitle('UNDLVR_RSN_NM', this.innerText, 'match', 'part');">미배달사유</th>
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('RCPN_NM', this.innerText, 'match', 'part');">수령인</th>
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('ACTL_RCPN_NM', this.innerText, 'match', 'part');">수령인</th>
|
|
|
|
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('RCPN_REL_NM', this.innerText, 'match', 'part');">수령인관계</th>
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('SNDNG_SE_CD', this.innerText, 'codeValue', 'FIM047');">발송구분</th>
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('SNDNG_SE_CD', this.innerText, 'codeValue', 'FIM047');">발송구분</th>
|
|
|
|
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('SNDNG_YMD', this.innerText, 'ymd', '');">발송일자</th>
|
|
|
|
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('SNDNG_YMD', this.innerText, 'ymd', '');">발송일자</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: 200px;" onclick="searchFromGridTitle('RTPYR_NM', this.innerText, 'match', 'part');">성명</th>
|
|
|
|
<th class="cmn" style="width: 200px;" onclick="searchFromGridTitle('RCPN_NM', this.innerText, 'match', 'part');">성명</th>
|
|
|
|
<th class="cmn" style="width: 100px;" onclick="searchFromGridTitle('RTPYR_ZIP', this.innerText, 'match', 'part');">우편번호</th>
|
|
|
|
<th class="cmn" style="width: 100px;" onclick="searchFromGridTitle('RCPN_ZIP', this.innerText, 'match', 'part');">우편번호</th>
|
|
|
|
<th class="cmn" style="width: 280px;" onclick="searchFromGridTitle('RTPYR_ADDR', this.innerText, 'match', 'part');">주소</th>
|
|
|
|
<th class="cmn" style="width: 280px;" onclick="searchFromGridTitle('RCPN_ADDR', this.innerText, 'match', 'part');">주소</th>
|
|
|
|
<th class="cmn" style="width: 320px;" onclick="searchFromGridTitle('RTPYR_DTL_ADDR', this.innerText, 'match', 'part');">상세주소</th>
|
|
|
|
<th class="cmn" style="width: 320px;" onclick="searchFromGridTitle('RCPN_DTL_ADDR', this.innerText, 'match', 'part');">상세주소</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: 120px;" onclick="searchFromGridTitle('RTPYR_SE_CD', this.innerText, 'codeValue', 'FIM011');">납부자구분</th>
|
|
|
|
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('RTPYR_NO', this.innerText, 'ymd', '');">납부자번호</th>
|
|
|
|
|
|
|
|
<th class="cmn" style="width: 200px;" onclick="searchFromGridTitle('RTPYR_NM', this.innerText, 'match', 'part');">납부자명</th>
|
|
|
|
|
|
|
|
<th class="cmn" style="width: 120px;" 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="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: 180px;">등록일시</th>
|
|
|
|
<th class="cmn" style="width: 180px;">등록일시</th>
|
|
|
@ -203,32 +211,32 @@
|
|
|
|
<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="{SNDNG_DTL_ID}">
|
|
|
|
<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}">{ROW_NUM}</td>
|
|
|
|
<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}">{TASK_SE_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{TASK_SE_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{GOJI_NO}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{GOJI_NO}</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}">{DLVR_YMD}</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-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}">{UNDLVR_RSN_NM}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RCPN_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}">{SNDNG_SE_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{SNDNG_SE_NM}</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-end" onclick="{onclick}" ondblclick="{ondblclick}">{FFNLG_AMT}</td>
|
|
|
|
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{FFNLG_AMT}</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_ZIP}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RCPN_ZIP}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_ADDR}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RCPN_ADDR}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_DTL_ADDR}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RCPN_DTL_ADDR}</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}">{RTPYR_SE_NM}</td>
|
|
|
|
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_NO}</td>
|
|
|
|
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_NM}</td>
|
|
|
|
|
|
|
|
<td class="cmn text-center" 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="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_STTS_NM}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_STTS_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>
|
|
|
@ -239,8 +247,20 @@
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template id="${infoPrefix}NotFound--${pageName}">
|
|
|
|
<template id="${infoPrefix}NotFound--${pageName}">
|
|
|
|
<tr class="odd">
|
|
|
|
<tr class="bpv">
|
|
|
|
<td valign="top" colspan="25" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
<td valign="top" colspan="30" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="dpv">
|
|
|
|
|
|
|
|
<td valign="top" colspan="30" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="eca">
|
|
|
|
|
|
|
|
<td valign="top" colspan="30" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="pvs">
|
|
|
|
|
|
|
|
<td valign="top" colspan="30" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="tpv">
|
|
|
|
|
|
|
|
<td valign="top" colspan="30" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
@ -286,6 +306,7 @@
|
|
|
|
, keymapper : info => info ? info.SNDNG_DTL_ID : ""
|
|
|
|
, keymapper : info => info ? info.SNDNG_DTL_ID : ""
|
|
|
|
, dataGetter : obj => obj.sndbkList
|
|
|
|
, dataGetter : obj => obj.sndbkList
|
|
|
|
, appendData : true
|
|
|
|
, appendData : true
|
|
|
|
|
|
|
|
, untilPageNum : 0 // 현재 페이지 번호
|
|
|
|
, tableRenderComplete : false // dataTables 에 자료 추가 완료 여부
|
|
|
|
, tableRenderComplete : false // dataTables 에 자료 추가 완료 여부
|
|
|
|
, formats : {
|
|
|
|
, formats : {
|
|
|
|
DLVR_YMD : dateFormat
|
|
|
|
DLVR_YMD : dateFormat
|
|
|
@ -303,7 +324,7 @@
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// Dataset 변경
|
|
|
|
// Dataset 변경
|
|
|
|
${pageName}Control.onDatasetChange = obj => {
|
|
|
|
${pageName}Control.onDatasetChange = obj => {
|
|
|
|
renderList${pageName}();
|
|
|
|
renderList${pageName}(obj.${infoPrefix}Total);
|
|
|
|
|
|
|
|
|
|
|
|
$("#paging--${pageName}").setPagingInfo({
|
|
|
|
$("#paging--${pageName}").setPagingInfo({
|
|
|
|
list : ${pageName}Control.dataset
|
|
|
|
list : ${pageName}Control.dataset
|
|
|
@ -340,17 +361,123 @@
|
|
|
|
$("#btnSvbtcInfo--${pageName}").prop("disabled", keys.length < 1);
|
|
|
|
$("#btnSvbtcInfo--${pageName}").prop("disabled", keys.length < 1);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 등록 callback
|
|
|
|
|
|
|
|
${pageName}Control.onCreate = (resp) => {
|
|
|
|
|
|
|
|
let btnTitle = $("#btnSvbtcInfo--${pageName}").attr("title");
|
|
|
|
|
|
|
|
let showMessage = resp.retMessage.replace(/[S]|[F]/g, btnTitle);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dialog.alert(showMessage); // 메시지 출력
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (resp.saved) {
|
|
|
|
|
|
|
|
refreshList${pageName}(); // 자료 재조회
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 등록
|
|
|
|
|
|
|
|
${pageName}Control.create = (params) => {
|
|
|
|
|
|
|
|
if (!params) return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ajax.post({
|
|
|
|
|
|
|
|
url : ${pageName}Control.urls.create
|
|
|
|
|
|
|
|
, data : params
|
|
|
|
|
|
|
|
, success : resp => ${pageName}Control.onCreate(resp)
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
|
|
|
* DataTables 이벤트
|
|
|
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
// DataTables에 click, dbclick 이벤트
|
|
|
|
|
|
|
|
renderList${pageName} = (totalSize) => {
|
|
|
|
|
|
|
|
let ${infoPrefix}List = ${pageName}Control.dataset;
|
|
|
|
|
|
|
|
let empty = ${infoPrefix}List.empty;
|
|
|
|
|
|
|
|
let clsForTask = $("#frmSearch--${pageName} input[name='taskSeCd']:checked").val().toLowerCase(); // 소문자
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 업무별 DataTables(그리드) tr, 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 replacer = (str, dataItem) => str
|
|
|
|
|
|
|
|
.replace(/{onclick}/gi, "${pageName}Control.setCurrent('" + dataItem.getValue("LEVY_EXCL_ID") + "');")
|
|
|
|
|
|
|
|
.replace(/{ondblclick}/gi, "getTotalInfo${pageName}('" + dataItem.getValue("CRDN_ID") + "');");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let trs = empty ? [document.getElementById("${infoPrefix}NotFound--${pageName}").content.querySelector("." + clsForTask + ",.cmn").outerHTML]
|
|
|
|
|
|
|
|
: ${infoPrefix}List.inStrings(foundTr.outerHTML, replacer);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let noMore = (totalSize == ${infoPrefix}List.length);
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// checkbox 체크 해제
|
|
|
|
|
|
|
|
$("th input[type='checkbox']").prop("checked", false);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 보안모드
|
|
|
|
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables에 스크롤이 맨 밑으로 이동했을 때 이벤트
|
|
|
|
|
|
|
|
scrollDataList${pageName} = () => {
|
|
|
|
|
|
|
|
${pageName}Control.tableRenderComplete = false; // dataTables 에 자료 추가 false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
${pageName}Control.load(${pageName}Control.query.pageNum + 1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
|
|
|
* 사용자 함수(function)
|
|
|
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
// callback 사용자 검색
|
|
|
|
|
|
|
|
callbackFindUser${pageName} = (userId, userNm) => {
|
|
|
|
|
|
|
|
$("#schRgtrCd--${pageName}").val(userId); // 사용자 ID
|
|
|
|
|
|
|
|
$("#schRgtrNm--${pageName}").val(userNm); // 사용자 명
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 사용자 검색
|
|
|
|
|
|
|
|
getFindUser${pageName} = () => {
|
|
|
|
|
|
|
|
let params = {
|
|
|
|
|
|
|
|
callbackFuncName : "callbackFindUser${pageName}"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
|
|
|
url : wctx.url("/user/user02/010/main.do")
|
|
|
|
|
|
|
|
, data : params || {}
|
|
|
|
|
|
|
|
, success : resp => {
|
|
|
|
|
|
|
|
dialog.open({
|
|
|
|
|
|
|
|
id : "userDialog"
|
|
|
|
|
|
|
|
, title : "사용자 검색"
|
|
|
|
|
|
|
|
, content : resp
|
|
|
|
|
|
|
|
, size : "lg"
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 개별총정보 dialog
|
|
|
|
// 개별총정보 dialog
|
|
|
|
${pageName}Control.getInfo = (crdnId) => {
|
|
|
|
getTotalInfo${pageName} = (crdnId) => {
|
|
|
|
if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return;
|
|
|
|
if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return;
|
|
|
|
|
|
|
|
|
|
|
|
let params = {
|
|
|
|
let params = {
|
|
|
|
callControlName : "${pageName}Control"
|
|
|
|
callControlName : "${pageName}Control"
|
|
|
|
|
|
|
|
, sggCd : $("#sggCd--${pageName}").val()
|
|
|
|
|
|
|
|
, taskSeCd : $("input[name=taskSeCd]:checked").val()
|
|
|
|
, crdnId : crdnId
|
|
|
|
, crdnId : crdnId
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
ajax.get({
|
|
|
|
url : ${pageName}Control.urls.getInfo
|
|
|
|
url : wctx.url(params.taskSeCd + "/sprt/sprt02/010/main.do")
|
|
|
|
, data : params
|
|
|
|
, data : params
|
|
|
|
, success : resp => {
|
|
|
|
, success : resp => {
|
|
|
|
dialog.open({
|
|
|
|
dialog.open({
|
|
|
@ -358,36 +485,14 @@
|
|
|
|
, title : "개별총정보"
|
|
|
|
, title : "개별총정보"
|
|
|
|
, content : resp
|
|
|
|
, content : resp
|
|
|
|
, size : "xxl"
|
|
|
|
, size : "xxl"
|
|
|
|
|
|
|
|
, init : () => { }
|
|
|
|
|
|
|
|
, onClose : () => { }
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
// 공시송달 등록 callback
|
|
|
|
*
|
|
|
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
// DataTables에 click, dbclick 이벤트
|
|
|
|
|
|
|
|
renderList${pageName} = () => {
|
|
|
|
|
|
|
|
let ${infoPrefix}List = ${pageName}Control.dataset;
|
|
|
|
|
|
|
|
let empty = ${infoPrefix}List.empty;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let trs = empty ?
|
|
|
|
|
|
|
|
[document.getElementById("${infoPrefix}NotFound--${pageName}").innerHTML] : <%-- from template#${infoPrefix}NotFound --%>
|
|
|
|
|
|
|
|
${infoPrefix}List.inStrings(
|
|
|
|
|
|
|
|
document.getElementById("${infoPrefix}Row--${pageName}").innerHTML, <%-- from template#${infoPrefix}Row --%>
|
|
|
|
|
|
|
|
(str, dataItem) => str
|
|
|
|
|
|
|
|
.replace(/{onclick}/gi, "${pageName}Control.setCurrent('" + dataItem.getValue("SNDNG_DTL_ID") + "');")
|
|
|
|
|
|
|
|
.replace(/{ondblclick}/gi, "${pageName}Control.getInfo('" + dataItem.getValue("CRDN_ID") + "');")
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#tbody--${pageName}").html(trs.join());
|
|
|
|
|
|
|
|
$("th input[type='checkbox']").prop("checked", false);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//보안모드
|
|
|
|
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 공시송달 callback
|
|
|
|
|
|
|
|
callbackSvbtcInfo${pageName} = (obj) => {
|
|
|
|
callbackSvbtcInfo${pageName} = (obj) => {
|
|
|
|
let taskSeCd = $("input[name='taskSeCd']:checked").val(); // 업무 구분 코드
|
|
|
|
let taskSeCd = $("input[name='taskSeCd']:checked").val(); // 업무 구분 코드
|
|
|
|
let selected = ${pageName}Control.dataset.getKeys("selected"); // 선택 자료
|
|
|
|
let selected = ${pageName}Control.dataset.getKeys("selected"); // 선택 자료
|
|
|
@ -406,34 +511,133 @@
|
|
|
|
, tnocs : obj.tnocs // 총건수
|
|
|
|
, tnocs : obj.tnocs // 총건수
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ajax.post({
|
|
|
|
${pageName}Control.create(params);
|
|
|
|
url : wctx.url("/" + params.taskSeCd + ${pageName}PrefixUrl + "/240/create.do")
|
|
|
|
}
|
|
|
|
, data : params
|
|
|
|
|
|
|
|
, success : resp => {
|
|
|
|
|
|
|
|
let btnTitle = $("#btnSvbtcInfo--${pageName}").attr("title");
|
|
|
|
|
|
|
|
let showMessage = resp.retMessage.replace(/[S]|[F]/g, btnTitle);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dialog.alert(showMessage); // 메시지 출력
|
|
|
|
// 검색 자료 재조회
|
|
|
|
|
|
|
|
refreshList${pageName} = () => {
|
|
|
|
|
|
|
|
${pageName}Control.untilPageNum = ${pageName}Control.query.pageNum;
|
|
|
|
|
|
|
|
${pageName}Control.query.fetchSize = ${pageName}Control.defaultFetchSize * ${pageName}Control.query.pageNum;
|
|
|
|
|
|
|
|
|
|
|
|
${pageName}Control.load(); // 자료 재조회
|
|
|
|
${pageName}Control.load(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* 초기 셋팅
|
|
|
|
* 버튼 clickEvent
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// 초기화
|
|
|
|
// 업무 구분 변경
|
|
|
|
initForm${pageName} = () => {
|
|
|
|
fnResetAndChangeBiz${pageName} = (taskSeCd) => {
|
|
|
|
|
|
|
|
// 업무 구분 코드
|
|
|
|
|
|
|
|
if (typeof taskSeCd == "undefined" || taskSeCd == null || taskSeCd == "") {
|
|
|
|
|
|
|
|
taskSeCd = $("#layout-navbar input[name='taskSeCd']:checked").val();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 화면 초기화
|
|
|
|
// 화면 초기화
|
|
|
|
$("#frmSearch--${pageName}")[0].reset();
|
|
|
|
$("#frmSearch--${pageName}")[0].reset();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 초기 기본 설정
|
|
|
|
|
|
|
|
initFormData${pageName}(taskSeCd);
|
|
|
|
|
|
|
|
// 업무 구분별 설정
|
|
|
|
|
|
|
|
setTask${pageName}(taskSeCd);
|
|
|
|
|
|
|
|
// 기본 데이터 설정
|
|
|
|
|
|
|
|
setFormData${pageName}(taskSeCd);
|
|
|
|
|
|
|
|
|
|
|
|
// dataset 초기화
|
|
|
|
// dataset 초기화
|
|
|
|
${pageName}Control.dataset.clear();
|
|
|
|
${pageName}Control.dataset.clear();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 검색 버튼 이벤트
|
|
|
|
|
|
|
|
fnSearchList${pageName} = () => {
|
|
|
|
|
|
|
|
// 검색조건
|
|
|
|
|
|
|
|
${pageName}Control.query = ${pageName}Fields.get();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
${pageName}Control.query.fetchSize = ${pageName}Control.defaultFetchSize; // 한번에 조회되는 자료 건수
|
|
|
|
|
|
|
|
${pageName}Control.query.sndngDtlSttsCd = "05"; // FIM050 - 05 반송
|
|
|
|
|
|
|
|
${pageName}Control.query.rcpnRelNm1 = "무인배달"; // 13
|
|
|
|
|
|
|
|
${pageName}Control.query.rcpnRelNm2 = "우편수취함"; // 14
|
|
|
|
|
|
|
|
${pageName}Control.query.rcpnRelNm3 = "전자수취함배달"; // 15
|
|
|
|
|
|
|
|
${pageName}Control.query.rcpnRelNm4 = "수령희망장소배달"; // 16
|
|
|
|
|
|
|
|
${pageName}Control.query.delYN = "N"; // 삭제 여부
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
${pageName}Control.load(1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 엑셀 버튼 이벤트
|
|
|
|
|
|
|
|
fnExcel${pageName} = () => {
|
|
|
|
|
|
|
|
if (${pageName}Control.dataset.empty) {
|
|
|
|
|
|
|
|
dialog.alert({
|
|
|
|
|
|
|
|
content : "검색된 자료가 없습니다."
|
|
|
|
|
|
|
|
, onOK : () => { }
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables(그리드)
|
|
|
|
|
|
|
|
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)"));
|
|
|
|
|
|
|
|
${pageName}Control.query.cellDefs = cellDefs;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
${pageName}Control.download();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 사용자 조회 버튼 이벤트
|
|
|
|
|
|
|
|
fnFindUser${pageName} = () => {
|
|
|
|
|
|
|
|
getFindUser${pageName}();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 통합우편 발송 버튼 이벤트
|
|
|
|
|
|
|
|
fnSndngLink${pageName} = () => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 공시송달 등록 버튼 이벤트
|
|
|
|
|
|
|
|
fnSvbtcInfo${pageName} = () => {
|
|
|
|
|
|
|
|
let callbackFuncName = "callbackSvbtcInfo${pageName}";
|
|
|
|
|
|
|
|
let selected = ${pageName}Control.dataset.getKeys("selected");
|
|
|
|
|
|
|
|
let taskSeCd = $("input:radio[name='taskSeCd']:checked").val();
|
|
|
|
|
|
|
|
let sndng = $("#schSndngSeCd--${pageName} option:selected").text();
|
|
|
|
|
|
|
|
let ttlNm = "";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (sndng == "전체") {
|
|
|
|
|
|
|
|
ttlNm = FIM054[taskSeCd].value + " " + "공시송달";
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
ttlNm = FIM054[taskSeCd].value + " " + sndng.replace("(개별)", "") + " " + "공시송달";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let popupWidth = 640;
|
|
|
|
|
|
|
|
let popupHeight = 360;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let popupX = (window.screen.width / 2) - (popupWidth / 2);
|
|
|
|
|
|
|
|
let popupY= (window.screen.height / 2) - (popupHeight / 2);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
window.open(
|
|
|
|
|
|
|
|
wctx.url("/resources/html/inputTtlDocNoDialog.html"
|
|
|
|
|
|
|
|
+ "?callbackFuncName=" + callbackFuncName
|
|
|
|
|
|
|
|
+ "&CALL_PURPOSE=" + "create"
|
|
|
|
|
|
|
|
+ "&TNOCS=" + selected.length
|
|
|
|
|
|
|
|
+ "&CAL_YMD=" + DateUtil.getDateDay().date
|
|
|
|
|
|
|
|
+ "&TTL_NM=" + ttlNm
|
|
|
|
|
|
|
|
+ "&DOC_NO=" + ""
|
|
|
|
|
|
|
|
+ "&ETC_CN=" + ""
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
, "inputSvbtcDialog"
|
|
|
|
|
|
|
|
, 'status=no, height=' + popupHeight + ', width=' + popupWidth + ', left='+ popupX + ', top='+ popupY
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
|
|
|
* 초기 셋팅
|
|
|
|
|
|
|
|
**************************************************************************/
|
|
|
|
// 이벤트
|
|
|
|
// 이벤트
|
|
|
|
setEvent${pageName} = () => {
|
|
|
|
setEvent${pageName} = () => {
|
|
|
|
|
|
|
|
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
|
|
|
|
|
|
|
|
$("#term--${pageName}").keypress(function(e) {
|
|
|
|
|
|
|
|
if (e.keyCode == 13) {
|
|
|
|
|
|
|
|
fnSearchList${pageName}();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// form-date 항목에서 키보드로 입력시 날짜 포맷팅 적용
|
|
|
|
// form-date 항목에서 키보드로 입력시 날짜 포맷팅 적용
|
|
|
|
$("#frmSearch--${pageName}").find(".form-date").each(function() {
|
|
|
|
$("#frmSearch--${pageName}").find(".form-date").each(function() {
|
|
|
|
$(this).on("input", function() {
|
|
|
|
$(this).on("input", function() {
|
|
|
@ -447,39 +651,32 @@
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables width 변경 조정
|
|
|
|
// DataTables width 변경 조정 업무별 그리드가 존재 한다면.. crdn06010-main.jsp 참고
|
|
|
|
$("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} );
|
|
|
|
$("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} );
|
|
|
|
|
|
|
|
|
|
|
|
// DataTables 스크롤 이벤트
|
|
|
|
// DataTables 스크롤 이벤트 생성
|
|
|
|
$("#table-responsive--${pageName}").scroll(function() {
|
|
|
|
fnMakeScrollableTable($("#table-responsive--${pageName}")[0], scrollDataList${pageName});
|
|
|
|
let el = $(this);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (el.scrollTop() == 0) {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!${pageName}Control.tableRenderComplete) {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let itemsCnt = ${pageName}Control.dataset._items.length;
|
|
|
|
|
|
|
|
let totCnt = ${pageName}Control.dataset.getValue("TOT_CNT");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (itemsCnt >= totCnt) {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) <= el.outerHeight()) {
|
|
|
|
// 화면 초기 설정
|
|
|
|
${pageName}Control.tableRenderComplete = false; // dataTables 에 자료 추가 완료
|
|
|
|
initFormData${pageName} = (taskSeCd) => {
|
|
|
|
${pageName}Control.load(${pageName}Control.query.pageNum + 1);
|
|
|
|
// 초기 데이터 설정
|
|
|
|
}
|
|
|
|
if (typeof taskSeCd == "undefined" || taskSeCd == null || taskSeCd == "") {
|
|
|
|
});
|
|
|
|
clsForTask = $("#layout-navbar input[name='taskSeCd']:checked").val();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 화면 초기값 셋팅
|
|
|
|
// input, select 초기화
|
|
|
|
setForm${pageName} = (taskSeCd) => {
|
|
|
|
let searchForm = $("#frmSearch--${pageName}");
|
|
|
|
// 업무 구분 코드
|
|
|
|
searchForm.find("input[type='radio']").not("[name='taskSeCd']").prop("checked", false);
|
|
|
|
|
|
|
|
searchForm.find("input[type='checkbox']").prop("checked", false);
|
|
|
|
|
|
|
|
searchForm.find("input[type='text']").val("");
|
|
|
|
|
|
|
|
searchForm.find("input[type='hidden']").val("");
|
|
|
|
|
|
|
|
searchForm.find("select").each(function() { $(this).find("option:eq(0)").prop("selected", true); });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 시군구 코드
|
|
|
|
|
|
|
|
$("#sggCd--${pageName}").val("${sggCd}");
|
|
|
|
|
|
|
|
// 업무 구분
|
|
|
|
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + taskSeCd + "']").prop("checked", true);
|
|
|
|
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + taskSeCd + "']").prop("checked", true);
|
|
|
|
|
|
|
|
|
|
|
|
// 최고 관리자 경우 업무구분을 선택할 수 있도록 하자.
|
|
|
|
// 최고 관리자 경우 업무구분을 선택할 수 있도록 하자.
|
|
|
|
$("#frmSearch--${pageName} input[name='taskSeCd']").each(function(i) {
|
|
|
|
$("#frmSearch--${pageName} input[name='taskSeCd']").each(function(i) {
|
|
|
|
$(this).prop("disabled", "true");
|
|
|
|
$(this).prop("disabled", "true");
|
|
|
@ -503,7 +700,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
// 위반 항목
|
|
|
|
// 위반 항목
|
|
|
|
$("#schVltnCd--${pageName}").empty();
|
|
|
|
$("#schVltnCd--${pageName}").empty();
|
|
|
|
|
|
|
|
|
|
|
|
$("#schVltnCd--${pageName}").append("<option value=''>" + "전체" + "</option>");
|
|
|
|
$("#schVltnCd--${pageName}").append("<option value=''>" + "전체" + "</option>");
|
|
|
|
$(vltnCode).each(function(index, item) {
|
|
|
|
$(vltnCode).each(function(index, item) {
|
|
|
|
$("#schVltnCd--${pageName}").append("<option value='" + vltnCode[index].code +"'>" + vltnCode[index].value + "</option>");
|
|
|
|
$("#schVltnCd--${pageName}").append("<option value='" + vltnCode[index].code +"'>" + vltnCode[index].value + "</option>");
|
|
|
@ -511,124 +707,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
// 달력 초기화
|
|
|
|
// 달력 초기화
|
|
|
|
initDatepicker("frmSearch--${pageName}");
|
|
|
|
initDatepicker("frmSearch--${pageName}");
|
|
|
|
|
|
|
|
$("#schDlvrYmdFrom--${pageName}").datepicker("setDate", new Date());
|
|
|
|
$("#schDlvrYmdFrom--${pageName}").datepicker("setDate", DateUtil.getDateDay(-365).date);
|
|
|
|
|
|
|
|
$("#schDlvrYmdTo--${pageName}").datepicker("setDate", new Date());
|
|
|
|
$("#schDlvrYmdTo--${pageName}").datepicker("setDate", new Date());
|
|
|
|
|
|
|
|
|
|
|
|
$("#schSndngSeCd--${pageName}").val("02").prop("selected", true);
|
|
|
|
// 동적 검색
|
|
|
|
}
|
|
|
|
$("#byOutput--${pageName}").val("동적 검색");
|
|
|
|
|
|
|
|
|
|
|
|
// URL 설정
|
|
|
|
|
|
|
|
setURL${pageName} = (taskSeCd) => {
|
|
|
|
|
|
|
|
${pageName}Control.urls.load = wctx.url("/" + taskSeCd + ${pageName}PrefixUrl + "/230/list.do"); // 조회
|
|
|
|
|
|
|
|
${pageName}Control.urls.getInfo = wctx.url("/" + taskSeCd + "/sprt/sprt02/010/main.do"); // 개별총정보
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
|
|
|
* 버튼 clickEvent
|
|
|
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
// 업무 구분 변경
|
|
|
|
|
|
|
|
fnResetAndChangeBiz${pageName} = (taskSeCd) => {
|
|
|
|
|
|
|
|
// 초기화
|
|
|
|
|
|
|
|
initForm${pageName}();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 업무 구분 코드
|
|
|
|
|
|
|
|
if (typeof taskSeCd == "undefined" || taskSeCd == null || taskSeCd == "") {
|
|
|
|
|
|
|
|
taskSeCd = $("#layout-navbar input[name='taskSeCd']:checked").val();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 화면 초기값 설정
|
|
|
|
|
|
|
|
setForm${pageName}(taskSeCd);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// URL 설정
|
|
|
|
// 사용자 이름
|
|
|
|
setURL${pageName}(taskSeCd);
|
|
|
|
$("#schRgtrNm--${pageName}").prop("readonly", true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 초기화 버튼 이벤트
|
|
|
|
// 업무 구분별 설정
|
|
|
|
fnReset${pageName} = () => {
|
|
|
|
setTask${pageName} = (taskSeCd) => {
|
|
|
|
fnResetAndChangeBiz${pageName}();
|
|
|
|
let clsForTask = taskSeCd.toLowerCase();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 검색 버튼 이벤트
|
|
|
|
// 업무별 조회조건
|
|
|
|
fnSearchList${pageName} = () => {
|
|
|
|
renderForTask("frmSearch--${pageName}", clsForTask);
|
|
|
|
// 검색조건
|
|
|
|
|
|
|
|
${pageName}Control.query = ${pageName}Fields.get();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
${pageName}Control.query.fetchSize = FETCH_XS; // 한번에 조회되는 자료 건수 FETCH_XS = 30
|
|
|
|
// 업무별 그리드 th
|
|
|
|
${pageName}Control.query.sndngDtlSttsCd = "05"; // FIM050 - 05 반송
|
|
|
|
$("#DataTables_Table_0--${pageName}").find("th").resizable( "destroy" );
|
|
|
|
${pageName}Control.query.rcpnRelNm1 = "무인배달"; // 13
|
|
|
|
|
|
|
|
${pageName}Control.query.rcpnRelNm2 = "우편수취함"; // 14
|
|
|
|
|
|
|
|
${pageName}Control.query.rcpnRelNm3 = "전자수취함배달"; // 15
|
|
|
|
|
|
|
|
${pageName}Control.query.rcpnRelNm4 = "수령희망장소배달"; // 16
|
|
|
|
|
|
|
|
${pageName}Control.query.delYn = "N"; // 삭제 여부
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
${pageName}Control.load();
|
|
|
|
let colContent = document.getElementById("${infoPrefix}Col--${pageName}").content;
|
|
|
|
}
|
|
|
|
let cols = $(colContent).find("." + clsForTask + ",.cmn");
|
|
|
|
|
|
|
|
let colsOuterHTML = "";
|
|
|
|
|
|
|
|
|
|
|
|
// 엑셀 버튼 이벤트
|
|
|
|
cols.each(function() {
|
|
|
|
fnExcel${pageName} = () => {
|
|
|
|
colsOuterHTML += this.outerHTML;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#theadTr--${pageName}").html(colsOuterHTML);
|
|
|
|
|
|
|
|
$("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 통합우편 발송 버튼 이벤트
|
|
|
|
// 기본 데이터 설정
|
|
|
|
fnSndngLink${pageName} = () => {
|
|
|
|
setFormData${pageName} = (taskSeCd) => {
|
|
|
|
|
|
|
|
// ${pageName}Control 설정
|
|
|
|
}
|
|
|
|
${pageName}Control.defaultFetchSize = FETCH_XS; // 1 페이지당 조회되는 자료 건수 index.jsp에서 확인 FETCH_XS = 30
|
|
|
|
|
|
|
|
|
|
|
|
// 공시송달 등록 버튼 이벤트
|
|
|
|
// 일자
|
|
|
|
fnSvbtcInfo${pageName} = () => {
|
|
|
|
$("#schDlvrYmdFrom--${pageName}").datepicker("setDate", DateUtil.getDateDay(-7).date);
|
|
|
|
let callbackFuncName = "callbackSvbtcInfo${pageName}";
|
|
|
|
$("#schDlvrYmdTo--${pageName}").datepicker("setDate", new Date());
|
|
|
|
let selected = ${pageName}Control.dataset.getKeys("selected");
|
|
|
|
// 발송구분
|
|
|
|
let taskSeCd = $("input:radio[name='taskSeCd']:checked").val();
|
|
|
|
$("#schSndngSeCd--${pageName}").val("02").prop("selected", true);
|
|
|
|
let sndng = $("#schSndngSeCd--${pageName} option:selected").text();
|
|
|
|
// 선택등기표시
|
|
|
|
let ttlNm = "";
|
|
|
|
$("#schChcRgIndct--${pageName}").prop("checked", true);
|
|
|
|
|
|
|
|
|
|
|
|
if (sndng == "전체") {
|
|
|
|
// URL 설정
|
|
|
|
ttlNm = FIM054[taskSeCd].value + " " + "공시송달";
|
|
|
|
setURL${pageName}(taskSeCd);
|
|
|
|
} else {
|
|
|
|
|
|
|
|
ttlNm = FIM054[taskSeCd].value + " " + sndng.replace("(개별)", "") + " " + "공시송달";
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let popupWidth = 640;
|
|
|
|
// URL 설정
|
|
|
|
let popupHeight = 360;
|
|
|
|
setURL${pageName} = (taskSeCd) => {
|
|
|
|
|
|
|
|
${pageName}Control.urls.load = wctx.url(taskSeCd + ${pageName}PrefixUrl + "/230/list.do"); // 조회
|
|
|
|
let popupX = (window.screen.width / 2) - (popupWidth / 2);
|
|
|
|
${pageName}Control.urls.create = wctx.url(taskSeCd + ${pageName}PrefixUrl + "/240/create.do"); // 등록
|
|
|
|
let popupY= (window.screen.height / 2) - (popupHeight / 2);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
window.open(
|
|
|
|
|
|
|
|
wctx.url("/resources/html/inputTtlDocNoDialog.html"
|
|
|
|
|
|
|
|
+ "?callbackFuncName=" + callbackFuncName
|
|
|
|
|
|
|
|
+ "&CALL_PURPOSE=" + "create"
|
|
|
|
|
|
|
|
+ "&TNOCS=" + selected.length
|
|
|
|
|
|
|
|
+ "&CAL_YMD=" + DateUtil.getDateDay().date
|
|
|
|
|
|
|
|
+ "&TTL_NM=" + ttlNm
|
|
|
|
|
|
|
|
+ "&DOC_NO=" + ""
|
|
|
|
|
|
|
|
+ "&ETC_CN=" + ""
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
, "inputSvbtcDialog"
|
|
|
|
|
|
|
|
, 'status=no, height=' + popupHeight + ', width=' + popupWidth + ', left='+ popupX + ', top='+ popupY
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* 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();
|
|
|
|
|
|
|
|
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked", true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 화면 초기 설정 및 업무 구분 변경
|
|
|
|
// 화면 초기 설정 및 업무 구분 변경
|
|
|
|
fnResetAndChangeBiz${pageName}(defaultBizValue);
|
|
|
|
fnResetAndChangeBiz${pageName}($("#layout-navbar input[name='taskSeCd']:checked").val());
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|