고지서 발송 현황 수정.

main
JoJH 1 day ago
parent 652dfb6f3d
commit 3135f7b25a

@ -219,7 +219,7 @@
<div class="content-backdrop fade"></div> <div class="content-backdrop fade"></div>
</div> </div>
<!-- / Inner page html --> <!-- / Inner page html -->
<script> <script>
LoadScript("sndb01070Script", wctx.url("/webjars/js/fims/sndb/sndb01070.js?ver=${ver}")); LoadScript("sndb01070Script", wctx.url("/webjars/js/fims/sndb/sndb01070.js?ver=${ver}"));
@ -329,7 +329,7 @@
$P.fnReset(taskSeCd); $P.fnReset(taskSeCd);
// 업무구분에 따른 URL 설정 // 업무구분에 따른 URL 설정
$P.ctrl.urls.load = wctx.url("/" + taskSeCd + $P.prefixUrl + "/070/list.do"); // 조회 $P.ctrl.urls.load = wctx.url("/" + taskSeCd + $P.prefixUrl + "/070/list.do"); // 검색
$P.ctrl.urls.remove = wctx.url("/" + taskSeCd + $P.prefixUrl + "/070/remove.do"); // 삭제 $P.ctrl.urls.remove = wctx.url("/" + taskSeCd + $P.prefixUrl + "/070/remove.do"); // 삭제
$P.ctrl.urls.getInfo = wctx.url("/" + taskSeCd + $P.prefixUrl + "/080/info.do"); // 상세 정보 $P.ctrl.urls.getInfo = wctx.url("/" + taskSeCd + $P.prefixUrl + "/080/info.do"); // 상세 정보

@ -157,8 +157,6 @@
**************************************************************************/ **************************************************************************/
pageObject["${pageName}"] = newDoctxFinder("${pageName}"); pageObject["${pageName}"] = newDoctxFinder("${pageName}");
/************************************************************************** /**************************************************************************
* script 진입 * script 진입
**************************************************************************/ **************************************************************************/

File diff suppressed because it is too large Load Diff

@ -3,492 +3,486 @@
<c:set var="prefixName" scope="request">고지서 발송 현황 상세 정보</c:set> <c:set var="prefixName" scope="request">고지서 발송 현황 상세 정보</c:set>
<!-- inner page html --> <!-- Inner page html -->
<div class="content-pop"> <div class="content-wrapper" data-doctx="${pageName}">
<!-- Content --> <!-- Content -->
<div class="container flex-grow-1 px-0"> <div class="container flex-grow-1 px-0">
<!-- Page Body -->
<!-- Page Body --> <div class="card wrapper-pop">
<div class="card"> <!-- 입력 영역 -->
<!-- 입력 영역 --> <form name="frmEdit">
<form id="frmEdit--${pageName}" name="frmEdit"> <input type="hidden" name="sggCd" />
<input type="hidden" id="sggCd--${pageName}" name="sggCd" /> <input type="hidden" name="taskSeCd" />
<input type="hidden" id="taskSeCd--${pageName}" name="taskSeCd" /> <input type="hidden" name="sndngId" />
<input type="hidden" id="sndngId--${pageName}" name="sndngId" /> </form>
</form> <!-- 입력 영역 -->
<!-- 입력 영역 -->
<!-- 업무 버튼 및 건수 표시 -->
<!-- 업무 버튼 및 건수 표시 --> <div>
<div> <span class="container-page-btn" name="gridButtonArea">
<span class="container-page-btn"> <!-- 건수, 페이지 표시 -->
<!-- 건수, 페이지 표시 --> <div class="d-flex flex-row justify-content-between">
<div class="d-flex flex-row justify-content-between"> <span is="paging-info" class="dataTables_info" name="dataPagingInfo" role="status" aria-live="polite"></span>
<span class="dataTables_info" id="paging--${pageName}PagingInfo" role="status" aria-live="polite"></span> <ul class="pagination pagination-primary" name="dataPaging">
<ul class="pagination pagination-primary" id="paging--${pageName}"> </ul>
</ul> </div>
</div> <!-- 업무 버튼 -->
<!-- 업무 버튼 --> <span class="container-window-btn-right">
<span class="container-window-btn-right"> <button type="button" class="btn btn-excel w-px-120" name="btnExcel" title="엑셀">
<button type="button" class="btn btn-excel w-px-120" id="btnExcel--${pageName}" title="엑셀 저장"> 엑셀
엑셀 저장 </button>
</button> <button type="button" class="btn btn-primary w-px-120" name="btnCreateSndngLink" title="우편 통합 발송">
<button type="button" class="btn btn-primary w-px-120" id="btnPrintNhtPdf01--${pageName}" title="고지서 출력(PDF-A4)"> 우편 통합 발송
고지서 출력(PDF-A4) </button>
</button> <button type="button" class="btn btn-primary w-px-120" name="btnPrintNhtPdf01" title="고지서 출력(PDF-A4)">
<button type="button" class="btn btn-primary w-px-120" id="btnPrintNhtPdf02--${pageName}" title="고지서 출력(PDF-Letter)"> 고지서 출력(PDF-A4)
고지서 출력(PDF-Letter) </button>
</button> <button type="button" class="btn btn-primary w-px-120" name="btnPrintNhtPdf02" title="고지서 출력(PDF-Letter)">
<button type="button" class="btn btn-primary w-px-120" id="btnPrintNhtOutsourcing--${pageName}" title="고지서 출력(외주파일)"> 고지서 출력(PDF-Letter)
고지서 출력(외주파일) </button>
</button> <button type="button" class="btn btn-primary w-px-120" name="btnPrintNhtOutsourcing" title="고지서 출력(외주파일)">
<button type="button" class="btn btn-primary w-px-120" id="btnCreateSndbk--${pageName}" title="반송 등록"> 고지서 출력(외주파일)
반송 확인 </button>
</button> <button type="button" class="btn btn-primary w-px-120" name="btnCreateSndbk" title="반송 확인">
</span> 반송 확인
</span> </button>
</div> <!-- 업무 버튼 및 건수 표시 --> </span>
</span>
<!-- DataTables(그리드) --> </div> <!-- 업무 버튼 및 건수 표시 -->
<div class="card-datatable text-nowrap">
<div class="dataTables_wrapper dt-bootstrap5 no-footer" id="DataTables_Table_0_wrapper--${pageName}"> <!-- DataTables(그리드) -->
<div class="table-responsive ox-scroll oy-scroll h-px-500" id="table-responsive--${pageName}"> <div class="card-datatable text-nowrap">
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--${pageName}" aria-describedby="DataTables_Table_0_info"> <div class="dataTables_wrapper dt-bootstrap5 no-footer">
<thead class="sticky-thead"> <div class="table-responsive ox-scroll oy-scroll h-px-400" name="tableRspns">
<tr id="theadTr--${pageName}" <table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" aria-describedby="DataTables_Table_0_info">
data-by="by--${pageName}" data-by-output="byOutput--${pageName}" data-main-option="mainOption--${pageName}" data-sub-option="subOption--${pageName}"> <thead class="sticky-thead">
<th class="cmn" style="width: 72px;">No.</th> <tr name="theadTr" data-search-target="[data-doctx='${pageName}']">
<th class="cmn" style="width: 120px;">발송상태</th> <th class="cmn" style="width: 72px;">No.</th>
<th class="cmn" style="width: 160px;">등기번호</th> <th class="cmn" style="width: 120px;">발송상태</th>
<th class="cmn" style="width: 120px;">발송일자</th> <th class="cmn" style="width: 160px;">등기번호</th>
<th class="cmn" style="width: 120px;">발송종료일자</th> <th class="cmn" style="width: 120px;">발송일자</th>
<th class="cmn" style="width: 200px;">성명</th> <th class="cmn" style="width: 120px;">발송종료일자</th>
<th class="cmn" style="width: 100px;">우편번호</th> <th class="cmn" style="width: 200px;">성명</th>
<th class="cmn" style="width: 280px;">주소</th> <th class="cmn" style="width: 100px;">우편번호</th>
<th class="cmn" style="width: 320px;">상세주소</th> <th class="cmn" style="width: 280px;">주소</th>
<th class="cmn" style="width: 120px;">배달일자</th> <th class="cmn" style="width: 320px;">상세주소</th>
<th class="cmn" style="width: 120px;">배달시각</th> <th class="cmn" style="width: 120px;">배달일자</th>
<th class="cmn" style="width: 200px;">미배달사유</th> <th class="cmn" style="width: 120px;">배달시각</th>
<th class="cmn" style="width: 200px;">수령인</th> <th class="cmn" style="width: 200px;">미배달사유</th>
<th class="cmn" style="width: 200px;">수령인관계</th> <th class="cmn" style="width: 200px;">수령인</th>
<th class="cmn" style="width: 180px;">단속일시</th> <th class="cmn" style="width: 200px;">수령인관계</th>
<th class="cmn" style="width: 160px;">차량번호</th> <th class="cmn" style="width: 180px;">단속일시</th>
<th class="cmn" style="width: 160px;">단속법정동</th> <th class="cmn" style="width: 160px;">차량번호</th>
<th class="cmn" style="width: 280px;">단속장소</th> <th class="cmn" style="width: 160px;">단속법정동</th>
<th class="cmn" style="width: 100px;">회계연도</th> <th class="cmn" style="width: 280px;">단속장소</th>
<th class="cmn" style="width: 100px;">부과번호</th> <th class="cmn" style="width: 100px;">회계연도</th>
<th class="cmn" style="width: 120px;">부과일자</th> <th class="cmn" style="width: 100px;">부과번호</th>
<th class="cmn" style="width: 120px;">납기일자</th> <th class="cmn" style="width: 120px;">부과일자</th>
<th class="cmn" style="width: 120px;">과태료금액</th> <th class="cmn" style="width: 120px;">납기일자</th>
<th class="cmn" style="width: 120px;">본세</th> <th class="cmn" style="width: 120px;">과태료금액</th>
<th class="cmn" style="width: 120px;">가산금</th> <th class="cmn" style="width: 120px;">본세</th>
<th class="cmn" style="width: 120px;">미납금액</th> <th class="cmn" style="width: 120px;">가산금</th>
<th class="cmn" style="width: 180px;">등록일시</th> <th class="cmn" style="width: 120px;">미납금액</th>
<th class="cmn" style="width: 140px;">등록사용자</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 dummy-th"></th> <th class="cmn" style="width: 140px;">수정사용자</th>
</tr> <th class="cmn dummy-th"></th>
</thead> </tr>
<tbody id="tbody--${pageName}"> </thead>
</tbody> <tbody name="tbodyList">
<template id="${infoPrefix}Row--${pageName}"> </tbody>
<tr data-key="{SNDNG_DTL_ID}"> <template is="curly-brackets" name="tmpltRows">
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td> <tr data-index="{data-index}">
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{SNDNG_DTL_STTS_NM}</td> <td class="cmn text-center" onclick ondblclick>{ROW_NUM}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RG_NO}</td> <td class="cmn text-center" onclick ondblclick>{SNDNG_DTL_STTS_NM}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{SNDNG_YMD}</td> <td class="cmn text-center" onclick ondblclick>{RG_NO}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{SNDNG_END_YMD}</td> <td class="cmn text-center" onclick ondblclick>{SNDNG_YMD}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RCPN_NM}</td> <td class="cmn text-center" onclick ondblclick>{SNDNG_END_YMD}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RCPN_ZIP}</td> <td class="cmn text-start" onclick ondblclick>{RCPN_NM}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RCPN_ADDR}</td> <td class="cmn text-center" onclick ondblclick>{RCPN_ZIP}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RCPN_DTL_ADDR}</td> <td class="cmn text-start" onclick ondblclick>{RCPN_ADDR}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DLVR_YMD}</td> <td class="cmn text-start" onclick ondblclick>{RCPN_DTL_ADDR}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DLVR_TM}</td> <td class="cmn text-center" onclick ondblclick>{DLVR_YMD}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{UNDLVR_RSN_NM}</td> <td class="cmn text-center" onclick ondblclick>{DLVR_TM}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{ACTL_RCPN_NM}</td> <td class="cmn text-start" onclick ondblclick>{UNDLVR_RSN_NM}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RCPN_REL_NM}</td> <td class="cmn text-start" onclick ondblclick>{ACTL_RCPN_NM}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_DT}</td> <td class="cmn text-start" onclick ondblclick>{RCPN_REL_NM}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{VHRNO}</td> <td class="cmn text-center" onclick ondblclick>{CRDN_DT}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_STDG_NM}</td> <td class="cmn text-start" onclick ondblclick>{VHRNO}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_PLC}</td> <td class="cmn text-start" onclick ondblclick>{CRDN_STDG_NM}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{FYR}</td> <td class="cmn text-start" onclick ondblclick>{CRDN_PLC}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{LEVY_NO}</td> <td class="cmn text-center" onclick ondblclick>{FYR}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{LEVY_YMD}</td> <td class="cmn text-center" onclick ondblclick>{LEVY_NO}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DUDT_YMD}</td> <td class="cmn text-center" onclick ondblclick>{LEVY_YMD}</td>
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{FFNLG_AMT}</td> <td class="cmn text-center" onclick ondblclick>{DUDT_YMD}</td>
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{PCPTAX}</td> <td class="cmn text-end" onclick ondblclick>{FFNLG_AMT}</td>
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{ADAMT}</td> <td class="cmn text-end" onclick ondblclick>{PCPTAX}</td>
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{SUM_AMT}</td> <td class="cmn text-end" onclick ondblclick>{ADAMT}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{REG_DT}</td> <td class="cmn text-end" onclick ondblclick>{SUM_AMT}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RGTR_NM}</td> <td class="cmn text-center" onclick ondblclick>{REG_DT}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{MDFCN_DT}</td> <td class="cmn text-center" onclick ondblclick>{RGTR_NM}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{MDFR_NM}</td> <td class="cmn text-center" onclick ondblclick>{MDFCN_DT}</td>
<td class="cmn dummy-td"></td> <td class="cmn text-center" onclick ondblclick>{MDFR_NM}</td>
</tr> <td class="cmn dummy-td"></td>
</template> </tr>
<template id="${infoPrefix}NotFound--${pageName}"> </template>
<tr class="odd"> <template name="tmpltNotFound">
<td valign="top" colspan="31" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td> <tr class="odd">
</tr> <td valign="top" colspan="31" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
</template> </tr>
</table> </template>
</div> </table>
</div> </div>
</div> <!-- DataTables(그리드) --> </div>
</div> <!-- <div class="card"> --> </div> <!-- DataTables(그리드) -->
<!-- Page Body --> </div> <!-- <div class="card"> -->
<!-- Page Body -->
<span id="tempArea--${pageName}" hidden></span> </div> <!-- <div class="container flex-grow-1 px-0"> -->
</div> <!-- <div class="container flex-grow-1 px-0"> --> <!-- / Content -->
<!-- Content -->
</div> </div>
<!-- / inner page html <div class="content-wrapper"> --> <!-- / Inner page html -->
<script> <script>
/************************************************************************** LoadScript("sndb01120Script", wctx.url("/webjars/js/fims/sndb/sndb01120.js?ver=${ver}"));
* Global Variable
**************************************************************************/ /**************************************************************************
pageObject["${pageName}"] = {}; * Global Variable
**************************************************************************/
/************************************************************************** pageObject["${pageName}"] = newDoctxFinder("${pageName}");
* script 진입
**************************************************************************/ /**************************************************************************
$(document).ready(function() { * script 진입
// pageObject **************************************************************************/
let $P = pageObject["${pageName}"]; $(document).ready(function() {
// pageObject
// infoDialog 호출 용도(view 조회(편집불가), create 등록, update 수정) let $P = pageObject["${pageName}"];
$P.callPurpose = "${callPurpose}";
// FormFields // URL
$P.formFields = new FimsFormFields("#frmEdit--${pageName}"); $P.prefixUrl = "${prefixUrl}";
// infoDialog 호출 용도(view 조회(편집불가), create 등록, update 수정)
/************************************************************************** $P.callPurpose = "${callPurpose}";
* DatasetControl // datasetControl
**************************************************************************/ $P.ctrl = newSndb01120Control("${pageName}", "[data-doctx=${pageName}]");
$P.control = new DatasetControl({ // main 의 검색 조건을 그대로 유지
prefix: "nhtSndngDtl" $P.ctrl.query = ${mainQuery};
, prefixName: "고지서 발송 상세"
, keymapper: info => info ? info.SNDNG_DTL_ID : "" /**************************************************************************
, dataGetter: obj => obj.${infoPrefix}List * DataTables 이벤트
, appendData: true **************************************************************************/
, formats: { // dataTable 클릭 이벤트
SNDNG_YMD: dateFormat $P.dataTableClick = (dataIndex) => {
, SNDNG_END_YMD: dateFormat if (!dataIndex) return;
, DLVR_YMD: dateFormat
, LEVY_YMD: dateFormat $P.$findn("tbodyList").setCurrentRow(dataIndex);
, DUDT_YMD: dateFormat
, FFNLG_AMT: numberFormat Apply.toDataset.current($P.ctrl.dataset, dataIndex);
, PCPTAX: numberFormat }
, ADAMT: numberFormat
, SUM_AMT: numberFormat // dataTable 더블 클릭 이벤트 - 개별총정보 dialog
, REG_DT: datetimeFormat $P.dataTableDblClick = (dataIndex) => {
, MDFCN_DT: datetimeFormat if (!dataIndex) return;
}
}); // 단속 ID
// $P.control 설정 let crdnId = $P.ctrl.getValue("CRDN_ID");
$P.control.defaultFetchSize = FETCH_XS; // 1 페이지당 조회되는 자료 건수 index.jsp에서 확인 FETCH_XS = 30 if (!crdnId) return;
$P.control.query = { pageNum : 1, fetchSize : $P.control.defaultFetchSize };
$P.control.beforeCurrent = null; let params = {
callPageName: "${pageName}"
, callPurpose: "view"
/************************************************************************** , sggCd: $P.ctrl.getValue("SGG_CD")
* DatasetControl 이벤트 , taskSeCd: $P.ctrl.getValue("TASK_SE_CD")
**************************************************************************/ , crdnId: $P.ctrl.getValue("CRDN_ID")
// Dataset 변경 이벤트 }
$P.control.onDatasetChange = (obj, option) => {
$P.renderList(obj.${infoPrefix}Total, option); ajax.get({
url: wctx.url("/sprt/sprt02/010/main.do")
$("#paging--${pageName}").setPagingInfo({ , data: params || {}
list: $P.control.dataset , success: (resp) => {
, prefix: "paging--${pageName}" let dialogName = "totalInfoMainDialog";
, start: obj.${infoPrefix}Start let dialogId = dialogName + "-" + uuid();
, totalSize: obj.${infoPrefix}Total
, fetchSize: obj.${infoPrefix}Fetch dialog.open({
, func: "pageObject['${pageName}'].control.load({index})" id: dialogId
}); , title: "개별총정보"
, size: "xxl"
, content: resp
}; , init: () => {
$("#" + dialogId).attr("name", dialogName);
// 현재 선택 자료 변경 이벤트 $("#" + dialogId).attr("data-ref-doctx", "${pageName}");
$P.control.onCurrentChange = (item) => {
if (!item) return; AppSupport.setDialogZindex();
}
let key = item.data.SNDNG_DTL_ID; , onClose: () => { }
});
$("#tbody--${pageName}").setCurrentRow(key); }
}; });
}
/**************************************************************************
* DataTables 이벤트 // DataTables에 스크롤이 맨 밑으로 이동했을 때 이벤트
**************************************************************************/ $P.scrollDataList = () => {
// DataTables에 click, dbclick 이벤트 // 페이지 증가
$P.renderList = (totalSize, option) => { $P.ctrl.query.pageNum += 1;
let ${infoPrefix}List = $P.control.dataset;
let empty = ${infoPrefix}List.empty; ajax.get({
url: $P.ctrl.urls.load
let trs = empty ? , headers: { Accept: "application/json; charset=utf-8" } // json
[document.getElementById("${infoPrefix}NotFound--${pageName}").innerHTML] : <%-- from template#${infoPrefix}NotFound --%> , data: $P.ctrl.query
${infoPrefix}List.inStrings( , success: (resp) => {
document.getElementById("${infoPrefix}Row--${pageName}").innerHTML, <%-- from template#${infoPrefix}Row --%> if (!$P.ctrl.appendData || $P.ctrl.query.pageNum == 1)
(str, dataItem) => str $P.ctrl.setData(resp);
.replace(/{onclick}/gi, "pageObject['${pageName}'].control.setCurrent('" + dataItem.getValue("SNDNG_DTL_ID") + "');") else {
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].getTotalInfo('" + dataItem.getValue("CRDN_ID") + "');") $P.ctrl.addData(resp);
); }
}
let noMore = (${infoPrefix}List.length >= totalSize); });
let initScroll = ($P.control.query.pageNum < 2); }
if(option != null && option.reloaded){
initScroll = false; /**************************************************************************
} * 사용자 함수(function)
$("#table-responsive--${pageName}")[0].changeContent(trs.join(), initScroll, noMore); **************************************************************************/
// 우편 통합 발송
$P.callbackDate = (obj) => {
//보안모드 if (!obj) return;
fn_securityModeToggle($("#securityMode--top").is(":checked"));
} let params = {
sggCd: $P.$findn("sggCd").val() // 시군구 코드
// DataTables에 스크롤이 맨 밑으로 이동했을 때 이벤트 , taskSeCd: $P.$findn("taskSeCd").val() // 업무 구분 코드
$P.scrollDataList = () => { , sndngId: $P.$findn("sndngId").val() // 발송 ID
, btnTitle: obj.btnTitle // 버튼 title
, sndngYmd: obj.sndngYmd // 발송 일자
$P.control.load($P.control.query.pageNum + 1); , sndngEndYmd: obj.sndngEndYmd // 발송 종료 일자
} , postSndngSeCd: obj.postSndngSeCd // 우편 발송 구분 코드 0 일반, 1 등기
};
// DataTables에 더블 클릭시 개별총정보 dialog
$P.getTotalInfo = (crdnId) => { ajax.post({
if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return; url: wctx.url("/" + params.taskSeCd + $P.prefixUrl + "/120/createSndngLink.do")
, data: params || {}
let params = { , success: (resp) => {
callControlName: "pageObject['${pageName}'].control" let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, params.btnTitle);
, sggCd: $P.control.dataset.getValue("SGG_CD")
, taskSeCd: $P.control.dataset.getValue("TASK_SE_CD") dialog.alert({
, crdnId: crdnId content : showMessage
} , init: () => { AppSupport.setDialogZindex(); }
, onOK: () => { $P.ctrl.reload({all : true}); } // 자료 재조회
ajax.get({ });
url: wctx.url("/sprt/sprt02/010/main.do") }
, data: params });
, success: resp => { }
dialog.open({
id: "totalInfoMainDialog" // 반송 확인(종적결과 등록)
, title: "개별총정보" $P.createSndbk = (params) => {
, content: resp if (!params) return;
, size: "xxl"
}); ajax.post({
} url: wctx.url("/" + params.taskSeCd + $P.prefixUrl + "/230/createSndbkList.do")
}); , data: params || {}
} , success: resp => {
let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, params.btnTitle);
/**************************************************************************
* 사용자 함수(function) dialog.alert({
**************************************************************************/ content: showMessage
// 검색 자료 재조회 , init: () => { AppSupport.setDialogZindex(); }
$P.fnRefreshList = () => { , onOK: () => { $P.ctrl.reload({all : true}); } // 자료 재조회
});
$P.control.reload({all : true}); }
} });
}
// 반송 확인(종적결과 등록)
$P.createSndbk = (params) => { /**************************************************************************
if (!params) return; * 버튼 clickEvent
**************************************************************************/
ajax.post({ // 엑셀 버튼 클릭 이벤트
url: wctx.url("/" + params.taskSeCd + "${infoPrefixUrl}" + "/230/createSndbkList.do") $P.fnExcel = () => {
, data: params || {} if ($P.ctrl.dataset.empty) {
, success: resp => { dialog.alert({
let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, params.title); content: "검색된 자료가 없습니다."
, init: () => { AppSupport.setDialogZindex(); }
dialog.alert({ , onOK: () => { }
content: showMessage });
, init: () => { AppSupport.setDialogZindex(); } return;
, onOK: () => { $P.fnRefreshList(); } // 자료 재조회 }
});
} // DataTables(그리드)
}); $P.ctrl.query.cellDefs =
} AppSupport.getCellDefs($P.$findn("theadTr").find("th").not(".dummy-th").not(":eq(0)")
, $($P.findn("tmpltRows").content).find("td").not(".dummy-td").not(":eq(0)")
/************************************************************************** , FimsSupport.getCellDefsForPrivacyCell);
* 버튼 clickEvent
**************************************************************************/ $P.ctrl.download();
// 엑셀 버튼 이벤트 }
$P.fnExcel = () => {
if ($P.control.dataset.empty) { // 우편통합발송 버튼 이벤트
dialog.alert({ $P.fnCreateSndngLink = async(btnTitle) => {
content: "검색된 자료가 없습니다." // validate 확인
, init: () => { AppSupport.setDialogZindex(); } if (!AppSupport.customValidate($P.$findn("frmEdit").find("input,select,textarea"))) return;
, onOK: () => { }
}); let resp = await fetch(wctx.url("/webjars/html/inputDateDialog.html"));
return; let template = await resp.text();
}
dialog.open({
// 검색조건 id : "inputEPostDateDialog"
$P.control.query = $P.formFields.get(); // 검색 조건 , title: title
$P.control.query.fetchSize = $P.control.defaultFetchSize; // 한번에 조회되는 자료 건수 , size: "md"
$P.control.query.delYn = "N"; // 삭제 여부 , content: template
, init: () => {
// DataTables(그리드) AppSupport.setDialogZindex();
let cellDefs = AppSupport.getCellDefs($("#theadTr--${pageName} th").not(".dummy-th").not(":eq(0)")
, $($("#${infoPrefix}Row--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)") $("#divPostSndng").show();
, FimsSupport.getCellDefsForPrivacyCell); AppSupport.initDatepicker("frmInputDate");
$("#sndngYmd").datepicker("setDate", $P.control.dataset.getValue("SNDNG_YMD"));
$P.control.query.cellDefs = cellDefs; $("#sndngEndYmd").datepicker("setDate", $P.control.dataset.getValue("SNDNG_END_YMD"));
},
$P.control.download(); onOK: () => {
} if (!DateSupport.inputDateComparison($("#sndngYmd").val(), $("#sndngEndYmd").val())) return;
// 고지서 출력 버튼 이벤트 $P.callbackDate({
$P.fnMakeFileNht = (title, fileType, paper) => { "sndngYmd": $("#sndngYmd").val()
// validate 확인 , "sndngEndYmd": $("#sndngEndYmd").val()
if (!AppSupport.customValidate($("#frmEdit--${pageName}").find("input, select, textarea"))) return; , "postSndngSeCd": $("#frmInputDate").find("[name='postSndngSeCd']:checked").val()
});
let submitParam = { }
sggCd: $P.control.dataset.getValue("SGG_CD") // 시군구 코드 });
, taskSeCd: $P.control.dataset.getValue("TASK_SE_CD") // 업무 구분 코드 }
, sndngId: $P.control.dataset.getValue("SNDNG_ID") // 발송 ID
}; // 고지서 출력 버튼 이벤트
$P.fnMakeFileNht = (title, fileType, paper) => {
let url = ""; // validate 확인
let fileTypeName = ""; if (!AppSupport.customValidate($P.$findn("frmEdit").find("input,select,textarea"))) return;
if (fileType == "pdf") { let submitParam = new FimsFormFields($P.selectorn("frmEdit")).get(); // formFields
url = wctx.url("/" + submitParam.taskSeCd + "${infoPrefixUrl}" + "/120/makeNhtPdf.do"); let url = "";
fileTypeName = "PDF 파일"; let fileTypeName = "";
} else if (fileType == "outsourcing") {
url = wctx.url("/" + submitParam.taskSeCd + "${infoPrefixUrl}" + "/120/makeNhtOutsourcing.do"); if (fileType == "pdf") {
fileTypeName = "외주 요청 파일"; url = wctx.url("/" + submitParam.taskSeCd + $P.prefixUrl + "/120/makeNhtPdf.do");
} fileTypeName = "PDF 파일";
} else if (fileType == "outsourcing") {
let inBrowser = false; url = wctx.url("/" + submitParam.taskSeCd + $P.prefixUrl + "/120/makeNhtOutsourcing.do");
if (fileType == "pdf") { fileTypeName = "외주 요청 파일";
submitParam.paperSeCd = paper; }
inBrowser = true;
} let inBrowser = false;
if (fileType == "pdf") {
if (inBrowser) { submitParam.paperSeCd = paper;
var parameter = toQuery(submitParam); inBrowser = true;
var filenameInHeader = ""; }
fetch(url + "?" + parameter) if (inBrowser) {
.then((response) => { var parameter = toQuery(submitParam);
var header = response.headers.get('Content-Disposition'); var filenameInHeader = "";
if(!header){
response.json().then((responseJson)=>{ fetch(url + "?" + parameter)
dialog.alert({ .then((response) => {
content: fileTypeName+" 생성 중 오류가 발생하였습니다." var header = response.headers.get('Content-Disposition');
+"<br/>" if(!header){
+responseJson.description, response.json().then((responseJson)=>{
init: () => { AppSupport.setDialogZindex(); } dialog.alert({
}); content: fileTypeName+" 생성 중 오류가 발생하였습니다."
}); +"<br/>"
new Error(""); +responseJson.description,
} init: () => { AppSupport.setDialogZindex(); }
var parts = header.split(';'); });
filenameInHeader = decodeURIComponent(parts[1].split('=')[1]); });
return response.blob(); new Error("");
}) }
.then((blob) => { var parts = header.split(';');
AppSupport.openPDF(blob, filenameInHeader); filenameInHeader = decodeURIComponent(parts[1].split('=')[1]);
}) return response.blob();
.catch(()=>{}); })
} else { .then((blob) => {
var parameter = toQuery(submitParam); AppSupport.openPDF(blob, filenameInHeader);
document.location.href = url + "?" + parameter; })
} .catch(()=>{});
} } else {
var parameter = toQuery(submitParam);
// 중복자료 삭제 document.location.href = url + "?" + parameter;
$P.fnRemoveDpcnData = () => { }
// }
}
// 중복자료 삭제
// 반송(종적결과) 확인 $P.fnRemoveDpcnData = (btnTitle) => {
$P.fnCreateSndbk = () => { //
// validate 확인 }
if (!AppSupport.customValidate($("#frmEdit--${pageName}").find("input, select, textarea"))) return;
// 반송확인 버튼 이벤트
dialog.alert({ $P.fnCreateSndbk = (btnTitle) => {
content: "종적결과를 확인하시겠습니까?" // validate 확인
, onOK: () => { if (!AppSupport.customValidate($P.$findn("frmEdit").find("input,select,textarea"))) return;
// 파리미터 설정
let params = $P.formFields.get(); // mainQuery dialog.alert({
params.title = title; // 타이틀 content: "종적결과를 확인하시겠습니까?"
, onOK: () => {
$P.createSndbk(params); let params = new FimsFormFields($P.selectorn("frmEdit")).get(); // formFields
} params.title = btnTitle; // 버튼 타이틀
});
} $P.createSndbk(params);
}
/************************************************************************** });
* 초기 셋팅 }
**************************************************************************/
// 이벤트 설정 /**************************************************************************
$P.setEvent = () => { * 초기 셋팅
// 기본 버튼 이벤트 **************************************************************************/
$("#btnExcel--${pageName}").on("click", () => $P.fnExcel()); // 엑셀 // 이벤트 설정
$P.setEvent = () => {
// 업무 버튼 이벤트 // 기본 버튼 이벤트
$("#btnPrintNhtPdf01--${pageName}").on("click", function() { $P.$findn("btnExcel").on("click", () => $P.fnExcel()); // 엑셀
$P.fnMakeFileNht($(this).attr("title"), "pdf", "01"); // 고지서 출력(PDF-A4)
}); // 업무 버튼 이벤트
$("#btnPrintNhtPdf02--${pageName}").on("click", function() { $P.$findn("btnCreateSndngLink").on("click", function() {
$P.fnMakeFileNht($(this).attr("title"), "pdf", "01"); // 고지서 출력(PDF-Letter) $P.fnCreateSndngLink($P.$findn("btnCreateSndngLink").attr("title")); // 우편 통합 발송
}); });
$("#btnPrintNhtOutsourcing--${pageName}").on("click", function() { $P.$findn("btnPrintNhtPdf01").on("click", function() {
$P.fnMakeFileNht($(this).attr("title"), "outsourcing") // 고지서 출력(외주파일) $P.fnMakeFileNht($P.$findn("btnPrintNhtPdf01").attr("title"), "pdf", "01"); // 고지서 출력(PDF-A4)
}); });
$("#btnCreateSndbk--${pageName}").on("click", function() { $P.$findn("btnPrintNhtPdf02").on("click", function() {
$P.fnCreateSndbk($(this).attr("title")); // 반송 등록 $P.fnMakeFileNht($P.$findn("btnPrintNhtPdf02").attr("title"), "pdf", "02"); // 고지서 출력(PDF-Letter)
}); });
$P.$findn("btnPrintNhtOutsourcing").on("click", function() {
// DataTables width 변경 조정 $P.fnMakeFileNht($P.$findn("btnPrintNhtOutsourcing").attr("title"), "outsourcing"); // 고지서 출력(외주파일)
Componentization.fnMakeResizableTable($("#table-responsive--${pageName}")[0]); });
$P.$findn("btnCreateSndbk").on("click", function() {
// DataTables 스크롤 이벤트 생성 $P.fnCreateSndbk($P.$findn("btnCreateSndbk").attr("title")); // 반송 등록
Componentization.fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList); });
// DataTables 스크롤을 위해서 다이얼로그 화면이 생성된 후 Dataset을 설정한다. // DataTables 스크롤을 위해서 다이얼로그 화면이 생성된 후 Dataset을 설정한다.
$("#${infoPrefix}Dialog--${openerPageName}").on("shown.bs.modal", function (e) { let modalId = $(document.querySelector("[data-doctx='${pageName}']")).parents(".modal")[0].id;
$P.control.setData({ $("#" + modalId).on("shown.bs.modal", function (e) {
${infoPrefix}List: ${nhtSndngDtlList} $P.ctrl.setData( {List: ${List}, Paging :${Paging}} );
, ${infoPrefix}Start: ${nhtSndngDtlStart} });
, ${infoPrefix}Fetch: ${nhtSndngDtlFetch}
, ${infoPrefix}Total: ${nhtSndngDtlTotal} // DataTables width 변경 조정
}); Componentization.fnMakeResizableTable($P.findn("tableRspns"));
}); // DataTables 스크롤 이벤트 생성
} Componentization.fnMakeScrollableTable($P.findn("tableRspns"), $P.scrollDataList);
}
// 초기 화면 설정
$P.initForm = () => { // 초기화 이벤트
// 화면 초기화 $P.fnReset = (taskSeCd) => {
$("#frmEdit--${pageName}")[0].reset(); // 초기화
$P.findn("frmEdit").reset(); // 화면 초기화
// 기본 데이터 설정
$("#sggCd--${pageName}").val("${sggCd}"); // 시군구 코드 // 기본 데이터 설정
$("#taskSeCd--${pageName}").val("${taskSeCd}"); // 업무 구분 코드 $P.$findn("sggCd").val("${sggCd}"); // 시군구 코드
$("#sndngId--${pageName}").val("${sndngId}"); // 발송 ID $P.$findn("taskSeCd").val("${taskSeCd}"); // 업무 구분 코드
$P.$findn("sndngId").val("${sndngId}"); // 발송 ID
// 업무 구분별 설정
$P.setTask("${taskSeCd}"); // 업무 구분에 따른 URL 설정
} $P.ctrl.urls.load = wctx.url("/" + "${taskSeCd}" + $P.prefixUrl + "/120/list.do");
}
// 업무 구분별 설정
$P.setTask = (taskSeCd) => { /**************************************************************************
// 업무구분에 따른 URL 설정 * 최초 실행 함수
$P.control.urls.load = wctx.url("/" + taskSeCd + "${infoPrefixUrl}" + "/120/list.do"); // 검색 **************************************************************************/
} // 1. 이벤트 설정
$P.setEvent();
/**************************************************************************
* 최초 실행 함수 // 2. 초기 화면 설정
**************************************************************************/ $P.fnReset();
// 1. 이벤트 설정
$P.setEvent(); // 3. 보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
// 2. 초기 화면 설정 });
$P.initForm();
// 3. 보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
});
</script> </script>

@ -2,7 +2,7 @@ function newSndb01040Control(pageName, doctx="[data-doctx='sndb01040']") {
let ctrl = new DatasetControl({ let ctrl = new DatasetControl({
doctx: doctx doctx: doctx
, prefix: "wrngSndng" , prefix: "wrngSndng"
, prefixName: "계고장 발송 현황" , prefixName: "계고장 발송 상세 현황"
, dataGetter: obj => obj["List"] , dataGetter: obj => obj["List"]
, keys: ["SNDNG_DTL_ID"] , keys: ["SNDNG_DTL_ID"]
, appendData: true , appendData: true

@ -2,7 +2,7 @@ function newSndb01080Control(pageName, doctx="[data-doctx='sndb01080']") {
let ctrl = new DatasetControl({ let ctrl = new DatasetControl({
doctx: doctx doctx: doctx
, prefix: "advntceSndng" , prefix: "advntceSndng"
, prefixName: "사전통지 발송 현황" , prefixName: "사전통지 발송 상세 현황"
, dataGetter: obj => obj["List"] , dataGetter: obj => obj["List"]
, keys: ["SNDNG_DTL_ID"] , keys: ["SNDNG_DTL_ID"]
, appendData: true , appendData: true

@ -0,0 +1,149 @@
function newSndb01070Control(pageName, doctx="[data-doctx='sndb01070']") {
let ctrl = new DatasetControl({
doctx: doctx
, prefix: "nhtSndng"
, prefixName: "고지서 발송 현황"
, dataGetter: obj => obj["List"]
, keys: ["SNDNG_ID"]
, appendData: true
, infoSize: "xxl"
, urls: {
load: "/list.do"
, getInfo: "/info.do"
, remove: "/remove.do"
}
, formats: {
SNDNG_YMD: dateFormat
, SNDNG_END_YMD: dateFormat
, TNOCS: numberFormat
, GRAMT: numberFormat
, REG_DT: datetimeFormat
, MDFCN_DT: datetimeFormat
}
});
// 검색 조건
ctrl.query = { pageNum: 1, fetchSize: DEFAULT_FETCH_SIZE }; // 1 페이지당 자료 건수 index.jsp에서 확인
// paging
ctrl.pagingSupport = new FimsPagingSupport({
ctrl: ctrl // DatasetControl
, ignoreCtrlPrefix: true // ctrl.prefix 가 있더라도 무시
, linkContainer: "[name='dataPaging']" // <ul class="pagination pagination-primary" name="dataPaging">
});
/**************************************************************************
* DatasetControl Events
**************************************************************************/
// Dataset 변경 이벤트
ctrl.onDatasetChange = (obj, option) => {
// 데이터 셋
let dataList = ctrl.dataset;
let empty = dataList.empty;
let clsForTask = $(ctrl.find("[name='frmSearch']")).find("[name='taskSeCd']:checked").val().toLowerCase();
// 업무별 dataTables(그리드) tr, td
let foundContent = ctrl.find("[name='tmpltRows']").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, "pageObject['" + pageName + "'].dataTableClick('{data-index}');")
.replace(/{ondblclick}/gi, "pageObject['" + pageName + "'].dataTableDblClick('{data-index}');");
let trs = empty ?
[ctrl.find("[name='tmpltNotFound']").content.querySelector("." + clsForTask + ",.cmn").outerHTML]
: dataList.inStrings(foundTr.outerHTML, replacer);
let noMore = (dataList.length >= obj["Paging"]?.totalSize); // 전체 건수
let initScroll = (ctrl.query.pageNum < 2);
if (option != null && option.reloaded) {
initScroll = false;
}
// dataTables(그리드)에 자료 표시 td
ctrl.find("[name='tableRspns']").changeContent(trs.join(), initScroll, noMore);
// checkbox 체크 해제
$(ctrl.find("[name='gridAllCheckbox']")).prop("checked", false);
// dataTables(그리드)에 페이지 표시 pagingInfo
ctrl.pagingSupport.setPagingInfo(obj);
// 보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
};
// 현재 선택 자료 변경 이벤트
ctrl.onCurrentChange = (item) => {
Apply.fromDataset.currentRow(ctrl.dataset, item, ctrl.find("[name='tbodyList']"));
};
// 선택(체크) 변경 이벤트
ctrl.onSelectionChange = (selectedArr) => {
// gridCheckbox
Apply.fromDataset.gridCheckbox(ctrl.dataset, ctrl.find("[name='tbodyList']"), 1, selectedArr);
// gridButton
Apply.fromDataset.gridButton(ctrl.dataset, ctrl.find("[name='btnRemove']"), selectedArr); // 삭제 버튼
};
// 상세 정보 dialog
ctrl.getInfo = (params) => {
if (!params) return;
ajax.get({
url: ctrl.urls.getInfo
, data: params || {}
, success: (resp) => {
let dialogName = ctrl.prefixed("Dialog");
let dialogId = dialogName + "-" + uuid();
dialog.open({
id: dialogId
, title: params.btnTitle
, size: ctrl.infoSize
, content: resp
, init: () => {
$("#" + dialogId).attr("name", dialogName);
$("#" + dialogId).attr("data-ref-doctx", pageName);
AppSupport.setDialogZindex();
}
, onClose: () => { ctrl.reload({all : true}); } // 자료 재조회
});
}
});
}
// 삭제 callback
ctrl.onRemove = (params, resp) => {
let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, params.btnTitle);
// 메시지 출력
dialog.alert({
content: showMessage
, init: () => { AppSupport.setDialogZindex(); }
, onOK: () => { }
, onClose: () => {
if (resp.saved) { ctrl.reload({ all: true }); } // 자료 재조회
}
});
}
// 삭제
ctrl.remove = (params) => {
if (!params) return;
ajax.post({
url: ctrl.urls.remove
, data: params || {}
, success: (resp) => { ctrl.onRemove(params, resp); }
});
}
return ctrl;
}

@ -0,0 +1,75 @@
function newSndb01120Control(pageName, doctx="[data-doctx='sndb01120']") {
let ctrl = new DatasetControl({
doctx: doctx
, prefix: "nhtSndng"
, prefixName: "고지서 발송 상세 현황"
, dataGetter: obj => obj["List"]
, keys: ["SNDNG_DTL_ID"]
, appendData: true
, urls: {
load: "/list.do"
}
, formats: {
SNDNG_YMD: dateFormat
, SNDNG_END_YMD: dateFormat
, DLVR_YMD: dateFormat
, LEVY_YMD: dateFormat
, DUDT_YMD: dateFormat
, FFNLG_AMT: numberFormat
, PCPTAX: numberFormat
, ADAMT: numberFormat
, SUM_AMT: numberFormat
, REG_DT: datetimeFormat
, MDFCN_DT: datetimeFormat
}
});
// 검색 조건
ctrl.query = { pageNum: 1, fetchSize: DEFAULT_FETCH_SIZE }; // 1 페이지당 자료 건수 index.jsp에서 확인
// paging
ctrl.pagingSupport = new FimsPagingSupport({
ctrl: ctrl // DatasetControl
, ignoreCtrlPrefix: true // ctrl.prefix 가 있더라도 무시
, linkContainer: "[name='dataPaging']" // <ul class="pagination pagination-primary" name="dataPaging">
});
/**************************************************************************
* DatasetControl Events
**************************************************************************/
ctrl.onDatasetChange = (obj, option) => {
// 데이터 셋
let dataList = ctrl.dataset;
let empty = dataList.empty;
let replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['" + pageName + "'].dataTableClick('{data-index}');")
.replace(/{ondblclick}/gi, "pageObject['" + pageName + "'].dataTableDblClick('{data-index}');");
let trs = empty ?
[ctrl.find("[name='tmpltNotFound']").innerHTML]
: dataList.inStrings(ctrl.find("[name='tmpltRows']").innerHTML, replacer);
let noMore = (dataList.length >= obj["Paging"]?.totalSize); // 전체 건수
let initScroll = (ctrl.query.pageNum < 2);
if (option != null && option.reloaded) {
initScroll = false;
}
// dataTables(그리드)에 자료 표시 td
ctrl.find("[name='tableRspns']").changeContent(trs.join(), initScroll, noMore);
// dataTables(그리드)에 페이지 표시 pagingInfo
ctrl.pagingSupport.setPagingInfo(obj);
// 보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
};
// 현재 선택 자료 변경 이벤트
ctrl.onCurrentChange = (item) => {
Apply.fromDataset.currentRow(ctrl.dataset, item, ctrl.find("[name='tbodyList']"));
};
return ctrl;
}
Loading…
Cancel
Save