소스정리, dialog focus 제어 수정

master
mjkhan21 6 months ago
parent 780565c37d
commit a137eab7e8

@ -10,16 +10,10 @@
<div class="card wrapper-list">
<!-- 상단 버튼 -->
<div class="container-page-btn">
<button type="button" class="btn btn-outline-dark w-px-120" name="btnReset" title="초기화">
초기화
</button>
<button type="button" class="btn btn-outline-dark w-px-120" name="btnReset" title="초기화">초기화</button>
<span class="container-window-btn-right">
<button type="button" class="btn btn-search w-px-120" name="btnSearch" title="검색">
검색
</button>
<button type="button" class="btn btn-excel w-px-120" name="btnExcel" title="엑셀">
엑셀
</button>
<button type="button" class="btn btn-search w-px-120" name="btnSearch" title="검색">검색</button>
<button type="button" class="btn btn-excel w-px-120" name="btnExcel" title="엑셀">엑셀</button>
</span>
</div>
<!-- 상단 버튼 -->

@ -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> <!-- 업무 버튼 및 건수 표시 -->
@ -258,7 +255,67 @@
$P.ctrl.download();
}
// 우편통합발송 버튼 이벤트
$P.fnCreateSndngLink = async(btnTitle) => {
// validate 확인
if (!AppSupport.customValidate($P.$findn("frmEdit").find("input,select,textarea"))) return;
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;
$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 확인
@ -283,7 +340,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.previewWarning($P.$findn("btnPrintWrng").attr("title")); // 출력

@ -28,32 +28,13 @@
</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="btnLinkNxrpIndivA01" title="세외수입 과태료대장 등록">
과태료대장 등록
</button>
<button type="button" class="btn btn-primary w-px-120" name="btnLinkNxrpIndivA03" 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="btnPrintAdvntcePdf01" title="사전통지 출력(PDF-A4)">
사전통지 출력(PDF-A4)
</button>
<%--
<button type="button" class="btn btn-primary w-px-120" name="btnPrintAdvntcePdf02" title="사전통지 출력(PDF-Letter)">
사전통지 출력(PDF-Letter)
</button>
--%>
<button type="button" class="btn btn-primary w-px-120" name="btnPrintAdvntceOutsourcing" title="사전통지 출력(외주파일)">
사전통지 출력(외주파일)
</button>
<button type="button" class="btn btn-primary w-px-120" name="btnCreateSndbk" 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="btnLinkNxrpIndivA01" title="세외수입 과태료대장 등록">과태료대장 등록</button>
<button type="button" class="btn btn-primary w-px-120" name="btnLinkNxrpIndivA03" 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="btnPrintAdvntcePdf01" title="사전통지 출력(PDF-A4)">사전통지 출력(PDF-A4)</button>
<button type="button" class="btn btn-primary w-px-120" name="btnPrintAdvntceOutsourcing" title="사전통지 출력(외주파일)">사전통지 출력(외주파일)</button>
<button type="button" class="btn btn-primary w-px-120" name="btnCreateSndbk" title="반송 확인">반송 확인</button>
</span>
</span>
</div> <!-- 업무 버튼 및 건수 표시 -->
@ -397,7 +378,6 @@
}
});
}
// 사전통지 출력 버튼 이벤트
$P.fnMakeFileAdvntce = (title, fileType, paper) => {
// validate 확인

@ -238,46 +238,36 @@
</div> <!-- <div class="container-page-btn"> -->
<div class="row g-1">
<div class="col-md-4">
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="rtpyrNm">납부자성명</label>
<input is="id-input" type="text" class="form-control w-55" name="rtpyrNm" data-map="RTPYR_NM" readonly />
</div>
<div class="col-md-4">
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="rtpyrSeNm">납부자구분</label>
<input is="id-input" type="text" class="form-control w-40" name="rtpyrSeNm" data-map="RTPYR_SE_NM" readonly />
</div>
<div class="col-md-4">
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="rtpyrNo">납부자번호</label>
<input is="id-input" type="text" class="form-control w-40" name="rtpyrNo" data-map="RTPYR_NO" readonly />
</div>
<div class="col-md-4">
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="rtpyrTelno">전화번호</label>
<input is="id-input" type="text" class="form-control w-40" name="rtpyrTelno" data-map="RTPYR_TELNO" readonly />
</div>
<div class="col-md-4">
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="rtpyrMblTelno">휴대전화번호</label>
<input is="id-input" type="text" class="form-control w-40" name="rtpyrMblTelno" data-map="RTPYR_MBL_TELNO" readonly />
</div>
<div class="col-md-4">
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="rtpyrEml">이메일</label>
<input is="id-input" type="text" class="form-control w-60" name="rtpyrEml" data-map="RTPYR_EML" readonly />
</div>
<div class="row">
<div class="row col-6">
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="rtpyrNm">납부자</label>
<input is="id-input" type="text" class="form-control w-25" style="margin-left: .3rem;" name="rtpyrNm" data-map="RTPYR_NM" placeholder="이름" readonly />
<input is="id-input" type="text" class="form-control w-10" style="margin-left: .3rem;" name="rtpyrSeNm" data-map="RTPYR_SE_NM" placeholder="구분" readonly />
<input is="id-input" type="text" class="form-control w-25" style="margin-left: .3rem;" name="rtpyrNo" data-map="RTPYR_NO" placeholder="번호" readonly />
</div>
<div class="row col-6">
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="rtpyrNm">연락처</label>
<input is="id-input" type="text" class="form-control w-25" style="margin-left: .3rem;" name="rtpyrMblTelno" data-map="RTPYR_MBL_TELNO" placeholder="휴대전화번호" readonly />
<input is="id-input" type="text" class="form-control w-20" style="margin-left: .3rem;" name="rtpyrTelno" data-map="RTPYR_TELNO" placeholder="전화번호" readonly />
<input is="id-input" type="text" class="form-control w-25" style="margin-left: .3rem;" name="rtpyrEml" data-map="RTPYR_EML" placeholder="이메일" readonly />
</div>
</div>
<div class="col-md-12">
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="wholAddr">주소</label>
<input is="id-input" type="text" class="form-control w-80" name="wholAddr" data-map="WHOL_ADDR" readonly />
<input is="id-input" type="text" class="form-control w-px-75" name="zip" data-map="ZIP" readonly />
</div>
<div class="col-md-4">
<div class="col-md-6">
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="rtpyrInptSeNm">입력구분</label>
<input is="id-input" type="text" class="form-control w-50" name="rtpyrInptSeNm" data-map="RTPYR_INPT_SE_NM" readonly />
</div>
<div class="col-md-4">
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="pMdfcnDt">수정일시</label>
<input is="id-input" type="text" class="form-control w-45" name="pMdfcnDt" data-map="P_MDFCN_DT" data-fmt-type="dt" readonly />
</div>
<div class="col-md-4">
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="pMdfrNm">수정자</label>
<input is="id-input" type="text" class="form-control w-40" name="pMdfrNm" data-map="P_MDFR_NM" readonly />
<div class="col-md-6">
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="pMdfcnDt">수정일시 / 수정자</label>
<input is="id-input" type="text" class="form-control w-30" name="pMdfcnDt" data-map="P_MDFCN_DT" data-fmt-type="dt" readonly />
<input is="id-input" type="text" class="form-control w-30" name="pMdfrNm" data-map="P_MDFR_NM" readonly />
</div>
</div>
</div> <!-- <div class="card"> -->
@ -983,5 +973,5 @@
initPhotoMain("${pageName}", crdnPayerInfo.fileList, existVideo, showBtn);
});
//# sourceURL= sprt02020-info.jsp
//# sourceURL= sprt02020-info.jsp
</script>

@ -144,7 +144,7 @@
<label class="col-sm-3 col-form-label text-sm-end required" for="emailAddress">이메일 주소</label>
<div class="col-sm-9">
<input name="emailAddress" type="email" required data-map="EML_ADRS" class="form-control"
placeholder="이메일 주소" />
placeholder="이메일 주소" autofocus />
</div>
</div>
</div>

@ -19,13 +19,18 @@
<!-- Icons. Uncomment required icon fonts -->
<link rel="stylesheet" href="<c:url value="/webjars/3rd-party/sneat/fonts/boxicons.css"/>" />
<link rel="stylesheet" href="<c:url value="/webjars/3rd-party/sneat/fonts/fontawesome.css"/>" />
<link rel="stylesheet" href="<c:url value="/webjars/3rd-party/sneat/fonts/flag-icons.css"/>" />
<link rel="stylesheet" href="<c:url value="/webjars/applib/font/bootstrap-icons.css"/>" />
<link rel="stylesheet" href="<c:url value="/webjars/applib/font/material-icons.css"/>" />
<link rel="stylesheet" href="<c:url value="/resources/fonts/xit-icon.css"/>" />
<!-- Core CSS -->
<link rel="stylesheet" href="<c:url value="/webjars/3rd-party/sneat/css/rtl/core.css"/>" />
<link rel="stylesheet" href="<c:url value="/webjars/3rd-party/sneat/css/rtl/theme-default.css"/>" />
<%--
<link rel="stylesheet" href="<c:url value="/webjars/3rd-party/sneat/css/rtl/core.css"/>" class="template-customizer-core-css" />
<link rel="stylesheet" href="<c:url value="/webjars/3rd-party/sneat/css/rtl/theme-default.css"/>" class="template-customizer-theme-css" />
--%>
<link rel="stylesheet" href="<c:url value="/webjars/css/styles.css"/>" />
<link rel="stylesheet" href="<c:url value="/webjars/applib/css/overwrite.css?${ver}"/>" />

@ -5,9 +5,9 @@
</div>
<!-- Core JS -->
<script src="<c:url value="/webjars/3rd-party/sneat/libs/jquery/jquery.js"/>"></script>
<script src="<c:url value="/webjars/3rd-party/sneat/libs/popper/popper.js"/>"></script>
<script src="<c:url value="/webjars/3rd-party/sneat/js/bootstrap.js"/>"></script>
<script src="<c:url value="/webjars/3rd-party/sneat/libs/jquery/jquery.js"/>"></script>
<script src="<c:url value="/webjars/3rd-party/jquery-ui/1.13.2/jquery-ui.js"/>"></script>
<script src="<c:url value="/webjars/3rd-party/sneat/js/config.js"/>"></script>
@ -20,6 +20,7 @@
<script src="<c:url value="/webjars/3rd-party/sneat/libs/bootstrap-datepicker/bootstrap-datepicker.js"/>"></script>
<script src="<c:url value="/webjars/3rd-party/sneat/libs/block-ui/block-ui.js"/>"></script>
<script src="<c:url value="/webjars/3rd-party/sneat/libs/dropzone/dropzone.js"/>"></script>
<script src="<c:url value="/webjars/3rd-party/sneat/js/dropdown-hover.js"/>"></script>
<!-- base -->
<script src="<c:url value="/webjars/js/base/base.js"/>"></script>

@ -12,7 +12,7 @@
<input type="text" id="dummy" value="" hidden />
<input type="text" name="keyword" class="form-control w-px-400"
placeholder="예) 도움6로 42, 국립중앙박물관, 상암동 1595, 초성검색"
value="" onkeydown="enterSearch();"/><!-- 요청 변수 설정 (키워드) -->
value="" onkeydown="enterSearch();" autofocus /><!-- 요청 변수 설정 (키워드) -->
<button type="button" class="btn btn-search ms-2" onClick="getAddr(1);">검색</button>
</div>
</div>

Loading…
Cancel
Save