부과제외관리 수정.

main
jjh 3 months ago
parent 3516e7c411
commit 02fb93815b

File diff suppressed because it is too large Load Diff

@ -68,7 +68,7 @@
<div class="card-datatable text-nowrap">
<div class="dataTables_wrapper dt-bootstrap5 no-footer">
<div class="table-responsive ox-scroll oy-scroll h-px-500" name="table-responsive">
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" name="DataTables_Table_0" aria-describedby="DataTables_Table_0_info">
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" aria-describedby="DataTables_Table_0_info">
<thead class="sticky-thead">
<tr name="theadTr" data-search-target="[data-doctx='${pageName}']">
<th class="cmn" style="width: 72px;">No.</th>
@ -92,7 +92,7 @@
</thead>
<tbody name="tbodyList">
</tbody>
<template is="curly-brackets" name="dataRow">
<template is="curly-brackets" name="dataRows">
<tr data-key="MPNG_ID">
<td class="cmn text-center" onclick ondblclick>{ROW_NUM}</td>
<td class="cmn text-center"><input type="checkbox" class="form-check-input" name="gridCheckbox" value="MPNG_ID" onchange="pageObject['${pageName}'].dataTableCheckbox(this, this.checked);" /></td>
@ -225,6 +225,23 @@
});
}
// 삭제 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;
@ -233,17 +250,7 @@
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 }); }
}
});
$P.ctrl.onRemove(params, resp);
}
});
}
@ -257,10 +264,10 @@
let empty = dataList.empty;
let trs = empty ? [$P.find("dataNotFound").innerHTML] :
dataList.inStrings($P.find("dataRow").innerHTML, (str, dataItem) => str
dataList.inStrings($P.find("dataRows").innerHTML, (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].dataTableClick('" + dataItem.getValue("MPNG_ID") + "');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dataTableDblClick('" + dataItem.getValue("MPNG_ID") + "');")
);
);
let noMore = (dataList.length >= totalSize);
let initScroll = ($P.ctrl.query.pageNum < 2);
@ -274,7 +281,7 @@
// checkbox 체크 해제
$P.$find("gridAllCheckbox").prop("checked", false);
//보안모드
// 보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
}
@ -322,7 +329,7 @@
/**************************************************************************
* 버튼 clickEvent
**************************************************************************/
// 업무 구분 변경 이벤트
// 초기화 버튼 이벤트
$P.fnReset = () => {
// 화면 초기화
$P.find("frmSearch").reset();
@ -350,6 +357,7 @@
if ($P.ctrl.dataset.empty) {
dialog.alert({
content: "검색된 자료가 없습니다."
, init: () => { setDialogZindex(); }
, onOK: () => { }
});
return;
@ -358,7 +366,7 @@
// DataTables(그리드)
$P.ctrl.query.cellDefs =
getCellDefs($P.$find("theadTr").find("th").not(".dummy-th").not(":eq(0)")
, $($P.find("dataRow").content).find("td").not(".dummy-td").not(":eq(0)"));
, $($P.find("dataRows").content).find("td").not(".dummy-td").not(":eq(0)"));
$P.ctrl.download();
}
@ -378,10 +386,17 @@
$P.fnRemove = () => {
let selected = $P.ctrl.dataset.getKeys("selected");
if (selected.length < 1) return;
if (selected.length < 1) {
dialog.alert({
content: "선택하신 " + $P.ctrl.prefixName + " 정보가 없습니다."
, init: () => { setDialogZindex(); }
, onOK: () => { }
});
return;
}
dialog.alert({
content: "선택한 " + $P.ctrl.prefixName + " 정보를 삭제하시겠습니까?"
content: "선택한 " + selected.length + "건의 " + $P.ctrl.prefixName + " 정보를 삭제하시겠습니까?"
, onOK: () => {
let params = {
callPurpose: "create"

@ -129,7 +129,8 @@
$P.ctrl.onCurrentChange = (item) => {
if (!item) return;
$P.formFields.set($P.ctrl, item); // 화면에 자료 셋팅
// 화면에 Dataset 셋팅
$P.formFields.set($P.ctrl, item);
let key = item.data.ENT_ID;
};

@ -2,39 +2,41 @@
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
<!-- Page Body -->
<div class="card wrapper-list">
<div class="card wrapper-list" data-doctx="${pageName}">
<div>
<!-- 입력 영역 -->
<form id="frmEdit--${pageName}" name="frmEdit">
<form name="frmEdit">
<!-- hidden -->
<input type="hidden" id="crdnId--${pageName}" name="crdnId" data-map="CRDN_ID" />
<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="rtpyrId--${pageName}" name="rtpyrId" data-map="RTPYR_ID" />
<input type="hidden" name="crdnId" data-map="CRDN_ID" />
<div class="row g-1">
<!-- 차량번호 -->
<div class="col-md-3">
<label for="vhrno--${pageName}" class="w-px-100 bg-lighter pe-2 col-form-label text-sm-end">차량번호</label>
<input type="text" class="form-control w-35" id="vhrno--${pageName}" name="vhrno" data-map="VHRNO" readonly />
<div class="col-md-2">
<label is="name-label" class="w-px-80 bg-lighter pe-2 col-form-label text-sm-end" for="vhrno">차량번호</label>
<input is="id-input" type="text" class="form-control w-65 fw-bold" name="vhrno" data-map="VHRNO" readonly />
</div>
<!-- 위반일시 -->
<div class="col-md-3">
<label for="crdnYmdTm--${pageName}" class="w-px-100 bg-lighter pe-2 col-form-label text-sm-end">위반일시</label>
<input type="text" class="form-control w-45" id="crdnYmdTm--${pageName}" name="crdnYmdTm" data-map="CRDN_YMD_TM" readonly />
<!-- 단속일시 -->
<div class="col-md-2">
<label is="name-label" class="w-px-80 bg-lighter pe-2 col-form-label text-sm-end" for="crdnYmdTm">단속일시</label>
<input is="id-input" type="text" class="form-control w-65 fw-bold" name="crdnYmdTm" data-map="CRDN_YMD_TM" readonly />
</div>
<!-- 고지번호 -->
<div class="col-md-2">
<label is="name-label" class="w-px-80 bg-lighter pe-2 col-form-label text-sm-end" for="gojiNo">고지번호</label>
<input is="id-input" type="text" class="form-control w-65 fw-bold" name="gojiNo" data-map="GOJI_NO" readonly />
</div>
<!-- 단속상태 -->
<div class="col-md-4">
<label for="crdnSttsNm--${pageName}" class="w-px-100 bg-lighter pe-2 col-form-label text-sm-end">단속상태</label>
<input type="text" class="form-control w-35" id="crdnSttsChgDt--${pageName}" name="crdnSttsChgDt" data-map="CRDN_STTS_CHG_DT" readonly />
<input type="text" class="form-control w-30 fw-bold text-primary" id="crdnSttsNm--${pageName}" name="crdnSttsNm" data-map="CRDN_STTS_NM" readonly />
<input type="hidden" id="crdnSttsCd--${pageName}" name="crdnSttsCd" data-map="CRDN_STTS_CD" />
<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-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>
<!-- 자료 이동 버튼 -->
<div class="col-md-2 text-end">
<input type="text" id="countStauts--${pageName}" class="form-control w-px-120 text-center fw-bold" readonly />
<button type="button" id="btnPrev--${pageName}" class="w-px-50 btn-PageUp">◀</button>
<button type="button" id="btnNext--${pageName}" class="w-px-50 btn-PageDown">▶</button>
<input type="text" class="form-control w-px-120 text-center fw-bold" name="countStauts" readonly />
<button type="button" class="w-px-50 btn-PageUp" name="btnPrev">◀</button>
<button type="button" class="w-px-50 btn-PageDown" name="btnNext">▶</button>
</div>
</div> <!-- <div class="row g-1"> -->
</form>
@ -42,46 +44,39 @@
</div>
<div class="nav-align-top">
<ul class="nav nav-tabs" id="tabs--${pageName}" role="tablist">
<ul class="nav nav-tabs" role="tablist">
<li class="nav-item">
<button type="button" class="nav-link w-px-160 h-75 active" id="btnCrdnPayer--${pageName}" name="btnCrdnPayer"
role="tab" data-bs-toggle="tab" data-bs-target="#crdnPayerInfo" aria-controls="crdnPayerInfo" aria-selected="true">
<button type="button" class="nav-link w-px-160 h-75 active" name="btnCrdnPayer" role="tab" data-bs-toggle="tab" data-bs-target="#crdnPayerInfo" aria-controls="crdnPayerInfo" aria-selected="true">
단속 정보
</button>
</li>
<li class="nav-item">
<button type="button" class="nav-link w-px-160 h-75" id="btnOpnnSbmsn--${pageName}" name="btnOpnnSbmsn"
role="tab" data-bs-toggle="tab" data-bs-target="#opnnSbmsnInfo" aria-controls="opnnSbmsnInfo" aria-selected="false">
<button type="button" class="nav-link w-px-160 h-75" name="btnOpnnSbmsn" role="tab" data-bs-toggle="tab" data-bs-target="#opnnSbmsnInfo" aria-controls="opnnSbmsnInfo" aria-selected="false">
의견제출 정보
</button>
</li>
<li class="nav-item">
<button type="button" class="nav-link w-px-160 h-75" id="btnSndng--${pageName}" name="btnSndng"
role="tab" data-bs-toggle="tab" data-bs-target="#sndngInfo" aria-controls="sndngInfo" aria-selected="false">
<button type="button" class="nav-link w-px-160 h-75" name="btnSndng" role="tab" data-bs-toggle="tab" data-bs-target="#sndngInfo" aria-controls="sndngInfo" aria-selected="false">
발송반송 정보
</button>
</li>
<li class="nav-item">
<button type="button" class="nav-link w-px-160 h-75" id="btnPrcs--${pageName}" name="btnPrcs"
role="tab" data-bs-toggle="tab" data-bs-target="#prcsInfo" aria-controls="prcsInfo" aria-selected="false">
<button type="button" class="nav-link w-px-160 h-75" name="btnPrcs" role="tab" data-bs-toggle="tab" data-bs-target="#prcsInfo" aria-controls="prcsInfo" aria-selected="false">
처리상세 정보
</button>
</li>
<li class="nav-item">
<button type="button" class="nav-link w-px-160 h-75" id="btnLevy--${pageName}" name="btnLevy"
role="tab" data-bs-toggle="tab" data-bs-target="#levyInfo" aria-controls="levyInfo" aria-selected="false">
<button type="button" class="nav-link w-px-160 h-75" name="btnLevy" role="tab" data-bs-toggle="tab" data-bs-target="#levyInfo" aria-controls="levyInfo" aria-selected="false">
부과체납 정보
</button>
</li>
<li class="nav-item">
<button type="button" class="nav-link w-px-160 h-75" id="btnRcvmt--${pageName}" name="btnRcvmt"
role="tab" data-bs-toggle="tab" data-bs-target="#rcvmtInfo" aria-controls="rcvmtInfo" aria-selected="false">
<button type="button" class="nav-link w-px-160 h-75" name="btnRcvmt" role="tab" data-bs-toggle="tab" data-bs-target="#rcvmtInfo" aria-controls="rcvmtInfo" aria-selected="false">
수납 정보
</button>
</li>
<li class="nav-item">
<button type="button" class="nav-link w-px-160 h-75" id="btnCvlcptDscsn--${pageName}" name="btnCvlcptDscsn"
role="tab" data-bs-toggle="tab" data-bs-target="#cvlcptDscsnInfo" aria-controls="cvlcptDscsnInfo" aria-selected="false">
<button type="button" class="nav-link w-px-160 h-75" name="btnCvlcptDscsn" role="tab" data-bs-toggle="tab" data-bs-target="#cvlcptDscsnInfo" aria-controls="cvlcptDscsnInfo" aria-selected="false">
민원상담 정보
</button>
</li>
@ -100,60 +95,61 @@
</div> <!-- <div class="card wrapper-list"> -->
<script>
/**************************************************************************
* Global Variable
**************************************************************************/
pageObject["${pageName}"] = {};
/**************************************************************************
* script 진입
**************************************************************************/
$(document).ready(function() {
// pageObject
let $P = pageObject["${pageName}"];
// infoDialog 호출 용도(view 조회(편집불가), create 등록, update 수정)
$P.callPurpose = "${callPurpose}";
// FormFields
$P.formFields = new FimsFormFields("#frmEdit--${pageName}");
// 자료 이동을 위한 자료의 Index. 0부터 시작.
$P.curDataIndex;
// 현재 탭의 위치
$P.activeTabIndex = 0;
/**************************************************************************
* DatasetControl
**************************************************************************/
$P.mainControl = new DatasetControl({
prefix: "totalInfoMain"
, prefixName: "개별총정보"
, keymapper: info => info ? info.CRDN_ID : ""
, dataGetter: obj => obj.totalInfo
, formats: {
CRDN_YMD_TM: datetimeFormat
, CRDN_STTS_CHG_DT: datetimeFormat
}
});
/**************************************************************************
* DatasetControl 이벤트
**************************************************************************/
// 현재 선택 자료 변경 이벤트
$P.mainControl.onCurrentChange = (item) => {
if (!item) return;
// Dataset 셋팅
$P.formFields.set($P.mainControl, item);
// 건수 표기
let controlName = "${callControlName}";
if (controlName != "noControlName") {
$P.fnChangeCountStauts();
}
// 자료 수정
$P.useDataEdit(item);
}
/**************************************************************************
* Global Variable
**************************************************************************/
pageObject["${pageName}"] = newDoctxFinder("${pageName}");
/**************************************************************************
* script 진입
**************************************************************************/
$(document).ready(function() {
// pageObject
let $P = pageObject["${pageName}"];
// infoDialog 호출 용도(view 조회(편집불가), create 등록, update 수정)
$P.callPurpose = "${callPurpose}";
// FormFields
$P.formFields = new FimsFormFields($P.selector("frmEdit"));
// 자료 이동을 위한 자료의 Index. 0부터 시작.
$P.curDataIndex;
// 현재 탭의 위치
$P.activeTabIndex = 0;
// 개별총정보를 호출한 Control
$P.callControlName = "${callControlName}";
$P.callControl = ${callControlName};
/**************************************************************************
* DatasetControl
**************************************************************************/
$P.mainCtrl = new DatasetControl({
prefix: "totalInfoMain"
, prefixName: "개별총정보"
, keymapper: info => info ? info.CRDN_ID : ""
, dataGetter: obj => obj.totalInfo
, formats: {
CRDN_YMD_TM: datetimeFormat
, CRDN_STTS_CHG_DT: datetimeFormat
}
});
/**************************************************************************
* DatasetControl 이벤트
**************************************************************************/
// 현재 선택 자료 변경 이벤트
$P.mainCtrl.onCurrentChange = (item) => {
if (!item) return;
// 화면에 Dataset 셋팅
$P.formFields.set($P.mainCtrl, item);
if ($P.callControlName != "noControlName") {
$P.fnChangeCountStauts(); // 건수 표기
}
// 자료 수정
$P.fnUseDataEdit(item);
}
/**************************************************************************
* 사용자 함수(function)
@ -169,7 +165,7 @@
, success: resp => {
if (resp.totalInfo) {
// 최상단 단속 Data 셋팅
$P.mainControl.setData([resp.totalInfo]);
$P.mainCtrl.setData([resp.totalInfo]);
if ($P.activeTabIndex == 0) {
$P.fnCrdnPayerInfo(); // 단속 납부자 Data 셋팅
@ -191,8 +187,8 @@
});
}
// 자료 삭제 가능 여부
$P.useDataEdit = (item) => {
// 자료 수정 가능 여부
$P.fnUseDataEdit = (item) => {
// 삭제 자료일 경우 빨간색으로 변경
let elem = document.getElementById("crdnSttsNm--${pageName}");
@ -207,11 +203,10 @@
//
$P.fnClose = (isDataReLoad) => {
dialog.close($P.mainControl.prefix + "Dialog");
dialog.close($P.selfDlgId());
let controlName = "${callControlName}";
if (isDataReLoad && controlName != "noControlName") {
${callControlName}._load();
if (isDataReLoad && $P.callControlName != "noControlName") {
$P.callControl._load();
}
}
@ -220,13 +215,14 @@
**************************************************************************/
// 건수 표기
$P.fnChangeCountStauts = () => {
let dataItems = $P.callControl.dataset._items;
// $P.curDataIndex 에 값이 없다면..
if ($P.curDataIndex == null) {
let mainDataItems = ${callControlName}.dataset._items;
let curCrdnId = $P.mainControl.dataset.getValue("CRDN_ID");
let curCrdnId = $P.mainCtrl.getValue("CRDN_ID");
for (iLoop = 0; iLoop < mainDataItems.length; iLoop++) {
if (mainDataItems[iLoop].data.CRDN_ID == curCrdnId) {
for (iLoop = 0; iLoop < dataItems.length; iLoop++) {
if (dataItems[iLoop].data.CRDN_ID == curCrdnId) {
$P.curDataIndex = iLoop;
break;
}
@ -234,21 +230,22 @@
}
let viewNumber = $P.curDataIndex + 1;
$("#countStauts--${pageName}").val(viewNumber + " of " + ${callControlName}.dataset._items.length);
$P.$find("countStauts").val(viewNumber + " of " + dataItems.length);
}
// 이전 자료 조회
$P.fnPrev = () => {
let mainDataItems = ${callControlName}.dataset._items;
let curCrdnId = $P.mainControl.dataset.getValue("CRDN_ID");
let dataItems = $P.callControl.dataset._items;
let curCrdnId = $P.mainCtrl.getValue("CRDN_ID");
// 초기 값은 callControl dataset 의 총 건수 - 1
if ($P.curDataIndex == null) {
$P.curDataIndex = mainDataItems.length - 1;
$P.curDataIndex = dataItems.length - 1;
}
for (iLoop = $P.curDataIndex; iLoop >= 0; iLoop--) {
if (mainDataItems[iLoop].data.CRDN_ID == curCrdnId) {
if (dataItems[iLoop].data.CRDN_ID == curCrdnId) {
if (iLoop - 1 < 0) return; // 종료
$P.curDataIndex = iLoop - 1;
@ -256,15 +253,14 @@
}
}
let crdnId = mainDataItems[$P.curDataIndex].data.CRDN_ID;
let crdnId = dataItems[$P.curDataIndex].data.CRDN_ID;
// 단속 ID 가 없다면.. return
if (crdnId == null || crdnId == "") return;
let params = {
callPurpose: "view"
, callControlName: "${callControlName}"
, sggCd: mainDataItems[$P.curDataIndex].data.SGG_CD
, taskSeCd: mainDataItems[$P.curDataIndex].data.TASK_SE_CD
, sggCd: dataItems[$P.curDataIndex].data.SGG_CD
, taskSeCd: dataItems[$P.curDataIndex].data.TASK_SE_CD
, crdnId: crdnId
, delYn: "N"
};
@ -274,32 +270,31 @@
// 다음 자료 조회
$P.fnNext = () => {
let mainDataItems = ${callControlName}.dataset._items;
let curCrdnId = $P.mainControl.dataset.getValue("CRDN_ID");
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 < mainDataItems.length; iLoop++) {
if (mainDataItems[iLoop].data.CRDN_ID == curCrdnId) {
if (iLoop + 1 >= mainDataItems.length) return; // 종료
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 = mainDataItems[$P.curDataIndex].data.CRDN_ID;
let crdnId = dataItems[$P.curDataIndex].data.CRDN_ID;
// 단속 ID 가 없다면.. return
if (crdnId == null || crdnId == "") return;
let params = {
callPurpose: "view"
, callControlName: "${callControlName}"
, sggCd: mainDataItems[$P.curDataIndex].data.SGG_CD
, taskSeCd: mainDataItems[$P.curDataIndex].data.TASK_SE_CD
, sggCd: dataItems[$P.curDataIndex].data.SGG_CD
, taskSeCd: dataItems[$P.curDataIndex].data.TASK_SE_CD
, crdnId: crdnId
, delYn: "N"
};
@ -312,7 +307,7 @@
**************************************************************************/
// 단속 정보
$P.fnCrdnPayerInfo = () => {
let crdnId = $P.mainControl.dataset.getValue("CRDN_ID");
let crdnId = $P.mainCtrl.getValue("CRDN_ID");
// 단속 ID 가 없다면.. return
if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return;
@ -321,8 +316,8 @@
let params = {
callPurpose: "view"
, sggCd: $P.mainControl.dataset.getValue("SGG_CD")
, taskSeCd: $P.mainControl.dataset.getValue("TASK_SE_CD")
, sggCd: $P.mainCtrl.getValue("SGG_CD")
, taskSeCd: $P.mainCtrl.getValue("TASK_SE_CD")
, crdnId: crdnId
, delYn: "N"
};
@ -338,7 +333,7 @@
// 의견제출 정보
$P.fnOpnnSbmsnInfo = () => {
let crdnId = $P.mainControl.dataset.getValue("CRDN_ID");
let crdnId = $P.mainCtrl.getValue("CRDN_ID");
// 단속 ID 가 없다면.. return
if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return;
@ -347,8 +342,8 @@
let params = {
callPurpose: "view"
, sggCd: $P.mainControl.dataset.getValue("SGG_CD")
, taskSeCd: $P.mainControl.dataset.getValue("TASK_SE_CD")
, sggCd: $P.mainCtrl.getValue("SGG_CD")
, taskSeCd: $P.mainCtrl.getValue("TASK_SE_CD")
, crdnId: crdnId
, delYn: "N"
};
@ -364,7 +359,7 @@
// 발송 반송 정보
$P.fnSndngInfo = () => {
let crdnId = $P.mainControl.dataset.getValue("CRDN_ID");
let crdnId = $P.mainCtrl.getValue("CRDN_ID");
// 단속 ID 가 없다면.. return
if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return;
@ -374,8 +369,8 @@
let params = {
callPurpose: "view"
, sggCd: $P.mainControl.dataset.getValue("SGG_CD")
, taskSeCd: $P.mainControl.dataset.getValue("TASK_SE_CD")
, sggCd: $P.mainCtrl.getValue("SGG_CD")
, taskSeCd: $P.mainCtrl.getValue("TASK_SE_CD")
, crdnId: crdnId
, delYn: "N"
};
@ -391,7 +386,7 @@
// 처리 정보
$P.fnPrcsInfo = () => {
let crdnId = $P.mainControl.dataset.getValue("CRDN_ID");
let crdnId = $P.mainCtrl.getValue("CRDN_ID");
// 단속 ID 가 없다면.. return
if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return;
@ -400,10 +395,10 @@
let params = {
callPurpose: "view"
, sggCd: $P.mainControl.dataset.getValue("SGG_CD")
, taskSeCd: $P.mainControl.dataset.getValue("TASK_SE_CD")
, sggCd: $P.mainCtrl.getValue("SGG_CD")
, taskSeCd: $P.mainCtrl.getValue("TASK_SE_CD")
, crdnId: crdnId
, rtpyrId: $P.mainControl.dataset.getValue("RTPYR_ID")
, rtpyrId: $P.mainCtrl.getValue("RTPYR_ID")
, delYn: "N"
};
@ -418,7 +413,7 @@
// 부과체납 정보
$P.fnLevyInfo = () => {
let crdnId = $P.mainControl.dataset.getValue("CRDN_ID");
let crdnId = $P.mainCtrl.getValue("CRDN_ID");
// 단속 ID 가 없다면.. return
if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return;
@ -427,8 +422,8 @@
let params = {
callPurpose: "view"
, sggCd: $P.mainControl.dataset.getValue("SGG_CD")
, taskSeCd: $P.mainControl.dataset.getValue("TASK_SE_CD")
, sggCd: $P.mainCtrl.getValue("SGG_CD")
, taskSeCd: $P.mainCtrl.getValue("TASK_SE_CD")
, crdnId: crdnId
, delYn: "N"
};
@ -444,7 +439,7 @@
// 수납 정보
$P.fnRcvmtInfo = () => {
let crdnId = $P.mainControl.dataset.getValue("CRDN_ID");
let crdnId = $P.mainCtrl.getValue("CRDN_ID");
// 단속 ID 가 없다면.. return
if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return;
@ -453,8 +448,8 @@
let params = {
callPurpose: "view"
, sggCd: $P.mainControl.dataset.getValue("SGG_CD")
, taskSeCd: $P.mainControl.dataset.getValue("TASK_SE_CD")
, sggCd: $P.mainCtrl.getValue("SGG_CD")
, taskSeCd: $P.mainCtrl.getValue("TASK_SE_CD")
, crdnId: crdnId
, delYn: "N"
};
@ -470,7 +465,7 @@
// 민원상담 정보
$P.fnCvlcptDscsnInfo = () => {
let crdnId = $P.mainControl.dataset.getValue("CRDN_ID");
let crdnId = $P.mainCtrl.getValue("CRDN_ID");
// 단속 ID 가 없다면.. return
if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return;
@ -480,10 +475,10 @@
let params = {
callPurpose: "view"
, inquiryCondition: "crdnId_vhrno"
, sggCd: $P.mainControl.dataset.getValue("SGG_CD")
, taskSeCd: $P.mainControl.dataset.getValue("TASK_SE_CD")
, sggCd: $P.mainCtrl.getValue("SGG_CD")
, taskSeCd: $P.mainCtrl.getValue("TASK_SE_CD")
, crdnId: crdnId
, vhrno: $P.mainControl.dataset.getValue("VHRNO")
, vhrno: $P.mainCtrl.getValue("VHRNO")
, delYn: "N"
};
@ -496,28 +491,29 @@
});
}
/**************************************************************************
* 초기 셋팅
**************************************************************************/
// 이벤트 설정
$P.setEvent = () => {
// 기본 버튼 이벤트
$("#btnPrev--${pageName}").on("click", () => $P.fnPrev()); // 이전
$("#btnNext--${pageName}").on("click", () => $P.fnNext()); // 다음
$("#btnCrdnPayer--${pageName}").on("click", () => $P.fnCrdnPayerInfo()); // 단속 정보
$("#btnOpnnSbmsn--${pageName}").on("click", () => $P.fnOpnnSbmsnInfo()); // 의견제출 정보
$("#btnSndng--${pageName}").on("click", () => $P.fnSndngInfo()); // 발송반송 정보
$("#btnPrcs--${pageName}").on("click", () => $P.fnPrcsInfo()); // 처리상세 정보
$("#btnLevy--${pageName}").on("click", () => $P.fnLevyInfo()); // 부과체납 정보
$("#btnRcvmt--${pageName}").on("click", () => $P.fnRcvmtInfo()); // 수납 정보
$("#btnCvlcptDscsn--${pageName}").on("click", () => $P.fnCvlcptDscsnInfo()); // 민원상담 정보
}
// 기본 데이터 설정
$P.initData = () => {
$P.curDataIndex = null; // 화면이 열릴때 초기 값으로 null로 설정해야 건수가 정상 표시 된다.
}
/**************************************************************************
* 초기 셋팅
**************************************************************************/
// 이벤트 설정
$P.setEvent = () => {
// 기본 버튼 이벤트
$P.$find("btnPrev").on("click", () => { $P.fnPrev() }); // 이전
$P.$find("btnNext").on("click", () => { $P.fnNext() }); // 다음
$P.$find("btnCrdnPayer").on("click", () => { $P.fnCrdnPayerInfo() }); // 단속 정보
$P.$find("btnOpnnSbmsn").on("click", () => { $P.fnOpnnSbmsnInfo() }); // 의견제출 정보
$P.$find("btnSndng").on("click", () => { $P.fnSndngInfo() }); // 발송반송 정보
$P.$find("btnPrcs").on("click", () => { $P.fnPrcsInfo() }); // 처리상세 정보
$P.$find("btnLevy").on("click", () => { $P.fnLevyInfo() }); // 부과체납 정보
$P.$find("btnRcvmt").on("click", () => { $P.fnRcvmtInfo() }); // 수납 정보
$P.$find("btnCvlcptDscsn").on("click", () => { $P.fnCvlcptDscsnInfo() }); // 민원상담 정보
}
// 기본 데이터 설정
$P.initData = () => {
// 화면이 열릴때 초기 값으로 null로 설정해야 건수가 정상 표시 된다.
$P.curDataIndex = null;
}
/**************************************************************************
* script 진입시 실행 함수
@ -529,7 +525,7 @@
$P.initData();
// 3. Dataset 설정
$P.mainControl.setData([${totalInfo}]);
$P.mainCtrl.setData([${totalInfo}]);
// 4. 단속, 납부자 정보 조회
$P.fnCrdnPayerInfo();

Loading…
Cancel
Save