개별총정보 - 납부자 수정 추가.
parent
ffd697507e
commit
cb357efd0e
@ -0,0 +1,232 @@
|
|||||||
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%>
|
||||||
|
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
|
||||||
|
|
||||||
|
<!-- inner page html -->
|
||||||
|
<div class="content-wrapper">
|
||||||
|
<!-- Content -->
|
||||||
|
<div class="container-xxl flex-grow-1 px-0">
|
||||||
|
<c:set var="prefixName" scope="request">납부자 정보</c:set>
|
||||||
|
|
||||||
|
<!-- Page Body -->
|
||||||
|
<div class="card">
|
||||||
|
<!-- 입력 영역 -->
|
||||||
|
<form id="frmEdit--${pageName}" name="frmEdit">
|
||||||
|
<!-- hidden -->
|
||||||
|
<input type="hidden" id="crdnId--${pageName}" name="crdnId" data-map="CRDN_ID" />
|
||||||
|
<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" />
|
||||||
|
<input type="hidden" id="rtpyrId--${pageName}" name="rtpyrId" data-map="RTPYR_ID" />
|
||||||
|
|
||||||
|
<div class="row g-1">
|
||||||
|
<!-- 단속일시 -->
|
||||||
|
<div class="col-md-6">
|
||||||
|
<label for="crdnYmdTm--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">단속일시</label>
|
||||||
|
<input type="text" class="form-control w-50" id="crdnYmdTm--${pageName}" name="crdnYmdTm" data-map="CRDN_YMD_TM" readonly />
|
||||||
|
</div>
|
||||||
|
<!-- 차량번호 -->
|
||||||
|
<div class="col-md-6">
|
||||||
|
<label for="vhrno--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">차량번호</label>
|
||||||
|
<input type="text" class="form-control w-40" id="vhrno--${pageName}" name="vhrno" data-map="VHRNO" readonly />
|
||||||
|
</div>
|
||||||
|
<!-- 납부자 구분 코드 -->
|
||||||
|
<div class="col-md-6">
|
||||||
|
<label for="rtpyrSeCd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">납부자 구분</label>
|
||||||
|
<select class="form-select" id="rtpyrSeCd--${pageName}" name="rtpyrSeCd" data-map="RTPYR_SE_CD">
|
||||||
|
<option value="">선택하세요</option>
|
||||||
|
<c:forEach items="${FIM011List}" var="item">
|
||||||
|
<option value="${item.code}">${item.value}</option>
|
||||||
|
</c:forEach>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<!-- 납부자 상태 코드 -->
|
||||||
|
<div class="col-md-6">
|
||||||
|
<label for="rtpyrSttsCd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">납부자 상태</label>
|
||||||
|
<select class="form-select" id="rtpyrSttsCd--${pageName}" name="rtpyrSttsCd" data-map="RTPYR_STTS_CD">
|
||||||
|
<option value="">선택하세요</option>
|
||||||
|
<c:forEach items="${FIM014List}" var="item">
|
||||||
|
<option value="${item.code}">${item.value}</option>
|
||||||
|
</c:forEach>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<!-- 납부자 명 -->
|
||||||
|
<div class="col-md-6">
|
||||||
|
<label for="rtpyrNm--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">납부자 성명</label>
|
||||||
|
<input type="text" class="form-control w-50" id="rtpyrNm--${pageName}" name="rtpyrNm" data-map="RTPYR_NM" />
|
||||||
|
</div>
|
||||||
|
<!-- 납부자 번호 -->
|
||||||
|
<div class="col-md-6">
|
||||||
|
<label for="rtpyrNo--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">납부자 번호</label>
|
||||||
|
<input type="text" class="form-control w-50" id="rtpyrNo--${pageName}" name="rtpyrNo" data-map="RTPYR_NO" />
|
||||||
|
</div>
|
||||||
|
<!-- 납부자 전화번호 -->
|
||||||
|
<div class="col-md-6">
|
||||||
|
<label for="rtpyrTelno--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">전화번호</label>
|
||||||
|
<input type="text" class="form-control w-45" id="rtpyrTelno--${pageName}" name="rtpyrTelno" data-map="RTPYR_TELNO" />
|
||||||
|
</div>
|
||||||
|
<!-- 납부자 휴대전화번호 -->
|
||||||
|
<div class="col-md-6">
|
||||||
|
<label for="rtpyrMblTelno--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">휴대전화번호</label>
|
||||||
|
<input type="text" class="form-control w-45" id="rtpyrMblTelno--${pageName}" name="rtpyrMblTelno" data-map="RTPYR_MBL_TELNO" />
|
||||||
|
</div>
|
||||||
|
<!-- 납부자 이메일 -->
|
||||||
|
<div class="col-md-12">
|
||||||
|
<label for="rtpyrEml--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">이메일</label>
|
||||||
|
<input type="text" class="form-control w-40" id="rtpyrEml--${pageName}" name="rtpyrEml" data-map="RTPYR_EML" />
|
||||||
|
</div>
|
||||||
|
<!-- 주소 --><!-- 우편번호 -->
|
||||||
|
<div class="col-md-12">
|
||||||
|
<label for="addr--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">주소</label>
|
||||||
|
<input type="text" class="form-control w-60" id="addr--${pageName}" name="addr" data-map="ADDR" />
|
||||||
|
<input type="text" class="form-control w-px-75" id="zip--${pageName}" name="zip" data-map="ZIP" />
|
||||||
|
<button type="button" class="btn btn-sm btn-outline-dark" id="btnZip--${pageName}" title="우편번호 검색" onclick="fnZip${pageName}();">
|
||||||
|
검색
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<!-- 상세주소 -->
|
||||||
|
<div class="col-md-12">
|
||||||
|
<label for="dtlAddr--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">상세 주소</label>
|
||||||
|
<input type="text" class="form-control w-80" id="dtlAddr--${pageName}" name="dtlAddr" data-map="DTL_ADDR" />
|
||||||
|
</div>
|
||||||
|
<!-- 도로명 코드 -->
|
||||||
|
<div class="col-md-12">
|
||||||
|
<label for="roadNmCd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">도로명코드</label>
|
||||||
|
<input type="text" class="form-control w-px-140" id="roadNmCd--${pageName}" name="roadNmCd" data-map="ROAD_NM_CD" readonly />
|
||||||
|
<input type="text" class="form-control w-px-40" id="udgdSeCd--${pageName}" name="udgdSeCd" data-map="UDGD_SE_CD" readonly />
|
||||||
|
<input type="text" class="form-control w-px-60" id="bmno--${pageName}" name="bmno" data-map="BMNO" readonly />
|
||||||
|
<input type="text" class="form-control w-px-60" id="bsno--${pageName}" name="bsno" data-map="BSNO" readonly />
|
||||||
|
<input type="text" class="form-control w-px-160" id="bldgMngNo--${pageName}" name="bldgMngNo" data-map="BLDG_MNG_NO" readonly />
|
||||||
|
</div>
|
||||||
|
<!-- 법정동 코드 -->
|
||||||
|
<div class="col-md-6">
|
||||||
|
<label for="stdgCd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">법정동코드</label>
|
||||||
|
<input type="text" class="form-control w-40" id="stdgCd--${pageName}" name="stdgCd" data-map="STDG_CD" readonly />
|
||||||
|
</div>
|
||||||
|
<!-- 행정동 코드 -->
|
||||||
|
<div class="col-md-6">
|
||||||
|
<label for="dongCd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">행정동코드</label>
|
||||||
|
<input type="text" class="form-control w-40" id="dongCd--${pageName}" name="dongCd" data-map="DONG_CD" readonly />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form> <!-- /입력 영역 -->
|
||||||
|
</div> <!-- <div class="card"> -->
|
||||||
|
|
||||||
|
<!-- 업무 버튼 표시 -->
|
||||||
|
<div>
|
||||||
|
<span class="container-page-btn">
|
||||||
|
<span class="container-window-btn-right">
|
||||||
|
<!-- 업무 버튼 -->
|
||||||
|
<button type="button" class="btn btn-primary w-px-80" id="btnSave--${pageName}" title="저장" onclick="fnSave${pageName}()">저장</button>
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<!-- / 업무 버튼 표시 -->
|
||||||
|
|
||||||
|
</div> <!-- / Content <div class="container-xxl flex-grow-1 px-0"> -->
|
||||||
|
</div> <!-- / inner page html <div class="content-wrapper"> -->
|
||||||
|
|
||||||
|
<script>
|
||||||
|
/**************************************************************************
|
||||||
|
* Global Variable
|
||||||
|
**************************************************************************/
|
||||||
|
// URL
|
||||||
|
var ${pageName}PrefixUrl = "/payer/payer";
|
||||||
|
// FormFields
|
||||||
|
var ${pageName}Fields = new FormFields("#frmEdit--${pageName}");
|
||||||
|
|
||||||
|
/**************************************************************************
|
||||||
|
* DatasetControl
|
||||||
|
**************************************************************************/
|
||||||
|
var ${pageName}Control = new DatasetControl({
|
||||||
|
prefix : "payer"
|
||||||
|
, prefixName : "납부자"
|
||||||
|
, keymapper : info => info ? info.RTPYR_ID : ""
|
||||||
|
, dataGetter : obj => obj.payerInfo
|
||||||
|
, urls : {
|
||||||
|
update : wctx.url(${pageName}PrefixUrl + "/020/update.do") // 수정
|
||||||
|
}
|
||||||
|
, formats : {
|
||||||
|
CRDN_YMD_TM : datetimeFormat
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
${pageName}Control.onCurrentChange = item => {
|
||||||
|
// Dataset 셋팅
|
||||||
|
${pageName}Fields.set(item);
|
||||||
|
|
||||||
|
// 업무구분에 따른 url 변경
|
||||||
|
${pageName}Control.urls.update = wctx.url($("#taskSeCd--${pageName}").val() + ${pageName}PrefixUrl + "/020/update.do");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**************************************************************************
|
||||||
|
* DatasetControl 이벤트
|
||||||
|
**************************************************************************/
|
||||||
|
// 저장 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;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**************************************************************************
|
||||||
|
* 초기 셋팅
|
||||||
|
**************************************************************************/
|
||||||
|
// 검색조건 초기값 셋팅
|
||||||
|
initForm${pageName} = () => {
|
||||||
|
// 달력 초기화
|
||||||
|
initDatepicker("frmEdit--${pageName}");
|
||||||
|
$("#rcptYmd--${pageName}").datepicker("setDate", new Date());
|
||||||
|
}
|
||||||
|
|
||||||
|
// 이벤트 설정
|
||||||
|
setEvent${pageName} = () => {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**************************************************************************
|
||||||
|
* function
|
||||||
|
**************************************************************************/
|
||||||
|
// 우편번호 검색
|
||||||
|
fnZip${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());
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**************************************************************************
|
||||||
|
* script 진입
|
||||||
|
**************************************************************************/
|
||||||
|
$(document).ready(function() {
|
||||||
|
// 이벤트 설정
|
||||||
|
setEvent${pageName}();
|
||||||
|
|
||||||
|
// 화면 초기 설정
|
||||||
|
initForm${pageName}();
|
||||||
|
|
||||||
|
// Dataset 셋팅 - 단건일 경우 setData
|
||||||
|
${pageName}Control.setData([${payerInfo}]);
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
Loading…
Reference in New Issue