개별총정보 - 납부자 수정에 차적 조회 추가.

main
jjh 1 year ago
parent 79ce0a3b88
commit ca7f4871c1

@ -87,6 +87,8 @@ public class PayerBean extends AbstractComponent {
payer.setAddrSeCd("02"); payer.setAddrSeCd("02");
payer.setZip(info.string("ZIP")); payer.setZip(info.string("ZIP"));
payer.setBldgMngNo(info.string("BLDG_MNG_NO")); payer.setBldgMngNo(info.string("BLDG_MNG_NO"));
payer.setStdgCd(info.string("STDG_CD"));
payer.setDongCd(info.string("DONG_CD"));
} }
return payerMapper.insert(payer); return payerMapper.insert(payer);
} }
@ -272,7 +274,7 @@ public class PayerBean extends AbstractComponent {
return retMessage; return retMessage;
} }
/** . /** .
* @param payer * @param payer
* @return * @return
* <ul><li> true</li> * <ul><li> true</li>

@ -16,7 +16,6 @@
<input type="hidden" id="sggCd--${pageName}" name="sggCd" data-map="SGG_CD" /> <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="taskSeCd--${pageName}" name="taskSeCd" data-map="TASK_SE_CD" />
<input type="hidden" id="rtpyrId--${pageName}" name="rtpyrId" data-map="RTPYR_ID" /> <input type="hidden" id="rtpyrId--${pageName}" name="rtpyrId" data-map="RTPYR_ID" />
<input type="hidden" id="crdnYmd--${pageName}" name="crdnYmd" data-map="CRDN_YMD" />
<div class="row g-1"> <div class="row g-1">
<!-- 단속일시 --> <!-- 단속일시 -->
@ -28,6 +27,9 @@
<div class="col-md-6"> <div class="col-md-6">
<label for="vhrno--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">차량번호</label> <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 /> <input type="text" class="form-control w-40" id="vhrno--${pageName}" name="vhrno" data-map="VHRNO" readonly />
<button type="button" class="btn btn-sm btn-outline-dark" id="btnVehicle--${pageName}" title="우편번호 검색" onclick="fnVehicle${pageName}();">
검색
</button>
</div> </div>
<!-- 납부자 구분 코드 --> <!-- 납부자 구분 코드 -->
<div class="col-md-6"> <div class="col-md-6">
@ -91,21 +93,24 @@
<!-- 도로명 코드 --> <!-- 도로명 코드 -->
<div class="col-md-12"> <div class="col-md-12">
<label for="roadNmCd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">도로명코드</label> <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-120" 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-30" 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="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-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 /> <input type="text" class="form-control w-px-230" id="bldgMngNo--${pageName}" name="bldgMngNo" data-map="BLDG_MNG_NO" readonly />
</div> </div>
<!-- 법정동 코드 --> <!-- 법정동 코드 -->
<div class="col-md-6"> <div class="col-md-7">
<label for="stdgCd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">법정동코드</label> <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 /> <input type="text" class="form-control w-px-100" id="stdgCd--${pageName}" name="stdgCd" data-map="STDG_CD" readonly />
<input type="text" class="form-control w-px-30" id="mtnSeCd--${pageName}" name="mtnSeCd" data-map="MTN_SE_CD" readonly />
<input type="text" class="form-control w-px-50" id="mno--${pageName}" name="mno" data-map="MNO" readonly />
<input type="text" class="form-control w-px-50" id="sno--${pageName}" name="sno" data-map="SNO" readonly />
</div> </div>
<!-- 행정동 코드 --> <!-- 행정동 코드 -->
<div class="col-md-6"> <div class="col-md-5">
<label for="dongCd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">행정동코드</label> <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 /> <input type="text" class="form-control w-px-120" id="dongCd--${pageName}" name="dongCd" data-map="DONG_CD" readonly />
</div> </div>
</div> </div>
</form> <!-- /입력 영역 --> </form> <!-- /입력 영역 -->
@ -143,8 +148,8 @@
, keymapper : info => info ? info.RTPYR_ID : "" , keymapper : info => info ? info.RTPYR_ID : ""
, dataGetter : obj => obj.payerInfo , dataGetter : obj => obj.payerInfo
, urls : { , urls : {
create : wctx.url(${pageName}PrefixUrl + "/create.do") // 등록 create : wctx.url(${pageName}PrefixUrl + "/createPayer.do") // 등록
, update : wctx.url(${pageName}PrefixUrl + "/update.do") // 수정 , update : wctx.url(${pageName}PrefixUrl + "/updatePayer.do") // 수정
} }
, formats : { , formats : {
CRDN_YMD_TM : datetimeFormat CRDN_YMD_TM : datetimeFormat
@ -179,6 +184,10 @@
info.rtpyrInptSeCd = "01"; // 납부자 입력 구분 코드 info.rtpyrInptSeCd = "01"; // 납부자 입력 구분 코드
if (info.rtpyrSeCd == "01") {
info.rtpyrBrdt = info.rtpyrNo.substr(0, 6); // 생년월일
}
ajax.post({ ajax.post({
url : !create ? ${pageName}Control.urls.update : ${pageName}Control.urls.create url : !create ? ${pageName}Control.urls.update : ${pageName}Control.urls.create
, data : info , data : info
@ -186,6 +195,74 @@
}); });
} }
/**************************************************************************
* function
**************************************************************************/
//
callbackVehicle${pageName} = (info) => {
let pyrSeCd = "";
switch (info.mber_se_code) {
case "11" : pyrSeCd = "01"; break;
case "12" : pyrSeCd = "02"; break;
case "13" : pyrSeCd = "03"; break;
case "14" : pyrSeCd = "04"; break;
case "15" : pyrSeCd = "05"; break;
}
$("#rtpyrSeCd--${pageName}").val(pyrSeCd); //
$("#rtpyrNm--${pageName}").val(info.mber_nm); //
$("#rtpyrNo--${pageName}").val(info.mber_se_no); //
$("#addr--${pageName}").val(info.road_nm_adres); // 주소
$("#zip--${pageName}").val(info.zip_code); // 우편번호
$("#dtlAddr--${pageName}").val(info.use_strnghld_adres_nm); // 사용본거지 상세주소
$("#roadNmCd--${pageName}").val(info.use_strnghld_road_nm_code); // 사용본거지 도로 명 코드
$("#udgdSeCd--${pageName}").val(info.usgsrhld_undgrnd_buld_se_code); // 사용본거지 지하 구분 코드
$("#bmno--${pageName}").val(info.use_strnghld_buld_main_no); // 사용본거지 건물본번
$("#bsno--${pageName}").val(info.use_strnghld_buld_sub_no); // 사용본거지 건물부번
$("#bldgMngNo--${pageName}").val(""); // 건물 관리 번호
$("#stdgCd--${pageName}").val(info.use_strnghld_legaldong_code); // 사용본거지 법정동 코드
$("#dongCd--${pageName}").val(info.use_strnghld_adstrd_code); // 사용본거지 행정동 코드
$("#mtnSeCd--${pageName}").val(info.use_strnghld_mntn); // 사용본거지 산
$("#mno--${pageName}").val(info.use_strnghld_lnbr); // 사용본거지 번지
$("#sno--${pageName}").val(info.use_strnghld_ho); // 사용본거지 호
}
// 차적 조회
getVehicle${pageName} = (params) => {
if (!params) return;
json.post({
url : wctx.url("/payer/vehicle.do")
, data : params || {}
, success : resp => {
if (!resp.found) {
dialog.alert("차량 정보가 없습니다.");
$("#rtpyrId--${pageName}").val("");
$("#rtpyrSeCd--${pageName}").val("");
$("#rtpyrNm--${pageName}").val("");
$("#rtpyrNo--${pageName}").val("");
$("#rtpyrTelno--${pageName}").val("");
$("#rtpyrMblTelno--${pageName}").val("");
$("#rtpyrEml--${pageName}").val("");
$("#zip--${pageName}").val("");
$("#addr--${pageName}").val("");
$("#dtlAddr--${pageName}").val("");
$("#roadNmCd--${pageName}").val("");
$("#udgdSeCd--${pageName}").val("");
$("#bmno--${pageName}").val("");
$("#bsno--${pageName}").val("");
$("#bldgMngNo--${pageName}").val("");
$("#stdgCd--${pageName}").val("");
$("#dongCd--${pageName}").val("");
} else {
callbackVehicle${pageName}(resp.vehicle);
}
}
});
}
/************************************************************************** /**************************************************************************
* 초기 셋팅 * 초기 셋팅
**************************************************************************/ **************************************************************************/
@ -204,6 +281,39 @@
/************************************************************************** /**************************************************************************
* function * function
**************************************************************************/ **************************************************************************/
// 차적 검색
fnVehicle${pageName} = () => {
let crdnYmd = ${pageName}Control.getValue("CRDN_YMD");
let vhrno = $("#vhrno--${pageName}").val();
if (crdnYmd == "") {
dialog.alert({
content : "단속일자를 입력하세요."
});
return;
}
if (vhrno == "") {
dialog.alert({
content : "차량번호를 입력하세요.",
onClose : function() {
$("#vhrno--${pageName}").focus();
}
});
return;
}
let params = {
sggCd : $("#sggCd--${pageName}").val()
// , vhrno : vhrno
, vhrno : "11일1111"
, levy_stdde : crdnYmd
}
getVehicle${pageName}(params);
}
// 우편번호 검색 // 우편번호 검색
fnZip${pageName} = () => { fnZip${pageName} = () => {

Loading…
Cancel
Save