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

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

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

@ -237,14 +237,27 @@
$("#" + dialogId).attr("name", dialogName);
$("#" + dialogId).attr("data-ref-doctx", "${pageName}");
}
, onClose: () => {
$P.ctrl.reload({ all: true });
}
, onClose: () => { $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) => {
if (!params) return;
@ -252,19 +265,7 @@
ajax.post({
url: $P.ctrl.urls.remove
, data: params || {}
, success: (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 }); }
}
});
}
, success: (resp) => { $P.ctrl.onRemove(params, resp); }
});
}

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

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

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