|
|
|
|
@ -27,12 +27,9 @@
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 업무 버튼 -->
|
|
|
|
|
<span class="container-window-btn-right">
|
|
|
|
|
<button type="button" class="btn btn-excel w-px-120" name="btnExcel" title="엑셀">
|
|
|
|
|
엑셀
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" name="btnPrintWrng" title="계고장 출력">
|
|
|
|
|
계고장 출력
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="btn btn-excel w-px-120" name="btnExcel" title="엑셀">엑셀</button>
|
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" name="btnCreateSndngLink" title="우편 통합 발송">우편 통합 발송</button>
|
|
|
|
|
<button type="button" class="btn btn-primary w-px-120" name="btnPrintWrng" title="계고장 출력">계고장 출력</button>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
</div> <!-- 업무 버튼 및 건수 표시 -->
|
|
|
|
|
@ -247,7 +244,66 @@
|
|
|
|
|
|
|
|
|
|
$P.ctrl.download();
|
|
|
|
|
}
|
|
|
|
|
// 우편통합발송 버튼 이벤트
|
|
|
|
|
$P.fnCreateSndngLink = async(btnTitle) => {
|
|
|
|
|
// validate 확인
|
|
|
|
|
if (!AppSupport.customValidate($P.$findn("frmEdit").find("input,select,textarea"))) return false;
|
|
|
|
|
|
|
|
|
|
let resp = await fetch(wctx.url("/resources/html/inputDateDialog.html"));
|
|
|
|
|
let template = await resp.text();
|
|
|
|
|
|
|
|
|
|
dialog.open({
|
|
|
|
|
id : "inputEPostDateDialog"
|
|
|
|
|
, title: btnTitle
|
|
|
|
|
, size: "md"
|
|
|
|
|
, content: template
|
|
|
|
|
, init: () => {
|
|
|
|
|
AppSupport.setDialogZindex();
|
|
|
|
|
|
|
|
|
|
$("#divPostSndng").show();
|
|
|
|
|
AppSupport.initDatepicker("frmInputDate");
|
|
|
|
|
$("#sndngYmd").datepicker("setDate", $P.ctrl.dataset.getValue("SNDNG_YMD"));
|
|
|
|
|
$("#sndngEndYmd").datepicker("setDate", $P.ctrl.dataset.getValue("SNDNG_END_YMD"));
|
|
|
|
|
},
|
|
|
|
|
onOK: () => {
|
|
|
|
|
if (!DateSupport.inputDateComparison($("#sndngYmd").val(), $("#sndngEndYmd").val())) return false;
|
|
|
|
|
|
|
|
|
|
$P.callbackDate({
|
|
|
|
|
"sndngYmd": $("#sndngYmd").val()
|
|
|
|
|
, "sndngEndYmd": $("#sndngEndYmd").val()
|
|
|
|
|
, "postSndngSeCd": $("#frmInputDate").find("[name='postSndngSeCd']:checked").val()
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
// 우편 통합 발송
|
|
|
|
|
$P.callbackDate = (obj) => {
|
|
|
|
|
if (!obj) return;
|
|
|
|
|
|
|
|
|
|
let params = {
|
|
|
|
|
sggCd: $P.$findn("sggCd").val() // 시군구 코드
|
|
|
|
|
, taskSeCd: $P.$findn("taskSeCd").val() // 업무 구분 코드
|
|
|
|
|
, sndngId: $P.$findn("sndngId").val() // 발송 ID
|
|
|
|
|
, btnTitle: obj.btnTitle // 버튼 title
|
|
|
|
|
, sndngYmd: obj.sndngYmd // 발송 일자
|
|
|
|
|
, sndngEndYmd: obj.sndngEndYmd // 발송 종료 일자
|
|
|
|
|
, postSndngSeCd: obj.postSndngSeCd // 우편 발송 구분 코드 0 일반, 1 등기
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
ajax.post({
|
|
|
|
|
url: wctx.url($P.prefixUrl + "/080/createSndngLink.do")
|
|
|
|
|
, data: params || {}
|
|
|
|
|
, success: (resp) => {
|
|
|
|
|
let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, params.btnTitle);
|
|
|
|
|
|
|
|
|
|
dialog.alert({
|
|
|
|
|
content : showMessage
|
|
|
|
|
, init: () => { AppSupport.setDialogZindex(); }
|
|
|
|
|
, onOK: () => { $P.ctrl.reload({all : true}); } // 자료 재조회
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
// 계고장출력 버튼 이벤트
|
|
|
|
|
$P.fnPrint = (btnTitle) => {
|
|
|
|
|
// validate 확인
|
|
|
|
|
@ -272,7 +328,9 @@
|
|
|
|
|
$P.setEvent = () => {
|
|
|
|
|
// 기본 버튼 이벤트
|
|
|
|
|
$P.$findn("btnExcel").on("click", () => $P.fnExcel()); // 엑셀
|
|
|
|
|
|
|
|
|
|
$P.$findn("btnCreateSndngLink").on("click", function() {
|
|
|
|
|
$P.fnCreateSndngLink($P.$findn("btnCreateSndngLink").attr("title")); // 우편 통합 발송
|
|
|
|
|
});
|
|
|
|
|
// 버튼 이벤트
|
|
|
|
|
$P.$findn("btnPrintWrng").on("click", function() {
|
|
|
|
|
$P.fnPrint($P.$findn("btnPrintWrng").attr("title")); // 출력
|
|
|
|
|
|