계고장 발송 등록 Info 수정

main
jjh 1 year ago
parent a52cd3dc29
commit 66ef616e6b

@ -53,7 +53,7 @@ public class Sndb01Controller extends ApplicationController {
addCodes(commonCodes, mav, "FIM004", "FIM005", "FIM006", "FIM061", "FIM064"); addCodes(commonCodes, mav, "FIM004", "FIM005", "FIM006", "FIM061", "FIM064");
return mav.addObject("pageName", "sndb01010") // View(jsp)에서 사용할 id 뒤에 붙일 suffix return mav.addObject("pageName", "sndb01010") // View(jsp)에서 사용할 id 뒤에 붙일 suffix
.addObject("infoPrefix", "sndng") // prefix .addObject("infoPrefix", "wrngSndngTrgt") // prefix
.addObject("FIM004List", commonCodes.get("FIM004")) // 주정차위반 내역 코드(VLTN_ID) .addObject("FIM004List", commonCodes.get("FIM004")) // 주정차위반 내역 코드(VLTN_ID)
.addObject("FIM005List", commonCodes.get("FIM005")) // 전용차로위반 내역 코드(VLTN_ID) .addObject("FIM005List", commonCodes.get("FIM005")) // 전용차로위반 내역 코드(VLTN_ID)
.addObject("FIM006List", commonCodes.get("FIM006")) // 장애인주차위반 내역 코드(VLTN_ID) .addObject("FIM006List", commonCodes.get("FIM006")) // 장애인주차위반 내역 코드(VLTN_ID)
@ -80,7 +80,6 @@ public class Sndb01Controller extends ApplicationController {
return setCollectionInfo(new ModelAndView("jsonView"), result, "wrngSndngTrgt"); return setCollectionInfo(new ModelAndView("jsonView"), result, "wrngSndngTrgt");
} }
/** (sndb/sndb01/020-info) . /** (sndb/sndb01/020-info) .
* @param crdnIDs IDs * @param crdnIDs IDs
* @return fims/sndb/sndb01020-info jsonView * @return fims/sndb/sndb01020-info jsonView
@ -101,21 +100,21 @@ public class Sndb01Controller extends ApplicationController {
return mav return mav
.addObject("pageName", "sndb01020") .addObject("pageName", "sndb01020")
.addObject("FIM054List", commonCodes.get("FIM054")) // 업무 구분 코드(TASK_SE_CD) .addObject("FIM054List", commonCodes.get("FIM054")) // 업무 구분 코드(TASK_SE_CD)
.addObject("wrngSndngTrgts", json ? wrngSndngTrgts : toJson(wrngSndngTrgts)) // 계도장 발송 대상 정보 .addObject("wrngSndngTrgtInfo", json ? wrngSndngTrgts : toJson(wrngSndngTrgts)) // 계도장 발송 대상 정보
; ;
} }
/** (sndb/sndb01/020-main) . /** (sndb/sndb01/030-main) .
* {@link #getSndngList(SndbQuery) } . * {@link #getSndngList(SndbQuery) } .
* @return /sndb/sndb01/020-main * @return /sndb/sndb01/030-main
*/ */
public ModelAndView warningSendingMain() { public ModelAndView warningSendingMain() {
ModelAndView mav = new ModelAndView("fims/sndb/sndb01020-main"); ModelAndView mav = new ModelAndView("fims/sndb/sndb01030-main");
// View(jsp)에서 사용할 공통코드를 조회 // View(jsp)에서 사용할 공통코드를 조회
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM054"); Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM054");
return mav.addObject("pageName", "sndb01020") // View(jsp)에서 사용할 id 뒤에 붙일 suffix return mav.addObject("pageName", "sndb01030") // View(jsp)에서 사용할 id 뒤에 붙일 suffix
.addObject("infoPrefix", "sndng") // prefix .addObject("infoPrefix", "sndng") // prefix
.addObject("FIM054List", commonCodes.get("FIM054")) // 업무 구분 코드(TASK_SE_CD) .addObject("FIM054List", commonCodes.get("FIM054")) // 업무 구분 코드(TASK_SE_CD)
; ;

@ -258,14 +258,6 @@
</if> </if>
<if test="crdnId != null"> <if test="crdnId != null">
AND C.CRDN_ID = #{crdnId} /* 단속 ID */ AND C.CRDN_ID = #{crdnId} /* 단속 ID */
</if>
<if test="levyExclIDs != null">
AND LE.LEVY_EXCL_ID IN (
<foreach collection="levyExclIDs" item="levyExclId" separator=","> #{levyExclId} </foreach>
)
</if>
<if test="levyExclId != null">
AND LE.LEVY_EXCL_ID = #{levyExclId} /* 부과 제외 ID */
</if> </if>
<choose> <choose>
<when test="crdnDelYn != null"> <when test="crdnDelYn != null">

@ -4,7 +4,7 @@
<!-- inner page html --> <!-- inner page html -->
<div class="content-wrapper"> <div class="content-wrapper">
<!-- Content --> <!-- Content -->
<div class="container-xxl flex-grow-1 px-0"> <div class="container flex-grow-1 px-0">
<c:set var="prefixName" scope="request">부과제외 정보</c:set> <c:set var="prefixName" scope="request">부과제외 정보</c:set>
<!-- Page Body --> <!-- Page Body -->
@ -67,7 +67,7 @@
</div> </div>
<!-- / 업무 버튼 표시 --> <!-- / 업무 버튼 표시 -->
</div> <!-- / Content <div class="container-xxl flex-grow-1 px-0"> --> </div> <!-- / Content <div class="container flex-grow-1 px-0"> -->
</div> <!-- / inner page html <div class="content-wrapper"> --> </div> <!-- / inner page html <div class="content-wrapper"> -->
<script> <script>

@ -4,7 +4,7 @@
<!-- inner page html --> <!-- inner page html -->
<div class="content-wrapper"> <div class="content-wrapper">
<!-- Content --> <!-- Content -->
<div class="container-xxl flex-grow-1 px-0"> <div class="container flex-grow-1 px-0">
<c:set var="prefixName" scope="request">의견제출 정보</c:set> <c:set var="prefixName" scope="request">의견제출 정보</c:set>
<!-- Page Body --> <!-- Page Body -->
@ -171,7 +171,7 @@
</div> </div>
<!-- / 업무 버튼 표시 --> <!-- / 업무 버튼 표시 -->
</div> <!-- / Content <div class="container-xxl flex-grow-1 px-0"> --> </div> <!-- / Content <div class="container flex-grow-1 px-0"> -->
</div> <!-- / inner page html <div class="content-wrapper"> --> </div> <!-- / inner page html <div class="content-wrapper"> -->
<script> <script>

@ -4,7 +4,7 @@
<!-- inner page html --> <!-- inner page html -->
<div class="content-wrapper"> <div class="content-wrapper">
<!-- Content --> <!-- Content -->
<div class="container-xxl flex-grow-1 px-0"> <div class="container flex-grow-1 px-0">
<c:set var="prefixName" scope="request">의견제출 심의 정보</c:set> <c:set var="prefixName" scope="request">의견제출 심의 정보</c:set>
<!-- Page Body --> <!-- Page Body -->
@ -123,7 +123,7 @@
</div> </div>
<!-- / 업무 버튼 표시 --> <!-- / 업무 버튼 표시 -->
</div> <!-- / Content <div class="container-xxl flex-grow-1 px-0"> --> </div> <!-- / Content <div class="container flex-grow-1 px-0"> -->
</div> <!-- / inner page html <div class="content-wrapper"> --> </div> <!-- / inner page html <div class="content-wrapper"> -->
<script> <script>

@ -4,7 +4,7 @@
<!-- inner page html --> <!-- inner page html -->
<div class="content-wrapper"> <div class="content-wrapper">
<!-- Content --> <!-- Content -->
<div class="container-xxl flex-grow-1 px-0"> <div class="container flex-grow-1 px-0">
<c:set var="prefixName" scope="request">과태료 감경 정보</c:set> <c:set var="prefixName" scope="request">과태료 감경 정보</c:set>
<!-- Page Body --> <!-- Page Body -->
@ -76,7 +76,7 @@
</div> </div>
<!-- / 업무 버튼 표시 --> <!-- / 업무 버튼 표시 -->
</div> <!-- / Content <div class="container-xxl flex-grow-1 px-0"> --> </div> <!-- / Content <div class="container flex-grow-1 px-0"> -->
</div> <!-- / inner page html <div class="content-wrapper"> --> </div> <!-- / inner page html <div class="content-wrapper"> -->
<script> <script>

@ -4,7 +4,7 @@
<!-- inner page html --> <!-- inner page html -->
<div class="content-wrapper"> <div class="content-wrapper">
<!-- Content --> <!-- Content -->
<div class="container-xxl flex-grow-1 px-0"> <div class="container flex-grow-1 px-0">
<c:set var="prefixName" scope="request">납부자 정보</c:set> <c:set var="prefixName" scope="request">납부자 정보</c:set>
<!-- Page Body --> <!-- Page Body -->
@ -129,7 +129,7 @@
</div> </div>
<!-- / 업무 버튼 표시 --> <!-- / 업무 버튼 표시 -->
</div> <!-- / Content <div class="container-xxl flex-grow-1 px-0"> --> </div> <!-- / Content <div class="container flex-grow-1 px-0"> -->
</div> <!-- / inner page html <div class="content-wrapper"> --> </div> <!-- / inner page html <div class="content-wrapper"> -->
<script> <script>

@ -154,7 +154,7 @@
</div> </div>
<span class="container-window-btn-right"> <span class="container-window-btn-right">
<!-- 업무 버튼 --> <!-- 업무 버튼 -->
<button type="button" class="btn btn-primary" id="btnCreateWrngSndngTrg--${pageName}" title="계고장 발송 등록" onclick="fnCreateWrngSndngTrg${pageName}();"> <button type="button" class="btn btn-primary" id="btnWrngSndngTrgInfo--${pageName}" title="계고장 발송 등록" onclick="fnWrngSndngTrgInfo${pageName}();">
계고장 발송 등록 계고장 발송 등록
</button> </button>
<button type="button" class="btn btn-primary" id="btnLevyExclInfo--${pageName}" title="계고 수정" onclick="fnLevyExclInfo${pageName}();"> <button type="button" class="btn btn-primary" id="btnLevyExclInfo--${pageName}" title="계고 수정" onclick="fnLevyExclInfo${pageName}();">
@ -186,9 +186,6 @@
<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: 140px;" 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: 160px;" 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: 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: 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>
@ -199,10 +196,10 @@
<tbody id="tbody--${pageName}"> <tbody id="tbody--${pageName}">
</tbody> </tbody>
<template id="${infoPrefix}Row--${pageName}"> <template id="${infoPrefix}Row--${pageName}">
<tr data-key="{LEVY_EXCL_ID}"> <tr data-key="{CRDN_ID}">
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td>
<td class="cmn text-center"> <td class="cmn text-center">
<input type="checkbox" class="form-check-input" value="{LEVY_EXCL_ID}" onchange="${pageName}Control.select('{LEVY_EXCL_ID}', this.checked);"> <input type="checkbox" class="form-check-input" value="{CRDN_ID}" onchange="${pageName}Control.select('{CRDN_ID}', this.checked);">
</td> </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>
@ -213,9 +210,6 @@
<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-end" onclick="{onclick}" ondblclick="{ondblclick}">{FFNLG_CRDN_AMT}</td> <td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{FFNLG_CRDN_AMT}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_STTS_NM}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_STTS_NM}</td>
<td class="cmn text-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}">{ZIP}</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>
@ -225,7 +219,7 @@
</template> </template>
<template id="${infoPrefix}NotFound--${pageName}"> <template id="${infoPrefix}NotFound--${pageName}">
<tr class="odd"> <tr class="odd">
<td valign="top" colspan="19" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td> <td valign="top" colspan="16" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
</tr> </tr>
</template> </template>
</table> </table>
@ -264,13 +258,14 @@
prefix : "wrngSndngTrgt" prefix : "wrngSndngTrgt"
, prefixName : "계고장 발송 대상" , prefixName : "계고장 발송 대상"
, infoSize : "lg" , infoSize : "lg"
, keymapper : info => info ? info.LEVY_EXCL_ID : "" , keymapper : info => info ? info.CRDN_ID : ""
, dataGetter : obj => obj.wrngSndngTrgtList , dataGetter : obj => obj.wrngSndngTrgtList
, appendData : true , appendData : true
, tableRenderComplete : false // dataTables 에 자료 추가 완료 여부 , tableRenderComplete : false // dataTables 에 자료 추가 완료 여부
, formats : { , formats : {
LEVY_EXCL_YMD : dateFormat LEVY_EXCL_YMD : dateFormat
, CRDN_YMD_TM : datetimeFormat , CRDN_YMD_TM : datetimeFormat
, FFNLG_CRDN_AMT : numberFormat
, REG_DT : datetimeFormat , REG_DT : datetimeFormat
, MDFCN_DT : datetimeFormat , MDFCN_DT : datetimeFormat
} }
@ -299,7 +294,7 @@
${pageName}Control.onCurrentChange = item => { ${pageName}Control.onCurrentChange = item => {
if (!item) return; if (!item) return;
let key = item.data.LEVY_EXCL_ID; let key = item.data.CRDN_ID;
$("#tbody--${pageName}").setCurrentRow(key); $("#tbody--${pageName}").setCurrentRow(key);
}; };
@ -358,7 +353,7 @@
${infoPrefix}List.inStrings( ${infoPrefix}List.inStrings(
document.getElementById("${infoPrefix}Row--${pageName}").innerHTML, <%-- from template#${infoPrefix}Row --%> document.getElementById("${infoPrefix}Row--${pageName}").innerHTML, <%-- from template#${infoPrefix}Row --%>
(str, dataItem) => str (str, dataItem) => str
.replace(/{onclick}/gi, "${pageName}Control.setCurrent('" + dataItem.getValue("LEVY_EXCL_ID") + "');") .replace(/{onclick}/gi, "${pageName}Control.setCurrent('" + dataItem.getValue("CRDN_ID") + "');")
.replace(/{ondblclick}/gi, "${pageName}Control.getInfo('" + dataItem.getValue("CRDN_ID") + "');") .replace(/{ondblclick}/gi, "${pageName}Control.getInfo('" + dataItem.getValue("CRDN_ID") + "');")
); );
@ -541,7 +536,7 @@
} }
// 계고장 발송 등록 // 계고장 발송 등록
fnCreateWrngSndngTrg${pageName} = () => { fnWrngSndngTrgInfo${pageName} = () => {
let params = { let params = {
callPurpose : "create" callPurpose : "create"
, sggCd : ${pageName}Control.dataset.getValue("SGG_CD") // 시군구 코드 , sggCd : ${pageName}Control.dataset.getValue("SGG_CD") // 시군구 코드

@ -4,184 +4,253 @@
<!-- inner page html --> <!-- inner page html -->
<div class="content-wrapper"> <div class="content-wrapper">
<!-- Content --> <!-- Content -->
<div class="container-xxl flex-grow-1 px-0"> <div class="container flex-grow-1 px-0">
<c:set var="prefixName" scope="request">부과제외 정보</c:set>
<!-- Page Body --> <!-- Page Body -->
<div class="card"> <div class="card">
<!-- 입력 영역 --> <!-- 상단 버튼 -->
<form id="frmEdit--${pageName}" name="frmEdit"> <div class="container-page-btn">
<!-- hidden --> <span class="container-window-btn-right">
<input type="hidden" id="crdnId--${pageName}" name="crdnId" data-map="CRDN_ID" /> <button type="button" class="btn btn-search" id="btnExcel--${pageName}" title="엑셀" onclick="fnExcel${pageName}();">
<input type="hidden" id="sggCd--${pageName}" name="sggCd" data-map="SGG_CD" /> 엑셀
<input type="hidden" id="taskSeCd--${pageName}" name="taskSeCd" data-map="TASK_SE_CD" /> </button>
<input type="hidden" id="levyExclId--${pageName}" name="levyExclId" data-map="LEVY_EXCL_ID" /> </span>
</div>
<!-- / 상단 버튼 -->
<form id="frmEdit--${pageName}" name="frmEdit">
<div class="row g-1"> <div class="row g-1">
<!-- 차량번호 --> <!-- 총 건수 -->
<div class="col-md-12"> <div class="col-md-12 text-end px-2">
<label for="vhrno--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">차량번호</label> <label for="tnocs--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">총건수/금액</label>
<input type="text" class="form-control w-px-120" id="vhrno--${pageName}" name="vhrno" data-map="VHRNO" readonly /> <input type="text" class="form-control w-px-80 text-end" id="tnocs--${pageName}" name="tnocs" readonly />
</div> <input type="text" class="form-control w-px-140 text-end" id="gramt--${pageName}" name="gramt" readonly />
<!-- 부과 제외 구분 -->
<div class="col-md-12">
<label for="levyExclSeNm--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required">부과제외구분</label>
<input type="text" class="form-control w-px-120" id="levyExclSeNm--${pageName}" readonly />
<input type="hidden" id="levyExclSeCd--${pageName}" name="levyExclSeCd" data-map="LEVY_EXCL_SE_CD" />
</div> </div>
<!-- 부과 제외 일자 --> <!-- 발송 일자 -->
<div class="col-md-12"> <div class="col-md-12">
<label for="levyExclYmd--${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="levyExclYmd--${pageName}" name="levyExclYmd" data-map="LEVY_EXCL_YMD" <input type="text" class="form-control form-date" id="sndngYmd--${pageName}" name="sndngYmd" data-map="SNDNG_YMD"
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-12">
<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" />
</div>
<!-- 제목 명 -->
<div class="col-md-12"> <div class="col-md-12">
<label for="levyExclRsnCd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required">부과제외사유</label> <label for="ttlNm--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">제목</label>
<select class="form-select" id="levyExclRsnCd--${pageName}" name="levyExclRsnCd" data-map="LEVY_EXCL_RSN_CD" required> <input type="text" class="form-control w-75 text-end" id="ttlNm--${pageName}" name="ttlNm" data-map="TTL_NM" />
<option value="">선택하세요</option>
<c:forEach items="${FIM022List}" var="item">
<option value="${item.code}">${item.value}</option>
</c:forEach>
</select>
</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-80" 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="3" data-maxlengthb="1000">
</textarea> </textarea>
</div> </div>
</div> </div> <!-- <div class="row g-1"> -->
</form> <!-- /입력 영역 --> </form>
</div> <!-- <div class="card"> -->
<!-- 업무 버튼 표시 --> <!-- 업무 버튼 및 건수 표시 -->
<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 w-px-80" id="btnSave--${pageName}" title="저장" onclick="fnSave${pageName}()">저장</button> <button type="button" class="btn btn-primary" id="btnCreateWrngSndng--${pageName}" title="계고장 발송 등록" onclick="fnCreateWrngSndng${pageName}();">
등록
</button>
</span> </span>
</span> </span>
</div> </div>
<!-- / 업무 버튼 표시 --> <!-- / 업무 버튼 및 건수 표시 -->
</div> <!-- / Content <div class="container-xxl flex-grow-1 px-0"> --> <!-- DataTables(그리드) -->
</div> <!-- / inner page html <div class="content-wrapper"> --> <div class="card-datatable text-nowrap">
<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:280px; 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">
<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: 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: 280px;" onclick="searchFromGridTitle('ETC_CN', this.innerText, 'match', 'part');">기타내용</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: 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: 140px;" 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: 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('ZIP', this.innerText, 'match', 'part');">우편번호</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="{CRDN_ID}">
<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-start" onclick="{onclick}" ondblclick="{ondblclick}">{ETC_CN}</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}">{CRDN_STDG_NM}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_PLC}</td>
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{FFNLG_CRDN_AMT}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_STTS_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}">{ZIP}</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="17" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
</tr>
</template>
</table>
</div>
</div>
</div>
<!-- / DataTables(그리드) -->
</div> <!-- <div class="card"> -->
</div> <!-- / Content <div class="container flex-grow-1 px-0"> -->
</div>
<!-- / inner page html <div class="content-wrapper"> -->
<script> <script>
/************************************************************************** /**************************************************************************
* Global Variable * Global Variable
**************************************************************************/ **************************************************************************/
// URL // URL
var ${pageName}PrefixUrl = "/excl/excl01"; var ${pageName}PrefixUrl = "/sndb/sndb01";
// FormFields
var ${pageName}Fields = new FormFields("#frmEdit--${pageName}");
// 공통 코드
var FIM021 = new CommonCodes(${FIM021}, true);
var FIM022 = new CommonCodes(${FIM022}, true);
// 호출한 Page Name
var openerPageName = "${openerPageName}";
/************************************************************************** /**************************************************************************
* DatasetControl * DatasetControl
**************************************************************************/ **************************************************************************/
var ${pageName}Control = new DatasetControl({ var ${pageName}Control = new DatasetControl({
prefix : "levyExcl" prefix : "wrngSndngTrgtInfo"
, prefixName : "부과제외" , prefixName : "계고장 발송 대상"
, keymapper : info => info ? info.LEVY_EXCL_ID : "" , keymapper : info => info ? info.CRDN_ID : ""
, dataGetter : obj => obj.levyExclInfo , dataGetter : obj => obj.wrngSndngTrgtInfoList
, urls : { , appendData : true
create : wctx.url(${pageName}PrefixUrl + "/020/create.do") // 등록 , tableRenderComplete : false // dataTables 에 자료 추가 완료 여부
, update : wctx.url(${pageName}PrefixUrl + "/020/update.do") // 수정
}
, formats : { , formats : {
LEVY_EXCL_YMD : dateFormat LEVY_EXCL_YMD : dateFormat
, CRDN_YMD_TM : datetimeFormat
, FFNLG_CRDN_AMT : numberFormat
, REG_DT : datetimeFormat
, MDFCN_DT : datetimeFormat
} }
}); });
${pageName}Control.onCurrentChange = item => {
// Dataset 셋팅
${pageName}Fields.set(item);
// 업무구분에 따른 url 변경
${pageName}Control.urls.create = wctx.url(item.data.TASK_SE_CD + ${pageName}PrefixUrl + "/020/create.do");
${pageName}Control.urls.update = wctx.url(item.data.TASK_SE_CD + ${pageName}PrefixUrl + "/020/update.do");
// 부과제외구분에 따른 부과제외사유 셋팅
setFim021(item.data.LEVY_EXCL_SE_CD, item.data.LEVY_EXCL_RSN_CD);
}
/************************************************************************** /**************************************************************************
* DatasetControl 이벤트 * DatasetControl 이벤트
**************************************************************************/ **************************************************************************/
// 저장 callback // Dataset 변경 이벤트
${pageName}Control.onSave = (resp) => { ${pageName}Control.onDatasetChange = obj => {
let dialogTitle = $("#" + ${pageName}Control.prefix + "Dialog").find("h5.modal-title").html(); renderList${pageName}();
let showMessage = resp.retMessage.replace(/[S]|[F]/g, dialogTitle);
dialog.alert(showMessage); $("#paging--${pageName}").setPagingInfo({
list : ${pageName}Control.dataset
, prefix : "paging--${pageName}"
, start : obj.${infoPrefix}Start
, totalSize : obj.${infoPrefix}Total
, fetchSize : obj.${infoPrefix}Fetch
, func : "${pageName}Control.load({index})"
});
if (resp.saved) { ${pageName}Control.tableRenderComplete = true; // dataTables 에 자료 추가 완료
dialog.close(${pageName}Control.prefix + "Dialog"); };
if ("${savedCallbackFuncName}" != "") { // 현재 선택 자료 변경 이벤트
${savedCallbackFuncName}(resp.saved); ${pageName}Control.onCurrentChange = item => {
} if (!item) return;
}
} let key = item.data.CRDN_ID;
// 저장 $("#tbody--${pageName}").setCurrentRow(key);
${pageName}Control.save = (info) => { };
if (!info) return;
let create = isEmpty(info.levyExclId); // 개별총정보 dialog
${pageName}Control.getInfo = (crdnId) => {
if (crdnId == undefined || crdnId == null || crdnId == "") {
return;
}
let params = {
callControlName : "${pageName}Control"
, crdnId : crdnId
}
// 민원 접수 관리에서 호출했다면.. ajax.get({
if (create && "${saveCallbackFuncName}" != "") { url : ${pageName}Control.urls.getInfo
${saveCallbackFuncName}(info); , data : params || {}
} else { , success : resp => {
ajax.post({ dialog.open({
url : !create ? ${pageName}Control.urls.update : ${pageName}Control.urls.create id : "totalInfoMainDialog"
, data : info , title : "개별총정보"
, success : resp => ${pageName}Control.onSave(resp) , content : resp
, size : "xxl"
, init : () => { }
, onClose : () => { }
}); });
} }
});
} }
/************************************************************************** /**************************************************************************
* *
**************************************************************************/ **************************************************************************/
// 부과제외 구분에 따른 부과제외 사유 코드 설정 // DataTables에 click, dbclick 이벤트
setFim021 = (seCode, rsnCode) => { renderList${pageName} = () => {
let cmnCode = FIM021[seCode]; let ${infoPrefix}List = ${pageName}Control.dataset;
let empty = ${infoPrefix}List.empty;
$("#levyExclSeCd--${pageName}").val(cmnCode.code); let trs = empty ?
$("#levyExclSeNm--${pageName}").val(cmnCode.value); [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("CRDN_ID") + "');")
.replace(/{ondblclick}/gi, "${pageName}Control.getInfo('" + dataItem.getValue("CRDN_ID") + "');")
);
let reasons = FIM022.list().filter(reason => "1" == seCode ? reason.code < "200" : reason.code > "200"); $("#tbody--${pageName}").html(trs.join());
$("#levyExclRsnCd--${pageName}").html(reasons.map(reason => "<option value='" + reason.code + "'>" + reason.value + "</option>").join()); $("th input[type='checkbox']").prop("checked", false);
if (rsnCode != undefined && rsnCode != "") { //보안모드
$("#levyExclRsnCd--${pageName}").val(rsnCode); fn_securityModeToggle($("#securityMode--top").is(":checked"));
}
} }
/************************************************************************** /**************************************************************************
* 초기 셋팅 * 초기 셋팅
**************************************************************************/ **************************************************************************/
// 검색조건 초기값 셋팅 // 화면 초기값 셋팅
initForm${pageName} = () => { initForm${pageName} = () => {
// 달력 초기화 // 달력 초기화
initDatepicker("frmEdit--${pageName}"); initDatepicker("frmSearch--${pageName}");
$("#levyExclYmd--${pageName}").datepicker("setDate", new Date());
$("#sndngYmd--${pageName}").datepicker("setDate", new Date());
${pageName}Control.dataset.clear();
} }
// 이벤트 설정 // 이벤트
setEvent${pageName} = () => { setEvent${pageName} = () => {
// form-date 항목에서 키보드로 입력시 날짜 포맷팅 적용 // form-date 항목에서 키보드로 입력시 날짜 포맷팅 적용
$("#frmEdit--${pageName}").find(".form-date").each(function() { $("#frmSearch--${pageName}").find(".form-date").each(function() {
$(this).on("input", function() { $(this).on("input", function() {
let value = this.value.replaceAll("-", ""); let value = this.value.replaceAll("-", "");
@ -192,22 +261,22 @@
} }
}); });
}); });
// DataTables width 변경 조정
$("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} );
} }
/************************************************************************** /**************************************************************************
* function * 버튼 clickEvent
**************************************************************************/ **************************************************************************/
// 저장 // 엑셀
fnSave${pageName} = () => { fnExcel${pageName} = () => {
// validate 확인
if (!customValidate($("#frmEdit--${pageName}").find("input, select, textarea"))) return;
dialog.alert({
content : "현재 " + ${pageName}Control.prefixName + " 정보를 저장하시겠습니까?"
, onOK : () => {
${pageName}Control.save(${pageName}Fields.get());
} }
});
// 계고장 등록
fnCreateWrngSndng${pageName} = () => {
} }
/************************************************************************** /**************************************************************************
@ -217,11 +286,11 @@
// 이벤트 설정 // 이벤트 설정
setEvent${pageName}(); setEvent${pageName}();
// 화면 초기 설정 // 보안모드
initForm${pageName}(); fn_securityModeToggle($("#securityMode--top").is(":checked"));
// Dataset 셋팅 - 단건일 경우 setData // Dataset 셋팅 - 화면이 열리면서 조회하는 경우 addData 하여 자료를 추가
${pageName}Control.setData([${levyExclInfo}]); ${pageName}Control.addData(${wrngSndngTrgtInfo});
}); });
</script> </script>

Loading…
Cancel
Save