부과제외관리 수정.

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

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

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

Loading…
Cancel
Save