개별총정보 - 단속정보 탭 수정.

main
jjh 3 months ago
parent 02fb93815b
commit 57e5e8c71a

@ -112,6 +112,21 @@
<button type="button" class="bx bx-lg bx-calendar bg-white"></button> <button type="button" class="bx bx-lg bx-calendar bg-white"></button>
</span> </span>
</div> </div>
<!-- 차량번호 -->
<div class="col-4">
<label is="name-label" class="form-label fw-bold form-search-title w-px-120 text-end" for="schVhrno">차량번호</label>
<input is="id-input" type="text" class="form-control w-px-160" name="schVhrno" autocomplete="off" />
</div>
<!-- 납부자번호 -->
<div class="col-4">
<label is="name-label" class="form-label fw-bold form-search-title w-px-120 text-end" for="schRtpyrNm">납부자번호</label>
<input is="id-input" type="text" class="form-control w-px-160" name="schRtpyrNm" autocomplete="off" />
</div>
<!-- 납부자명 -->
<div class="col-4">
<label is="name-label" class="form-label fw-bold form-search-title w-px-120 text-end" for="schRtpyrNo">납부자명</label>
<input is="id-input" type="text" class="form-control w-px-160" name="schRtpyrNo" autocomplete="off" />
</div>
<!-- 등록일자, 수정일자 --> <!-- 등록일자, 수정일자 -->
<div class="col-4"> <div class="col-4">
<select class="form-select w-px-120 text-center" name="schRegDateOpt"> <select class="form-select w-px-120 text-center" name="schRegDateOpt">
@ -368,9 +383,7 @@
$("#" + dialogId).attr("name", dialogName); $("#" + dialogId).attr("name", dialogName);
$("#" + dialogId).attr("data-ref-doctx", "${pageName}"); $("#" + dialogId).attr("data-ref-doctx", "${pageName}");
} }
, onClose: () => { , onClose: () => { $P.ctrl.reload({all : true}); } // 자료 재조회
$P.ctrl.reload({all : true}); // 자료 재조회
}
}); });
} }
}); });
@ -386,9 +399,7 @@
, init: () => { setDialogZindex(); } , init: () => { setDialogZindex(); }
, onOK: () => { } , onOK: () => { }
, onClose: () => { , onClose: () => {
if (resp.saved) { if (resp.saved) { $P.ctrl.reload({ all: true }); } // 자료 재조회
$P.ctrl.reload({ all: true }); // 자료 재조회
}
} }
}); });
} }
@ -490,8 +501,8 @@
dialog.open({ dialog.open({
id: dialogId id: dialogId
, title: "개별총정보" , title: "개별총정보"
, content: resp
, size: "xxl" , size: "xxl"
, content: resp
, init: () => { , init: () => {
setDialogZindex(); setDialogZindex();
@ -524,8 +535,8 @@
// 서버에 전송할 data(파라미터) 생성 // 서버에 전송할 data(파라미터) 생성
let params = { let params = {
sggCd: $("#sggCd--${pageName}").val() // 시군구 코드 sggCd: $P.$find("sggCd").val() // 시군구 코드
, taskSeCd: $("#frmSearch--${pageName} input[name='taskSeCd']:checked").val() // 업무 구분 코드 , taskSeCd: $P.$find("taskSeCd").val() // 업무 구분 코드
, levyExclIds: selected.join(",") // 부과 제외 IDs , levyExclIds: selected.join(",") // 부과 제외 IDs
, delRsn: obj.reason // 삭제 사유 , delRsn: obj.reason // 삭제 사유
}; };
@ -606,8 +617,8 @@
dialog.open({ dialog.open({
id: dialogId id: dialogId
, title: "사용자 검색" , title: "사용자 검색"
, content: resp
, size: "lg" , size: "lg"
, content: resp
, init: () => { , init: () => {
setDialogZindex(); setDialogZindex();
@ -652,6 +663,7 @@
$P.fnUpdate = () => { $P.fnUpdate = () => {
// 부과제외 ID // 부과제외 ID
let levyExclId = $P.ctrl.getValue("LEVY_EXCL_ID"); let levyExclId = $P.ctrl.getValue("LEVY_EXCL_ID");
// 부과제외 ID 가 없다면.. return // 부과제외 ID 가 없다면.. return
if (typeof levyExclId == "undefined" || levyExclId == null || levyExclId == "") return; if (typeof levyExclId == "undefined" || levyExclId == null || levyExclId == "") return;
@ -659,7 +671,7 @@
callPurpose: "update" // 호출용도: 수정 callPurpose: "update" // 호출용도: 수정
, sggCd: $P.ctrl.getValue("SGG_CD") // 시군구 코드 , sggCd: $P.ctrl.getValue("SGG_CD") // 시군구 코드
, taskSeCd: $P.ctrl.getValue("TASK_SE_CD") // 업무 구분 코드 , taskSeCd: $P.ctrl.getValue("TASK_SE_CD") // 업무 구분 코드
, levyExclId: levyExclId // 부과제외 ID , levyExclId: $P.ctrl.getValue("LEVY_EXCL_ID") // 부과제외 ID
, levyExclSeCd: $P.ctrl.getValue("LEVY_EXCL_SE_CD") // 부과제외 구분 코드 , levyExclSeCd: $P.ctrl.getValue("LEVY_EXCL_SE_CD") // 부과제외 구분 코드
}; };
@ -668,8 +680,7 @@
// 부과제외 삭제 버튼 클릭 이벤트 // 부과제외 삭제 버튼 클릭 이벤트
$P.fnRemove = () => { $P.fnRemove = () => {
// 선택 자료 let selected = $P.ctrl.dataset.getKeys("selected"); // 선택 자료
let selected = $P.ctrl.dataset.getKeys("selected");
if (selected.length < 1) { if (selected.length < 1) {
dialog.alert({ dialog.alert({

@ -217,9 +217,7 @@
$("#" + dialogId).attr("name", dialogName); $("#" + dialogId).attr("name", dialogName);
$("#" + dialogId).attr("data-ref-doctx", "${pageName}"); $("#" + dialogId).attr("data-ref-doctx", "${pageName}");
} }
, onClose: () => { , onClose: () => { $P.ctrl.reload({ all: true }); } // 자료 재조회
$P.ctrl.reload({ all: true });
}
}); });
} }
}); });
@ -235,9 +233,7 @@
, init: () => { setDialogZindex(); } , init: () => { setDialogZindex(); }
, onOK: () => { } , onOK: () => { }
, onClose: () => { , onClose: () => {
if (resp.saved) { if (resp.saved) { $P.ctrl.reload({ all: true }); } // 자료 재조회
$P.ctrl.reload({ all: true }); // 자료 재조회
}
} }
}); });
} }
@ -249,9 +245,7 @@
ajax.post({ ajax.post({
url: $P.ctrl.urls.remove url: $P.ctrl.urls.remove
, data: params || {} , data: params || {}
, success: (resp) => { , success: (resp) => { $P.ctrl.onRemove(params, resp); }
$P.ctrl.onRemove(params, resp);
}
}); });
} }
@ -384,7 +378,7 @@
// 임대기업 매핑 삭제 버튼 이벤트 // 임대기업 매핑 삭제 버튼 이벤트
$P.fnRemove = () => { $P.fnRemove = () => {
let selected = $P.ctrl.dataset.getKeys("selected"); let selected = $P.ctrl.dataset.getKeys("selected"); // 선택 자료
if (selected.length < 1) { if (selected.length < 1) {
dialog.alert({ dialog.alert({

@ -237,14 +237,27 @@
$("#" + dialogId).attr("name", dialogName); $("#" + dialogId).attr("name", dialogName);
$("#" + dialogId).attr("data-ref-doctx", "${pageName}"); $("#" + dialogId).attr("data-ref-doctx", "${pageName}");
} }
, onClose: () => { , onClose: () => { $P.ctrl.reload({ all: true }); } // 자료 재조회
$P.ctrl.reload({ all: true });
}
}); });
} }
}); });
} }
// 삭제 callback
$P.ctrl.onRemove = (params, resp) => {
let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, $P.ctrl.prefixName);
// 메시지 출력
dialog.alert({
content: showMessage
, init: () => { setDialogZindex(); }
, onOK: () => { }
, onClose: () => {
if (resp.saved) { $P.ctrl.reload({ all: true }); } // 자료 재조회
}
});
}
// 삭제 // 삭제
$P.ctrl.remove = (params) => { $P.ctrl.remove = (params) => {
if (!params) return; if (!params) return;
@ -252,19 +265,7 @@
ajax.post({ ajax.post({
url: $P.ctrl.urls.remove url: $P.ctrl.urls.remove
, data: params || {} , data: params || {}
, success: (resp) => { , success: (resp) => { $P.ctrl.onRemove(params, resp); }
let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, $P.ctrl.prefixName);
// 메시지 출력
dialog.alert({
content: showMessage
, init: () => { setDialogZindex(); }
, onOK: () => { }
, onClose: () => {
if (resp.saved) { $P.ctrl.reload({ all: true }); }
}
});
}
}); });
} }

@ -16,7 +16,7 @@
<div class="row g-1"> <div class="row g-1">
<!-- 기업 구분 코드 --> <!-- 기업 구분 코드 -->
<div class="col-md-6"> <div class="col-md-6">
<label is="name-label" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required" for="entSeCd">기업구분</label> <label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end required" for="entSeCd">기업구분</label>
<select is="id-select" class="form-select" name="entSeCd" data-map="ENT_SE_CD" required> <select is="id-select" class="form-select" name="entSeCd" data-map="ENT_SE_CD" required>
<option value="">선택하세요</option> <option value="">선택하세요</option>
<c:forEach items="${FIM088List}" var="item"> <c:forEach items="${FIM088List}" var="item">
@ -26,37 +26,37 @@
</div> </div>
<!-- 기업 번호 --> <!-- 기업 번호 -->
<div class="col-md-6"> <div class="col-md-6">
<label is="name-label" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required" for="entNo">법인(사업자)번호</label> <label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end required" for="entNo">법인(사업자)번호</label>
<input is="id-input" type="text" class="form-control w-30" name="entNo" data-map="ENT_NO" autocomplete="off" /> <input is="id-input" type="text" class="form-control w-30" name="entNo" data-map="ENT_NO" required autocomplete="off" />
</div> </div>
<!-- 기업 명 --> <!-- 기업 명 -->
<div class="col-md-6"> <div class="col-md-6">
<label is="name-label" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required" for="entNm">기업명</label> <label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end required" for="entNm">기업명</label>
<input is="id-input" type="text" class="form-control w-40" name="entNm" data-map="ENT_NM" autocomplete="off" /> <input is="id-input" type="text" class="form-control w-40" name="entNm" data-map="ENT_NM" required autocomplete="off" />
</div> </div>
<!-- 대표자 명 --> <!-- 대표자 명 -->
<div class="col-md-6"> <div class="col-md-6">
<label is="name-label" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end" for="rprsvNm">대표자명</label> <label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end required" for="rprsvNm">대표자명</label>
<input is="id-input" type="text" class="form-control w-30" name="rprsvNm" data-map="RPRSV_NM" autocomplete="off" /> <input is="id-input" type="text" class="form-control w-30" name="rprsvNm" data-map="RPRSV_NM" required autocomplete="off" />
</div> </div>
<!-- 기업 전화번호 --> <!-- 기업 전화번호 -->
<div class="col-md-6"> <div class="col-md-6">
<label is="name-label" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end" for="entTelno">전화번호</label> <label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="entTelno">전화번호</label>
<input is="id-input" type="text" class="form-control w-30" name="entTelno" data-map="ENT_TELNO" autocomplete="off" /> <input is="id-input" type="text" class="form-control w-30" name="entTelno" data-map="ENT_TELNO" autocomplete="off" />
</div> </div>
<!-- 기업 팩스번호 --> <!-- 기업 팩스번호 -->
<div class="col-md-6"> <div class="col-md-6">
<label is="name-label" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end" for="entFxno--${pageName}">팩스번호</label> <label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="entFxno--${pageName}">팩스번호</label>
<input is="id-input" type="text" class="form-control w-30" name="entFxno" data-map="ENT_FXNO" autocomplete="off" /> <input is="id-input" type="text" class="form-control w-30" name="entFxno" data-map="ENT_FXNO" autocomplete="off" />
</div> </div>
<!-- 기업 이메일 --> <!-- 기업 이메일 -->
<div class="col-md-12"> <div class="col-md-12">
<label is="name-label" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end" for="entEmlAddr--${pageName}">이메일</label> <label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="entEmlAddr--${pageName}">이메일</label>
<input is="id-input" type="text" class="form-control w-30" name="entEmlAddr" data-map="ENT_EML_ADDR" /> <input is="id-input" type="text" class="form-control w-30" name="entEmlAddr" data-map="ENT_EML_ADDR" />
</div> </div>
<!-- 주소 --><!-- 우편번호 --> <!-- 주소 --><!-- 우편번호 -->
<div class="col-md-12"> <div class="col-md-12">
<label is="name-label" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end" for="entAddr">주소</label> <label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="entAddr">주소</label>
<input is="id-input" type="text" class="form-control w-70" name="entAddr" data-map="ENT_ADDR" autocomplete="off" /> <input is="id-input" type="text" class="form-control w-70" name="entAddr" data-map="ENT_ADDR" autocomplete="off" />
<input is="id-input" type="text" class="form-control w-px-80" name="entZip" data-map="ENT_ZIP" autocomplete="off" /> <input is="id-input" type="text" class="form-control w-px-80" name="entZip" data-map="ENT_ZIP" autocomplete="off" />
<button type="button" class="btn btn-sm btn-outline-dark" name="btnZipCode" title="우편번호검색"> <button type="button" class="btn btn-sm btn-outline-dark" name="btnZipCode" title="우편번호검색">
@ -65,7 +65,7 @@
</div> </div>
<!-- 상세주소 --> <!-- 상세주소 -->
<div class="col-md-12"> <div class="col-md-12">
<label is="name-label" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end" for="entDtlAddr">상세주소</label> <label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="entDtlAddr">상세주소</label>
<input is="id-input" type="text" class="form-control w-85" name="entDtlAddr" data-map="ENT_DTL_ADDR" autocomplete="off" /> <input is="id-input" type="text" class="form-control w-85" name="entDtlAddr" data-map="ENT_DTL_ADDR" autocomplete="off" />
</div> </div>
</div> </div>
@ -185,9 +185,9 @@
, size: "lg" , size: "lg"
, content: template , content: template
, init: () => { , init: () => {
$("#searchAddrCallback").val("pageObject['${pageName}'].callbackSearchAddr");
setDialogZindex(); setDialogZindex();
$("#searchAddrCallback").val("pageObject['${pageName}'].callbackSearchAddr");
} }
}); });
} }
@ -195,13 +195,11 @@
// 임대기업 등록 버튼 클릭 이벤트 // 임대기업 등록 버튼 클릭 이벤트
$P.fnSave = () => { $P.fnSave = () => {
// validate 확인 // validate 확인
if (!customValidate($("#frmEdit--${pageName}").find("input, select, textarea"))) return; if (!customValidate($P.$find("frmEdit").find("input,select,textarea"))) return;
dialog.alert({ dialog.alert({
content: "현재 " + $P.ctrl.prefixName + " 정보를 저장하시겠습니까?" content: "현재 " + $P.ctrl.prefixName + " 정보를 저장하시겠습니까?"
, onOK: () => { , onOK: () => { $P.ctrl.save($P.formFields.get()); } // formFields
$P.ctrl.save($P.formFields.get()); // formFields
}
}); });
} }
@ -220,9 +218,6 @@
$P.initForm = () => { $P.initForm = () => {
// 화면 초기화 // 화면 초기화
$P.find("frmEdit").reset(); $P.find("frmEdit").reset();
// dataset 설정
$P.ctrl.setData([${Info}]);
} }
/************************************************************************** /**************************************************************************
@ -231,8 +226,11 @@
// 1. 이벤트 설정 // 1. 이벤트 설정
$P.setEvent(); $P.setEvent();
// 2. 초기 설정 // 2. 초기 화면 설정
$P.initForm(); $P.initForm();
// 3. dataset 설정
$P.ctrl.setData([${Info}]);
}); });
</script> </script>

@ -28,8 +28,8 @@
<!-- 단속상태 --> <!-- 단속상태 -->
<div class="col-md-4"> <div class="col-md-4">
<label is="name-label" class="w-px-80 bg-lighter pe-2 col-form-label text-sm-end" for="crdnSttsNm">단속상태</label> <label is="name-label" class="w-px-80 bg-lighter pe-2 col-form-label text-sm-end" for="crdnSttsNm">단속상태</label>
<input is="id-input" type="text" class="form-control w-30 fw-bold text-primary" name="crdnSttsNm" data-map="CRDN_STTS_NM" readonly />
<input is="id-input" type="text" class="form-control w-35 fw-bold" name="crdnSttsChgDt" data-map="CRDN_STTS_CHG_DT" readonly /> <input is="id-input" type="text" class="form-control w-35 fw-bold" name="crdnSttsChgDt" data-map="CRDN_STTS_CHG_DT" readonly />
<input is="id-input" type="text" class="form-control w-30 fw-bold text-primary" name="crdnSttsNm" data-map="CRDN_STTS_NM" readonly />
<input type="hidden" name="crdnSttsCd" data-map="CRDN_STTS_CD" /> <input type="hidden" name="crdnSttsCd" data-map="CRDN_STTS_CD" />
</div> </div>
<!-- 자료 이동 버튼 --> <!-- 자료 이동 버튼 -->
@ -143,353 +143,340 @@
// 화면에 Dataset 셋팅 // 화면에 Dataset 셋팅
$P.formFields.set($P.mainCtrl, item); $P.formFields.set($P.mainCtrl, item);
let key = item.data.CRDN_ID;
if ($P.callControlName != "noControlName") { if ($P.callControlName != "noControlName") {
$P.fnChangeCountStauts(); // 건수 표기 $P.fnChangeCountStauts(); // 건수 표기
} }
// 자료 수정 $P.fnUseDataEdit(item); // 자료 수정
$P.fnUseDataEdit(item);
} }
/************************************************************************** /**************************************************************************
* 사용자 함수(function) * 사용자 함수(function)
**************************************************************************/ **************************************************************************/
// 자료 재조회 // 자료 재조회
$P.fnRefreshList = (params) => { $P.fnRefreshList = (params) => {
if (!params) return; if (!params) return;
ajax.get({ ajax.get({
url: wctx.url(params.taskSeCd + "/sprt/sprt02/010/main.do") url: wctx.url(params.taskSeCd + "/sprt/sprt02/010/main.do")
, headers: { Accept: "application/json; charset=utf-8" } // json , headers: { Accept: "application/json; charset=utf-8" } // json
, data: params || {} , data: params || {}
, success: resp => { , success: resp => {
if (resp.totalInfo) { if (resp.totalInfo) {
// 최상단 단속 Data 셋팅 // 최상단 단속 Data 셋팅
$P.mainCtrl.setData([resp.totalInfo]); $P.mainCtrl.setData([resp.totalInfo]);
if ($P.activeTabIndex == 0) { if ($P.activeTabIndex == 0) {
$P.fnCrdnPayerInfo(); // 단속 납부자 Data 셋팅 $P.fnCrdnPayerInfo(); // 단속 납부자 Data 셋팅
} else if ($P.activeTabIndex == 1) { } else if ($P.activeTabIndex == 1) {
$P.fnOpnnSbmsnInfo(); // 의견제출 정보 $P.fnOpnnSbmsnInfo(); // 의견제출 정보
} else if ($P.activeTabIndex == 2) { } else if ($P.activeTabIndex == 2) {
$P.fnSndngInfo(); // 발송 반송 정보 $P.fnSndngInfo(); // 발송 반송 정보
} else if ($P.activeTabIndex == 3) { } else if ($P.activeTabIndex == 3) {
$P.fnPrcsInfo(); // 처리 상세 정보 $P.fnPrcsInfo(); // 처리 상세 정보
} else if ($P.activeTabIndex == 4) { } else if ($P.activeTabIndex == 4) {
$P.fnLevyInfo(); // 부과체납 정보 $P.fnLevyInfo(); // 부과체납 정보
} else if ($P.activeTabIndex == 5) { } else if ($P.activeTabIndex == 5) {
$P.fnRcvmtInfo(); // 수납 정보 $P.fnRcvmtInfo(); // 수납 정보
} else if ($P.activeTabIndex == 6) { } else if ($P.activeTabIndex == 6) {
$P.fnCvlcptDscsnInfo(); // 민원상담 정보 $P.fnCvlcptDscsnInfo(); // 민원상담 정보
} }
} }
} }
}); });
} }
// 자료 수정 가능 여부 // 자료 수정 가능 여부
$P.fnUseDataEdit = (item) => { $P.fnUseDataEdit = (item) => {
// 삭제 자료일 경우 빨간색으로 변경 // 삭제 자료일 경우 빨간색으로 변경
let elem = document.getElementById("crdnSttsNm--${pageName}"); let elem = document.getElementById("crdnSttsNm--${pageName}");
if (item.data.CRDN_STTS_CD == "99") { if (item.data.CRDN_STTS_CD == "99") {
elem.classList.remove("text-primary"); elem.classList.remove("text-primary");
elem.classList.add("text-danger"); elem.classList.add("text-danger");
} else { } else {
elem.classList.remove("text-danger"); elem.classList.remove("text-danger");
elem.classList.add("text-primary"); elem.classList.add("text-primary");
} }
} }
// //
$P.fnClose = (isDataReLoad) => { $P.fnClose = (isDataReLoad) => {
dialog.close($P.selfDlgId()); dialog.close($P.selfDlgId());
if (isDataReLoad && $P.callControlName != "noControlName") { if (isDataReLoad && $P.callControlName != "noControlName") {
$P.callControl._load(); $P.callControl._load();
} }
} }
/************************************************************************** /**************************************************************************
* 네이게이션 Event * 네이게이션 Event
**************************************************************************/ **************************************************************************/
// 건수 표기 // 건수 표기
$P.fnChangeCountStauts = () => { $P.fnChangeCountStauts = () => {
let dataItems = $P.callControl.dataset._items;
// $P.curDataIndex 에 값이 없다면..
if ($P.curDataIndex == null) {
let curCrdnId = $P.mainCtrl.getValue("CRDN_ID");
for (iLoop = 0; iLoop < dataItems.length; iLoop++) {
if (dataItems[iLoop].data.CRDN_ID == curCrdnId) {
$P.curDataIndex = iLoop;
break;
}
}
}
let viewNumber = $P.curDataIndex + 1;
// 표시
$P.$find("countStauts").val(viewNumber + " of " + dataItems.length);
}
// 이전 자료 조회
$P.fnPrev = () => {
let dataItems = $P.callControl.dataset._items; let dataItems = $P.callControl.dataset._items;
let curCrdnId = $P.mainCtrl.getValue("CRDN_ID");
// $P.curDataIndex 에 값이 없다면.. // 초기 값은 callControl dataset 의 총 건수 - 1
if ($P.curDataIndex == null) { if ($P.curDataIndex == null) {
let curCrdnId = $P.mainCtrl.getValue("CRDN_ID"); $P.curDataIndex = dataItems.length - 1;
}
for (iLoop = 0; iLoop < dataItems.length; iLoop++) {
if (dataItems[iLoop].data.CRDN_ID == curCrdnId) { for (iLoop = $P.curDataIndex; iLoop >= 0; iLoop--) {
$P.curDataIndex = iLoop; if (dataItems[iLoop].data.CRDN_ID == curCrdnId) {
break; if (iLoop - 1 < 0) return; // 종료
}
} $P.curDataIndex = iLoop - 1;
} break;
}
let viewNumber = $P.curDataIndex + 1; }
$P.$find("countStauts").val(viewNumber + " of " + dataItems.length); let crdnId = dataItems[$P.curDataIndex].data.CRDN_ID;
} // 단속 ID 가 없다면.. return
if (crdnId == null || crdnId == "") return;
// 이전 자료 조회
$P.fnPrev = () => { let params = {
let dataItems = $P.callControl.dataset._items; callPurpose: "view"
let curCrdnId = $P.mainCtrl.getValue("CRDN_ID"); , sggCd: dataItems[$P.curDataIndex].data.SGG_CD
, taskSeCd: dataItems[$P.curDataIndex].data.TASK_SE_CD
// 초기 값은 callControl dataset 의 총 건수 - 1 , crdnId: dataItems[$P.curDataIndex].data.CRDN_ID
if ($P.curDataIndex == null) { , delYn: "N"
$P.curDataIndex = dataItems.length - 1; };
}
$P.fnRefreshList(params);
for (iLoop = $P.curDataIndex; iLoop >= 0; iLoop--) { }
if (dataItems[iLoop].data.CRDN_ID == curCrdnId) {
if (iLoop - 1 < 0) return; // 종료 // 다음 자료 조회
$P.fnNext = () => {
$P.curDataIndex = iLoop - 1; let dataItems = $P.callControl.dataset._items;
break; let curCrdnId = $P.mainCtrl.getValue("CRDN_ID");
}
} // 초기 값은 0
if ($P.curDataIndex == null) {
let crdnId = dataItems[$P.curDataIndex].data.CRDN_ID; $P.curDataIndex = 0;
// 단속 ID 가 없다면.. return }
if (crdnId == null || crdnId == "") return;
for (iLoop = $P.curDataIndex; iLoop < dataItems.length; iLoop++) {
let params = { if (dataItems[iLoop].data.CRDN_ID == curCrdnId) {
callPurpose: "view" if (iLoop + 1 >= dataItems.length) return; // 종료
, sggCd: dataItems[$P.curDataIndex].data.SGG_CD
, taskSeCd: dataItems[$P.curDataIndex].data.TASK_SE_CD $P.curDataIndex = iLoop + 1;
, crdnId: crdnId break;
, delYn: "N" }
}; }
$P.fnRefreshList(params); let crdnId = dataItems[$P.curDataIndex].data.CRDN_ID;
} // 단속 ID 가 없다면.. return
if (crdnId == null || crdnId == "") return;
// 다음 자료 조회
$P.fnNext = () => { let params = {
let dataItems = $P.callControl.dataset._items; callPurpose: "view"
let curCrdnId = $P.mainCtrl.getValue("CRDN_ID"); , sggCd: dataItems[$P.curDataIndex].data.SGG_CD
, taskSeCd: dataItems[$P.curDataIndex].data.TASK_SE_CD
// 초기 값은 0 , crdnId: dataItems[$P.curDataIndex].data.CRDN_ID
if ($P.curDataIndex == null) { , delYn: "N"
$P.curDataIndex = 0; };
}
$P.fnRefreshList(params);
for (iLoop = $P.curDataIndex; iLoop < dataItems.length; iLoop++) { }
if (dataItems[iLoop].data.CRDN_ID == curCrdnId) {
if (iLoop + 1 >= dataItems.length) return; // 종료 /**************************************************************************
* 탭 clickEvent
$P.curDataIndex = iLoop + 1; **************************************************************************/
break; // 단속 정보
} $P.fnCrdnPayerInfo = () => {
} let crdnId = $P.mainCtrl.getValue("CRDN_ID");
// 단속 ID 가 없다면.. return
let crdnId = dataItems[$P.curDataIndex].data.CRDN_ID; if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return;
// 단속 ID 가 없다면.. return
if (crdnId == null || crdnId == "") return; // 탭 Index
$P.activeTabIndex = 0;
let params = {
callPurpose: "view" let params = {
, sggCd: dataItems[$P.curDataIndex].data.SGG_CD callPurpose: "view"
, taskSeCd: dataItems[$P.curDataIndex].data.TASK_SE_CD , sggCd: $P.mainCtrl.getValue("SGG_CD")
, crdnId: crdnId , taskSeCd: $P.mainCtrl.getValue("TASK_SE_CD")
, delYn: "N" , crdnId: $P.mainCtrl.getValue("CRDN_ID")
}; , delYn: "N"
};
$P.fnRefreshList(params);
} ajax.get({
url: wctx.url("/" + params.taskSeCd + "/sprt/sprt02/020/info.do")
/************************************************************************** , data: params || {}
* 탭 clickEvent , success: (resp) => { $("#crdnPayerInfo").html(resp); }
**************************************************************************/ });
// 단속 정보 }
$P.fnCrdnPayerInfo = () => {
let crdnId = $P.mainCtrl.getValue("CRDN_ID"); // 의견제출 정보
// 단속 ID 가 없다면.. return $P.fnOpnnSbmsnInfo = () => {
if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return; let crdnId = $P.mainCtrl.getValue("CRDN_ID");
// 단속 ID 가 없다면.. return
// 탭 Index if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return;
$P.activeTabIndex = 0;
// 탭 Index
let params = { $P.activeTabIndex = 1;
callPurpose: "view"
, sggCd: $P.mainCtrl.getValue("SGG_CD") let params = {
, taskSeCd: $P.mainCtrl.getValue("TASK_SE_CD") callPurpose: "view"
, crdnId: crdnId , sggCd: $P.mainCtrl.getValue("SGG_CD")
, delYn: "N" , taskSeCd: $P.mainCtrl.getValue("TASK_SE_CD")
}; , crdnId: $P.mainCtrl.getValue("CRDN_ID")
, delYn: "N"
ajax.get({ };
url: wctx.url("/" + params.taskSeCd + "/sprt/sprt02/020/info.do")
, data: params || {} ajax.get({
, success: resp => { url: wctx.url("/" + params.taskSeCd + "/sprt/sprt02/030/info.do")
$("#crdnPayerInfo").html(resp); , data: params || {}
} , success: (resp) => { $("#opnnSbmsnInfo").html(resp); }
}); });
} }
// 의견제출 정보 // 발송 반송 정보
$P.fnOpnnSbmsnInfo = () => { $P.fnSndngInfo = () => {
let crdnId = $P.mainCtrl.getValue("CRDN_ID"); let crdnId = $P.mainCtrl.getValue("CRDN_ID");
// 단속 ID 가 없다면.. return // 단속 ID 가 없다면.. return
if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return; if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return;
// 탭 Index // 탭 Index
$P.activeTabIndex = 1; $P.activeTabIndex = 2;
let params = { let params = {
callPurpose: "view" callPurpose: "view"
, sggCd: $P.mainCtrl.getValue("SGG_CD") , sggCd: $P.mainCtrl.getValue("SGG_CD")
, taskSeCd: $P.mainCtrl.getValue("TASK_SE_CD") , taskSeCd: $P.mainCtrl.getValue("TASK_SE_CD")
, crdnId: crdnId , crdnId: $P.mainCtrl.getValue("CRDN_ID")
, delYn: "N" , delYn: "N"
}; };
ajax.get({ ajax.get({
url: wctx.url("/" + params.taskSeCd + "/sprt/sprt02/030/info.do") url: wctx.url("/" + params.taskSeCd + "/sprt/sprt02/040/info.do")
, data: params || {} , data: params || {}
, success: resp => { , success: (resp) => { $("#sndngInfo").html(resp); }
$("#opnnSbmsnInfo").html(resp); });
} }
});
} // 처리 정보
$P.fnPrcsInfo = () => {
// 발송 반송 정보 let crdnId = $P.mainCtrl.getValue("CRDN_ID");
$P.fnSndngInfo = () => { // 단속 ID 가 없다면.. return
let crdnId = $P.mainCtrl.getValue("CRDN_ID"); if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return;
// 단속 ID 가 없다면.. return // 탭 Index
if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return; $P.activeTabIndex = 3;
// 탭 Index let params = {
$P.activeTabIndex = 2; callPurpose: "view"
, sggCd: $P.mainCtrl.getValue("SGG_CD")
let params = { , taskSeCd: $P.mainCtrl.getValue("TASK_SE_CD")
callPurpose: "view" , crdnId: $P.mainCtrl.getValue("CRDN_ID")
, sggCd: $P.mainCtrl.getValue("SGG_CD") , rtpyrId: $P.mainCtrl.getValue("RTPYR_ID")
, taskSeCd: $P.mainCtrl.getValue("TASK_SE_CD") , delYn: "N"
, crdnId: crdnId };
, delYn: "N"
}; ajax.get({
url: wctx.url("/" + params.taskSeCd + "/sprt/sprt02/050/info.do")
ajax.get({ , data: params || {}
url: wctx.url("/" + params.taskSeCd + "/sprt/sprt02/040/info.do") , success: (resp) => { $("#prcsInfo").html(resp); }
, data: params || {} });
, success: resp => { }
$("#sndngInfo").html(resp);
} // 부과체납 정보
}); $P.fnLevyInfo = () => {
} let crdnId = $P.mainCtrl.getValue("CRDN_ID");
// 단속 ID 가 없다면.. return
// 처리 정보 if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return;
$P.fnPrcsInfo = () => {
let crdnId = $P.mainCtrl.getValue("CRDN_ID"); // 탭 Index
// 단속 ID 가 없다면.. return $P.activeTabIndex = 4;
if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return;
let params = {
// 탭 Index callPurpose: "view"
$P.activeTabIndex = 3; , sggCd: $P.mainCtrl.getValue("SGG_CD")
, taskSeCd: $P.mainCtrl.getValue("TASK_SE_CD")
let params = { , crdnId: $P.mainCtrl.getValue("CRDN_ID")
callPurpose: "view" , delYn: "N"
, sggCd: $P.mainCtrl.getValue("SGG_CD") };
, taskSeCd: $P.mainCtrl.getValue("TASK_SE_CD")
, crdnId: crdnId ajax.get({
, rtpyrId: $P.mainCtrl.getValue("RTPYR_ID") url: wctx.url("/" + params.taskSeCd + "/sprt/sprt02/060/info.do")
, delYn: "N" , data: params || {}
}; , success: (resp) => { $("#levyInfo").html(resp); }
});
ajax.get({ }
url: wctx.url("/" + params.taskSeCd + "/sprt/sprt02/050/info.do")
, data: params || {} // 수납 정보
, success: resp => { $P.fnRcvmtInfo = () => {
$("#prcsInfo").html(resp); let crdnId = $P.mainCtrl.getValue("CRDN_ID");
} // 단속 ID 가 없다면.. return
}); if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return;
}
// 탭 Index
// 부과체납 정보 $P.activeTabIndex = 5;
$P.fnLevyInfo = () => {
let crdnId = $P.mainCtrl.getValue("CRDN_ID"); let params = {
// 단속 ID 가 없다면.. return callPurpose: "view"
if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return; , sggCd: $P.mainCtrl.getValue("SGG_CD")
, taskSeCd: $P.mainCtrl.getValue("TASK_SE_CD")
// 탭 Index , crdnId: $P.mainCtrl.getValue("CRDN_ID")
$P.activeTabIndex = 4; , delYn: "N"
};
let params = {
callPurpose: "view" ajax.get({
, sggCd: $P.mainCtrl.getValue("SGG_CD") url: wctx.url("/" + params.taskSeCd + "/sprt/sprt02/070/info.do")
, taskSeCd: $P.mainCtrl.getValue("TASK_SE_CD") , data: params || {}
, crdnId: crdnId , success: (resp) => { $("#rcvmtInfo").html(resp); }
, delYn: "N" });
}; }
ajax.get({ // 민원상담 정보
url: wctx.url("/" + params.taskSeCd + "/sprt/sprt02/060/info.do") $P.fnCvlcptDscsnInfo = () => {
, data: params || {} let crdnId = $P.mainCtrl.getValue("CRDN_ID");
, success: resp => { // 단속 ID 가 없다면.. return
$("#levyInfo").html(resp); if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return;
}
}); // 탭 Index
} $P.activeTabIndex = 6;
// 수납 정보 let params = {
$P.fnRcvmtInfo = () => { callPurpose: "view"
let crdnId = $P.mainCtrl.getValue("CRDN_ID"); , inquiryCondition: "crdnId_vhrno"
// 단속 ID 가 없다면.. return , sggCd: $P.mainCtrl.getValue("SGG_CD")
if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return; , taskSeCd: $P.mainCtrl.getValue("TASK_SE_CD")
, crdnId: $P.mainCtrl.getValue("CRDN_ID")
// 탭 Index , vhrno: $P.mainCtrl.getValue("VHRNO")
$P.activeTabIndex = 5; , delYn: "N"
};
let params = {
callPurpose: "view" ajax.get({
, sggCd: $P.mainCtrl.getValue("SGG_CD") url: wctx.url("/" + params.taskSeCd + "/sprt/sprt02/080/info.do")
, taskSeCd: $P.mainCtrl.getValue("TASK_SE_CD") , data: params || {}
, crdnId: crdnId , success: resp => { $("#cvlcptDscsnInfo").html(resp); }
, delYn: "N" });
}; }
ajax.get({
url: wctx.url("/" + params.taskSeCd + "/sprt/sprt02/070/info.do")
, data: params || {}
, success: resp => {
$("#rcvmtInfo").html(resp);
}
});
}
// 민원상담 정보
$P.fnCvlcptDscsnInfo = () => {
let crdnId = $P.mainCtrl.getValue("CRDN_ID");
// 단속 ID 가 없다면.. return
if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return;
// 탭 Index
$P.activeTabIndex = 6;
let params = {
callPurpose: "view"
, inquiryCondition: "crdnId_vhrno"
, sggCd: $P.mainCtrl.getValue("SGG_CD")
, taskSeCd: $P.mainCtrl.getValue("TASK_SE_CD")
, crdnId: crdnId
, vhrno: $P.mainCtrl.getValue("VHRNO")
, delYn: "N"
};
ajax.get({
url: wctx.url("/" + params.taskSeCd + "/sprt/sprt02/080/info.do")
, data: params || {}
, success: resp => {
$("#cvlcptDscsnInfo").html(resp);
}
});
}
/************************************************************************** /**************************************************************************
* 초기 셋팅 * 초기 셋팅
@ -515,20 +502,20 @@
$P.curDataIndex = null; $P.curDataIndex = null;
} }
/************************************************************************** /**************************************************************************
* script 진입시 실행 함수 * script 진입시 실행 함수
**************************************************************************/ **************************************************************************/
// 1. 이벤트 설정 // 1. 이벤트 설정
$P.setEvent(); $P.setEvent();
// 2. 기본 데이터 설정 // 2. 기본 데이터 설정
$P.initData(); $P.initData();
// 3. Dataset 설정 // 3. Dataset 설정
$P.mainCtrl.setData([${totalInfo}]); $P.mainCtrl.setData([${totalInfo}]);
// 4. 단속, 납부자 정보 조회 // 4. 단속, 납부자 정보 조회
$P.fnCrdnPayerInfo(); $P.fnCrdnPayerInfo();
}); });
</script> </script>

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save