|
|
@ -121,9 +121,6 @@
|
|
|
|
<input type="text" id="rtpyrNo--${pageName}" name="rtpyrNo" data-map="RTPYR_NO"
|
|
|
|
<input type="text" id="rtpyrNo--${pageName}" name="rtpyrNo" data-map="RTPYR_NO"
|
|
|
|
class="form-control privacy" readonly />
|
|
|
|
class="form-control privacy" readonly />
|
|
|
|
<input type="text" id="mask-rtpyrNo--${pageName}" class="form-control privacy-mask" disabled value="******"/>
|
|
|
|
<input type="text" id="mask-rtpyrNo--${pageName}" class="form-control privacy-mask" disabled value="******"/>
|
|
|
|
<button type="button" class="btn btn-primary" id="btnPopPayer--${pageName}">
|
|
|
|
|
|
|
|
<i class="fa-solid fa-pen"></i>
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<label for="zip--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">우편번호</label>
|
|
|
|
<label for="zip--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">우편번호</label>
|
|
|
@ -429,83 +426,6 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//납부자 등록,수정
|
|
|
|
|
|
|
|
$P.fnPopPayer = () => {
|
|
|
|
|
|
|
|
var callPurpose = "";
|
|
|
|
|
|
|
|
var dialogTitle = "";
|
|
|
|
|
|
|
|
if($("#rtpyrId--${pageName}").val() == null || $("#rtpyrId--${pageName}").val() == ""){
|
|
|
|
|
|
|
|
callPurpose = "create";
|
|
|
|
|
|
|
|
dialogTitle = "납부자 등록";
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
callPurpose = "update";
|
|
|
|
|
|
|
|
dialogTitle = "납부자 수정";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var params = {
|
|
|
|
|
|
|
|
callPurpose : callPurpose,
|
|
|
|
|
|
|
|
crdnId : "", // 단속 ID
|
|
|
|
|
|
|
|
sggCd : $("#sggCd--${pageName}").val(), // 시군구 코드
|
|
|
|
|
|
|
|
taskSeCd : $("#taskSeCd--${pageName}").val(), // 업무 구분 코드
|
|
|
|
|
|
|
|
rtpyrId : $("#rtpyrId--${pageName}").val(), // 납부자 ID
|
|
|
|
|
|
|
|
vhrno : $("#vhrno--${pageName}").val(), // 차량번호
|
|
|
|
|
|
|
|
rtpyrInptSeCd : "01", // 납부자 입력 구분 코드
|
|
|
|
|
|
|
|
delYn : "N"
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
|
|
|
url : wctx.url("/"+params.taskSeCd + "/payer/info.do"),
|
|
|
|
|
|
|
|
data : params || {},
|
|
|
|
|
|
|
|
success : resp => {
|
|
|
|
|
|
|
|
dialog.open({
|
|
|
|
|
|
|
|
id : "payerDialog",
|
|
|
|
|
|
|
|
title : dialogTitle,
|
|
|
|
|
|
|
|
content : resp,
|
|
|
|
|
|
|
|
size : "lg",
|
|
|
|
|
|
|
|
onClose : () => { $P.refreshPayer(); } // callback
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$P.refreshPayer = () => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var params = {
|
|
|
|
|
|
|
|
callPurpose : "refresh",
|
|
|
|
|
|
|
|
crdnId : "",
|
|
|
|
|
|
|
|
sggCd : $("#sggCd--${pageName}").val(),
|
|
|
|
|
|
|
|
taskSeCd : $("#taskSeCd--${pageName}").val(),
|
|
|
|
|
|
|
|
delYn : "N"
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
|
|
|
|
url : wctx.url("/"+params.taskSeCd + "/sprt/sprt02/020/info.do"),
|
|
|
|
|
|
|
|
headers: { Accept: "application/json; charset=utf-8" },
|
|
|
|
|
|
|
|
data : params || {},
|
|
|
|
|
|
|
|
success : resp => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (resp.crdnPayer) {
|
|
|
|
|
|
|
|
var payer = resp.crdnPayer;
|
|
|
|
|
|
|
|
$("#rtpyrId--${pageName}").val(payer.RTPYR_ID).change();
|
|
|
|
|
|
|
|
$("#rtpyrNm--${pageName}").val(payer.RTPYR_NM).change();
|
|
|
|
|
|
|
|
$("#rtpyrSeCd--${pageName}").val(payer.RTPYR_SE_CD).change();
|
|
|
|
|
|
|
|
$("#rtpyrNo--${pageName}").val(payer.RTPYR_NO).change();
|
|
|
|
|
|
|
|
$("#zip--${pageName}").val(payer.ZIP).change();
|
|
|
|
|
|
|
|
$("#addr--${pageName}").val(payer.ADDR).change();
|
|
|
|
|
|
|
|
$("#dtlAddr--${pageName}").val(payer.DTL_ADDR).change();
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$("#rtpyrId--${pageName}").val("").change();
|
|
|
|
|
|
|
|
$("#rtpyrNm--${pageName}").val("").change();
|
|
|
|
|
|
|
|
$("#rtpyrSeCd--${pageName}").val("").change();
|
|
|
|
|
|
|
|
$("#rtpyrNo--${pageName}").val("").change();
|
|
|
|
|
|
|
|
$("#zip--${pageName}").val("").change();
|
|
|
|
|
|
|
|
$("#addr--${pageName}").val("").change();
|
|
|
|
|
|
|
|
$("#dtlAddr--${pageName}").val("").change();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* 초기화(업무별 입력항목)
|
|
|
|
* 초기화(업무별 입력항목)
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
@ -638,9 +558,6 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//납부자 등록, 수정
|
|
|
|
|
|
|
|
$("#btnPopPayer--${pageName}").on("click", () => $P.fnPopPayer());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#teamId--${pageName}").on("change",function(){
|
|
|
|
$("#teamId--${pageName}").on("change",function(){
|
|
|
|
$("#teamer1--${pageName}").val("");
|
|
|
|
$("#teamer1--${pageName}").val("");
|
|
|
|
$("#teamer2--${pageName}").val("");
|
|
|
|
$("#teamer2--${pageName}").val("");
|
|
|
|