|
|
@ -7,56 +7,61 @@
|
|
|
|
<div class="container flex-grow-1 px-0">
|
|
|
|
<div class="container flex-grow-1 px-0">
|
|
|
|
<!-- Page Body -->
|
|
|
|
<!-- Page Body -->
|
|
|
|
<div class="card">
|
|
|
|
<div class="card">
|
|
|
|
<!-- 상단 버튼 -->
|
|
|
|
<!-- 입력 영역 -->
|
|
|
|
<div class="container-page-btn">
|
|
|
|
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
|
|
|
|
<button type="button" class="btn btn-search" id="btnExcel--${pageName}" title="엑셀" onclick="fnExcel${pageName}();">
|
|
|
|
|
|
|
|
엑셀
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- / 상단 버튼 -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<form id="frmEdit--${pageName}" name="frmEdit">
|
|
|
|
<form id="frmEdit--${pageName}" name="frmEdit">
|
|
|
|
|
|
|
|
<input type="hidden" id="sggCd--${pageName}" name="sggCd" />
|
|
|
|
|
|
|
|
<input type="hidden" id="taskSeCd--${pageName}" name="taskSeCd" />
|
|
|
|
|
|
|
|
<input type="hidden" id="sndngSeCd--${pageName}" name="sndngSeCd" />
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row g-1">
|
|
|
|
<div class="row g-1">
|
|
|
|
<!-- 총 건수 -->
|
|
|
|
<!-- 총 건수 -->
|
|
|
|
<div class="col-md-12 text-end px-2">
|
|
|
|
<div class="col-md-12 text-end px-2">
|
|
|
|
<label for="tnocs--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">총건수/금액</label>
|
|
|
|
<label for="tnocs--${pageName}" class="w-px-140 bg-lighter pe-2 col-form-label text-sm-end">총건수 / 총금액</label>
|
|
|
|
<input type="text" class="form-control w-px-80 text-end" id="tnocs--${pageName}" name="tnocs" readonly />
|
|
|
|
<input type="text" class="form-control w-px-80 text-end" id="tnocs--${pageName}" name="tnocs" data-map="TNOCS" readonly />
|
|
|
|
<input type="text" class="form-control w-px-140 text-end" id="gramt--${pageName}" name="gramt" readonly />
|
|
|
|
<input type="text" class="form-control w-px-120 text-end" id="gramt--${pageName}" name="gramt" data-map="GRAMT" readonly />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 발송 일자 -->
|
|
|
|
<!-- 발송 일자 -->
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<label for="sndngYmd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required">발송일자</label>
|
|
|
|
<label for="sndngYmd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required">발송일자</label>
|
|
|
|
<input type="text" class="form-control form-date" id="sndngYmd--${pageName}" name="sndngYmd" data-map="SNDNG_YMD"
|
|
|
|
<input type="text" class="form-control form-date" id="sndngYmd--${pageName}" name="sndngYmd"
|
|
|
|
data-fmt-type="day" title="날짜 선택" maxlength="10" required />
|
|
|
|
data-fmt-type="day" title="날짜 선택" maxlength="10" required />
|
|
|
|
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
|
|
|
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 납기 일자 -->
|
|
|
|
|
|
|
|
<div class="col-md-6" id="divDudtYmd--${pageName}">
|
|
|
|
|
|
|
|
<label for="dudtYmd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">납기일자</label>
|
|
|
|
|
|
|
|
<input type="text" class="form-control form-date" id="dudtYmd--${pageName}" name="dudtYmd"
|
|
|
|
|
|
|
|
data-fmt-type="day" title="날짜 선택" maxlength="10" />
|
|
|
|
|
|
|
|
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<!-- 문서 번호 -->
|
|
|
|
<!-- 문서 번호 -->
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<label for="docNo--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">문서번호</label>
|
|
|
|
<label for="docNo--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">문서번호</label>
|
|
|
|
<input type="text" class="form-control w-40 text-end" id="docNo--${pageName}" name="docNo" data-map="DOC_NO" />
|
|
|
|
<input type="text" class="form-control w-40 text-end" id="docNo--${pageName}" name="docNo" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 제목 명 -->
|
|
|
|
<!-- 제목 명 -->
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<label for="ttlNm--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">제목</label>
|
|
|
|
<label for="ttlNm--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">제목</label>
|
|
|
|
<input type="text" class="form-control w-75 text-end" id="ttlNm--${pageName}" name="ttlNm" data-map="TTL_NM" />
|
|
|
|
<input type="text" class="form-control w-75 text-end" id="ttlNm--${pageName}" name="ttlNm" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 기타 내용 -->
|
|
|
|
<!-- 기타 내용 -->
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<label for="etcCn--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">기타내용</label>
|
|
|
|
<label for="etcCn--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">기타내용</label>
|
|
|
|
<textarea type="text" class="form-control w-75" id="etcCn--${pageName}" name="etcCn" data-map="ETC_CN" rows="3" data-maxlengthb="1000">
|
|
|
|
<textarea type="text" class="form-control w-75" id="etcCn--${pageName}" name="etcCn" data-map="ETC_CN" rows="2" data-maxlengthb="1000">
|
|
|
|
</textarea>
|
|
|
|
</textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div> <!-- <div class="row g-1"> -->
|
|
|
|
</div> <!-- <div class="row g-1"> -->
|
|
|
|
</form>
|
|
|
|
</form> <!-- /입력 영역 -->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 업무 버튼 및 건수 표시 -->
|
|
|
|
<!-- 업무 버튼 및 건수 표시 -->
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<span class="container-page-btn">
|
|
|
|
<span class="container-page-btn">
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
<!-- 업무 버튼 -->
|
|
|
|
<!-- 업무 버튼 -->
|
|
|
|
<button type="button" class="btn btn-primary" id="btnCreateWrngSndng--${pageName}" title="계고장 발송 등록" onclick="fnCreateWrngSndng${pageName}();">
|
|
|
|
<button type="button" class="btn btn-primary w-px-80" id="btnExcel--${pageName}" title="엑셀" onclick="fnExcel${pageName}();">
|
|
|
|
|
|
|
|
엑셀
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button type="button" class="btn btn-primary w-px-80" id="btnSave--${pageName}" title="계고장 발송 등록" onclick="fnSave${pageName}();">
|
|
|
|
등록
|
|
|
|
등록
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
@ -72,18 +77,27 @@
|
|
|
|
<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 hidden" style="width: 56px;">
|
|
|
|
|
|
|
|
<input type="checkbox" class="form-check-input" onchange="${pageName}Control.select(this.checked);">
|
|
|
|
|
|
|
|
</th>
|
|
|
|
<th class="cmn" style="width: 140px;" onclick="searchFromGridTitle('LEVY_EXCL_YMD', this.innerText, 'ymd', '');">계고일자</th>
|
|
|
|
<th class="cmn" style="width: 140px;" onclick="searchFromGridTitle('LEVY_EXCL_YMD', this.innerText, 'ymd', '');">계고일자</th>
|
|
|
|
<th class="cmn" style="width: 200px;" onclick="searchFromGridTitle('LEVY_EXCL_RSN_NM', this.innerText, 'codeValue', 'FIM022');">계고사유</th>
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('LEVY_EXCL_RSN_NM', this.innerText, 'codeValue', 'FIM022');">계고사유</th>
|
|
|
|
<th class="cmn" style="width: 280px;" onclick="searchFromGridTitle('ETC_CN', this.innerText, 'match', 'part');">기타내용</th>
|
|
|
|
<th class="cmn" style="width: 280px;" onclick="searchFromGridTitle('ETC_CN', this.innerText, 'match', 'part');">기타내용</th>
|
|
|
|
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('CVLCPT_APLY_NO', this.innerText, 'match', 'part');">민원신청번호</th>
|
|
|
|
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('CVLCPT_RCPT_NO', this.innerText, 'match', 'part');">민원접수번호</th>
|
|
|
|
|
|
|
|
<th class="cmn" style="width: 140px;" onclick="searchFromGridTitle('CVLCPT_RCPT_YMD', this.innerText, 'ymd', '');">민원접수일자</th>
|
|
|
|
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('CVLCPT_PRCS_NM', this.innerText, 'codeValue', 'FIM017');">민원처리결과</th>
|
|
|
|
<th class="cmn" style="width: 180px;" onclick="searchFromGridTitle('CRDN_YMD', this.innerText, 'ymd', '');">단속일시</th>
|
|
|
|
<th class="cmn" style="width: 180px;" onclick="searchFromGridTitle('CRDN_YMD', this.innerText, 'ymd', '');">단속일시</th>
|
|
|
|
<th class="cmn" style="width: 140px;" onclick="searchFromGridTitle('VHRNO', this.innerText, 'match', 'part');">차량번호</th>
|
|
|
|
<th class="cmn" style="width: 140px;" onclick="searchFromGridTitle('VHRNO', this.innerText, 'match', 'part');">차량번호</th>
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('CRDN_STDG_NM', this.innerText, 'match', 'part');">법정동</th>
|
|
|
|
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('CRDN_STDG_NM', this.innerText, 'match', 'part');">법정동</th>
|
|
|
|
<th class="cmn" style="width: 280px;" onclick="searchFromGridTitle('CRDN_PLC', this.innerText, 'match', 'part');">단속장소</th>
|
|
|
|
<th class="cmn" style="width: 280px;" onclick="searchFromGridTitle('CRDN_PLC', this.innerText, 'match', 'part');">단속장소</th>
|
|
|
|
<th class="cmn" style="width: 140px;" 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: 160px;" onclick="searchFromGridTitle('CRDN_STTS_NM', this.innerText, 'codeValue', 'FIM010');">처리상태</th>
|
|
|
|
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('CRDN_STTS_NM', this.innerText, 'codeValue', 'FIM010');">처리상태</th>
|
|
|
|
<th class="cmn" style="width: 200px;" onclick="searchFromGridTitle('RTPYR_NM', this.innerText, 'match', 'part');">납부자명</th>
|
|
|
|
<th class="cmn" style="width: 200px;" onclick="searchFromGridTitle('RTPYR_NM', this.innerText, 'match', 'part');">납부자명</th>
|
|
|
|
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('RTPYR_BRDT', this.innerText, 'ymd', '');">납부자생일</th>
|
|
|
|
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('RTPYR_BRDT', this.innerText, 'ymd', '');">납부자생일</th>
|
|
|
|
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('ZIP', this.innerText, 'match', 'part');">우편번호</th>
|
|
|
|
<th class="cmn" style="width: 100px;" onclick="searchFromGridTitle('ZIP', this.innerText, 'match', 'part');">우편번호</th>
|
|
|
|
|
|
|
|
<th class="cmn" style="width: 280px;" onclick="searchFromGridTitle('ADDR', this.innerText, 'match', 'part');">주소</th>
|
|
|
|
|
|
|
|
<th class="cmn" style="width: 320px;" onclick="searchFromGridTitle('DTL_ADDR', this.innerText, 'match', 'part');">상세주소</th>
|
|
|
|
<th class="cmn" style="width: 180px;">등록일시</th>
|
|
|
|
<th class="cmn" style="width: 180px;">등록일시</th>
|
|
|
|
<th class="cmn" style="width: 140px;">등록사용자</th>
|
|
|
|
<th class="cmn" style="width: 140px;">등록사용자</th>
|
|
|
|
<th class="cmn" style="width: 180px;">수정일시</th>
|
|
|
|
<th class="cmn" style="width: 180px;">수정일시</th>
|
|
|
@ -95,9 +109,16 @@
|
|
|
|
</tbody>
|
|
|
|
</tbody>
|
|
|
|
<template id="${infoPrefix}Row--${pageName}">
|
|
|
|
<template id="${infoPrefix}Row--${pageName}">
|
|
|
|
<tr data-key="{CRDN_ID}">
|
|
|
|
<tr data-key="{CRDN_ID}">
|
|
|
|
|
|
|
|
<td class="cmn text-center hidden">
|
|
|
|
|
|
|
|
<input type="checkbox" class="form-check-input" value="{CRDN_ID}" onchange="${pageName}Control.select('{CRDN_ID}', this.checked);">
|
|
|
|
|
|
|
|
</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{LEVY_EXCL_YMD}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{LEVY_EXCL_YMD}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{LEVY_EXCL_RSN_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{LEVY_EXCL_RSN_NM}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{ETC_CN}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{ETC_CN}</td>
|
|
|
|
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CVLCPT_APLY_NO}</td>
|
|
|
|
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CVLCPT_RCPT_NO}</td>
|
|
|
|
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CVLCPT_RCPT_YMD}</td>
|
|
|
|
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CVLCPT_PRCS_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_YMD_TM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_YMD_TM}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{VHRNO}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{VHRNO}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_STDG_NM}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_STDG_NM}</td>
|
|
|
@ -107,6 +128,8 @@
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_NM}</td>
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_BRDT_FORMAT}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_BRDT_FORMAT}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ZIP}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ZIP}</td>
|
|
|
|
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{ADDR}</td>
|
|
|
|
|
|
|
|
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{DTL_ADDR}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{REG_DT}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{REG_DT}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RGTR_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RGTR_NM}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{MDFCN_DT}</td>
|
|
|
|
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{MDFCN_DT}</td>
|
|
|
@ -116,7 +139,7 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template id="${infoPrefix}NotFound--${pageName}">
|
|
|
|
<template id="${infoPrefix}NotFound--${pageName}">
|
|
|
|
<tr class="odd">
|
|
|
|
<tr class="odd">
|
|
|
|
<td valign="top" colspan="17" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
<td valign="top" colspan="23" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
@ -135,19 +158,23 @@
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// URL
|
|
|
|
// URL
|
|
|
|
var ${pageName}PrefixUrl = "/sndb/sndb01";
|
|
|
|
var ${pageName}PrefixUrl = "/sndb/sndb01";
|
|
|
|
|
|
|
|
// FormFields
|
|
|
|
|
|
|
|
var ${pageName}Fields = new FormFields("#frmEdit--${pageName}");
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* DatasetControl
|
|
|
|
* DatasetControl
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
var ${pageName}Control = new DatasetControl({
|
|
|
|
var ${pageName}Control = new DatasetControl({
|
|
|
|
prefix : "wrngSndngTrgtInfo"
|
|
|
|
prefix : "sndngTrgtInfo"
|
|
|
|
, prefixName : "계고장 발송 대상"
|
|
|
|
, prefixName : "발송 대상"
|
|
|
|
, keymapper : info => info ? info.CRDN_ID : ""
|
|
|
|
, keymapper : info => info ? info.CRDN_ID : ""
|
|
|
|
, dataGetter : obj => obj.wrngSndngTrgtInfoList
|
|
|
|
, dataGetter : obj => obj.sndngTrgtInfoList
|
|
|
|
, appendData : true
|
|
|
|
, appendData : true
|
|
|
|
, tableRenderComplete : false // dataTables 에 자료 추가 완료 여부
|
|
|
|
, tableRenderComplete : false // dataTables 에 자료 추가 완료 여부
|
|
|
|
, formats : {
|
|
|
|
, formats : {
|
|
|
|
LEVY_EXCL_YMD : dateFormat
|
|
|
|
TNOCS : numberFormat
|
|
|
|
|
|
|
|
, GRAMT : numberFormat
|
|
|
|
|
|
|
|
, LEVY_EXCL_YMD : dateFormat
|
|
|
|
, CRDN_YMD_TM : datetimeFormat
|
|
|
|
, CRDN_YMD_TM : datetimeFormat
|
|
|
|
, FFNLG_CRDN_AMT : numberFormat
|
|
|
|
, FFNLG_CRDN_AMT : numberFormat
|
|
|
|
, REG_DT : datetimeFormat
|
|
|
|
, REG_DT : datetimeFormat
|
|
|
@ -162,14 +189,11 @@
|
|
|
|
${pageName}Control.onDatasetChange = obj => {
|
|
|
|
${pageName}Control.onDatasetChange = obj => {
|
|
|
|
renderList${pageName}();
|
|
|
|
renderList${pageName}();
|
|
|
|
|
|
|
|
|
|
|
|
$("#paging--${pageName}").setPagingInfo({
|
|
|
|
${pageName}Control.select(true); // 전체 선택 되도록..
|
|
|
|
list : ${pageName}Control.dataset
|
|
|
|
|
|
|
|
, prefix : "paging--${pageName}"
|
|
|
|
if (obj.length > 0) {
|
|
|
|
, 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 에 자료 추가 완료
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -183,6 +207,18 @@
|
|
|
|
$("#tbody--${pageName}").setCurrentRow(key);
|
|
|
|
$("#tbody--${pageName}").setCurrentRow(key);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 선택(체크) 변경 이벤트
|
|
|
|
|
|
|
|
${pageName}Control.onSelectionChange = selected => {
|
|
|
|
|
|
|
|
let ${infoPrefix}List = ${pageName}Control.dataset;
|
|
|
|
|
|
|
|
let keys = selected.map(e => ${infoPrefix}List.getKey(e));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#tbody--${pageName} input[type='checkbox']").each(function() {
|
|
|
|
|
|
|
|
let checkbox = $(this);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
checkbox.prop("checked", keys.includes(checkbox.val()));
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// 개별총정보 dialog
|
|
|
|
// 개별총정보 dialog
|
|
|
|
${pageName}Control.getInfo = (crdnId) => {
|
|
|
|
${pageName}Control.getInfo = (crdnId) => {
|
|
|
|
if (crdnId == undefined || crdnId == null || crdnId == "") {
|
|
|
|
if (crdnId == undefined || crdnId == null || crdnId == "") {
|
|
|
@ -210,6 +246,38 @@
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 저장 callback
|
|
|
|
|
|
|
|
${pageName}Control.onSave = (resp) => {
|
|
|
|
|
|
|
|
let dialogTitle = $("#" + ${pageName}Control.prefix + "Dialog").find("h5.modal-title").html();
|
|
|
|
|
|
|
|
let showMessage = resp.retMessage.replace(/[S]|[F]/g, dialogTitle);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dialog.alert(showMessage);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (resp.saved) {
|
|
|
|
|
|
|
|
dialog.close(${pageName}Control.prefix + "Dialog");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 저장
|
|
|
|
|
|
|
|
${pageName}Control.save = (info) => {
|
|
|
|
|
|
|
|
if (!info) return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 선택된 자료의 단속ID 추가
|
|
|
|
|
|
|
|
let selected = ${pageName}Control.dataset.getKeys("selected");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (selected.length < 1) return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
info.crdnIDs = selected.join(",");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let createUrl = wctx.url(info.taskSeCd + ${pageName}PrefixUrl + "/020/create.do");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ajax.post({
|
|
|
|
|
|
|
|
url : createUrl
|
|
|
|
|
|
|
|
, data : info
|
|
|
|
|
|
|
|
, success : resp => ${pageName}Control.onSave(resp)
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
*
|
|
|
|
*
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
@ -240,11 +308,21 @@
|
|
|
|
// 화면 초기값 셋팅
|
|
|
|
// 화면 초기값 셋팅
|
|
|
|
initForm${pageName} = () => {
|
|
|
|
initForm${pageName} = () => {
|
|
|
|
// 달력 초기화
|
|
|
|
// 달력 초기화
|
|
|
|
initDatepicker("frmSearch--${pageName}");
|
|
|
|
initDatepicker("frmEdit--${pageName}");
|
|
|
|
|
|
|
|
|
|
|
|
$("#sndngYmd--${pageName}").datepicker("setDate", new Date());
|
|
|
|
$("#sndngYmd--${pageName}").datepicker("setDate", new Date());
|
|
|
|
|
|
|
|
$("#dudtYmd--${pageName}").datepicker("setDate", new Date());
|
|
|
|
${pageName}Control.dataset.clear();
|
|
|
|
|
|
|
|
|
|
|
|
let sndngSeCd = "${sndngSeCd}";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (sndngSeCd == "10") {
|
|
|
|
|
|
|
|
$("#dudtYmd--${pageName}").val("");
|
|
|
|
|
|
|
|
$("#dudtYmd--${pageName}").prop("disabled", true);
|
|
|
|
|
|
|
|
$("#divDudtYmd--${pageName}").hide();
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$("#dudtYmd--${pageName}").datepicker("setDate", new Date());
|
|
|
|
|
|
|
|
$("#dudtYmd--${pageName}").prop("disabled", false);
|
|
|
|
|
|
|
|
$("#divDudtYmd--${pageName}").show();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 이벤트
|
|
|
|
// 이벤트
|
|
|
@ -275,8 +353,16 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 계고장 등록
|
|
|
|
// 계고장 등록
|
|
|
|
fnCreateWrngSndng${pageName} = () => {
|
|
|
|
fnSave${pageName} = () => {
|
|
|
|
|
|
|
|
// validate 확인
|
|
|
|
|
|
|
|
if (!customValidate($("#frmEdit--${pageName}").find("input, select, textarea"))) return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dialog.alert({
|
|
|
|
|
|
|
|
content : "현재 " + ${pageName}Control.prefixName + " 정보를 저장하시겠습니까?"
|
|
|
|
|
|
|
|
, onOK : () => {
|
|
|
|
|
|
|
|
${pageName}Control.save(${pageName}Fields.get());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
@ -286,11 +372,20 @@
|
|
|
|
// 이벤트 설정
|
|
|
|
// 이벤트 설정
|
|
|
|
setEvent${pageName}();
|
|
|
|
setEvent${pageName}();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 화면 초기 설정
|
|
|
|
|
|
|
|
initForm${pageName}();
|
|
|
|
|
|
|
|
|
|
|
|
// 보안모드
|
|
|
|
// 보안모드
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
|
|
|
|
|
|
|
|
// Dataset 셋팅 - 화면이 열리면서 조회하는 경우 addData 하여 자료를 추가
|
|
|
|
// Dataset 셋팅 - 화면이 열리면서 조회하는 경우 addData 하여 자료를 추가
|
|
|
|
${pageName}Control.addData(${wrngSndngTrgtInfo});
|
|
|
|
${pageName}Control.addData(${sndngTrgtInfo});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#sndngSeCd--${pageName}").val("${sndngSeCd}"); // 발송 구분 코드
|
|
|
|
|
|
|
|
$("#sggCd--${pageName}").val(${pageName}Control.dataset.getValue("SGG_CD")); // 시군구 코드
|
|
|
|
|
|
|
|
$("#taskSeCd--${pageName}").val(${pageName}Control.dataset.getValue("TASK_SE_CD")); // 업무 구분 코드
|
|
|
|
|
|
|
|
$("#tnocs--${pageName}").val(${pageName}Control.dataset.getValue("TNOCS")); // 총건수
|
|
|
|
|
|
|
|
$("#gramt--${pageName}").val(${pageName}Control.dataset.getValue("GRAMT")); // 총금액
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|