민원접수 상세 수정

main
이범준 1 year ago
parent 259366567c
commit ad82d16c59

@ -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("");

@ -155,7 +155,7 @@
<template id="crdnCols--${pageName}"> <template id="crdnCols--${pageName}">
<th style="width: 80px;" class="cmn">No.</th> <th style="width: 80px;" class="cmn">No.</th>
<th onclick="searchFromGridTitle('CRDN_INPT_SE_CD',this.innerText,'codeValue','FIM003');" <th onclick="searchFromGridTitle('CRDN_INPT_SE_CD',this.innerText,'codeValue','FIM003');"
style="width: 100px;" class="pvs bpv dpv eca">자료출처</th> style="width: 160px;" class="pvs bpv dpv eca">자료출처</th>
<th onclick="searchFromGridTitle('VHRNO',this.innerText,'match','part');" <th onclick="searchFromGridTitle('VHRNO',this.innerText,'match','part');"
style="width: 160px;" class="cmn">차량번호</th> style="width: 160px;" class="cmn">차량번호</th>
<th onclick="searchFromGridTitle('CRDN_YMD','위반일자','match','perfect');" <th onclick="searchFromGridTitle('CRDN_YMD','위반일자','match','perfect');"

@ -139,6 +139,16 @@
</div> </div>
</div> </div>
<div class="row my-1 mx-4 g-1" style="border: 1px solid #d9dee3;border-radius: 10px;"> <div class="row my-1 mx-4 g-1" style="border: 1px solid #d9dee3;border-radius: 10px;">
<div class="col-md-12">
<div class="float-end">
<button type="button" class="btn btn-primary" id="btnDeletePayer--${pageName}">
납부자 초기화
</button>
<button type="button" class="btn btn-primary" id="btnPopPayer--${pageName}">
납부자 수정
</button>
</div>
</div>
<div class="col-md-4"> <div class="col-md-4">
<label for="rtpyrNm--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">납부자명</label> <label for="rtpyrNm--${pageName}" class="w-px-130 bg-lighter pe-2 col-form-label text-sm-end">납부자명</label>
<input type="text" id="rtpyrNm--${pageName}" name="rtpyrNm" data-map="RTPYR_NM" <input type="text" id="rtpyrNm--${pageName}" name="rtpyrNm" data-map="RTPYR_NM"
@ -157,9 +167,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>
@ -800,6 +807,11 @@ $(document).ready(function(){
dialog.close("cvlcptInitialDataEditDialog--${openerPageName}"); dialog.close("cvlcptInitialDataEditDialog--${openerPageName}");
} }
//납부자 삭제
$P.fnDeletePayer = () => {
//
}
//납부자 등록,수정 //납부자 등록,수정
$P.fnPopPayer = () => { $P.fnPopPayer = () => {
var callPurpose = ""; var callPurpose = "";
@ -902,6 +914,8 @@ $(document).ready(function(){
$("#btnHold--${pageName}").on("click", () => $P.fnHold()); $("#btnHold--${pageName}").on("click", () => $P.fnHold());
$("#btnOpenCvlcptOrgnl--${pageName}").on("click", () => $P.fnOpenCvlcptOrgnl()); $("#btnOpenCvlcptOrgnl--${pageName}").on("click", () => $P.fnOpenCvlcptOrgnl());
//납부자 삭제
$("#btnDeletePayer--${pageName}").on("click", () => $P.fnDeletePayer());
//납부자 등록, 수정 //납부자 등록, 수정
$("#btnPopPayer--${pageName}").on("click", () => $P.fnPopPayer()); $("#btnPopPayer--${pageName}").on("click", () => $P.fnPopPayer());

Loading…
Cancel
Save