부과제외관리 수정.

main
jjh 3 months ago
parent 3516e7c411
commit 02fb93815b

@ -4,20 +4,20 @@
<c:set var="prefixName" scope="request">부과제외 관리</c:set>
<!-- inner page html -->
<div class="content-wrapper">
<div class="content-wrapper" data-doctx="${pageName}">
<!-- Content -->
<div class="container-xxl flex-grow-1 px-0">
<div class="card wrapper-list">
<!-- 상단 버튼 -->
<div class="container-page-btn">
<button type="button" class="btn btn-outline-dark w-px-120" id="btnReset--${pageName}" title="초기화">
<button type="button" class="btn btn-outline-dark w-px-120" name="btnReset" title="초기화">
초기화
</button>
<span class="container-window-btn-right">
<button type="button" class="btn btn-search w-px-120" id="btnSearch--${pageName}" title="검색">
<button type="button" class="btn btn-search w-px-120" name="btnSearch" title="검색">
검색
</button>
<button type="button" class="btn btn-excel w-px-120" id="btnExcel--${pageName}" title="엑셀">
<button type="button" class="btn btn-excel w-px-120" name="btnExcel" title="엑셀">
엑셀
</button>
</span>
@ -25,9 +25,9 @@
<!-- 상단 버튼 -->
<!-- 검색 조건 영역 -->
<form id="frmSearch--${pageName}" name="frmSearch">
<form name="frmSearch">
<!-- hidden -->
<input type="hidden" id="sggCd--${pageName}" name="sggCd" />
<input type="hidden" name="sggCd" />
<!-- 메인 조건 -->
<div class="container-search">
@ -47,21 +47,21 @@
</div>
<!-- 부과 제외 일자 -->
<div class="col-6">
<label class="form-label fw-bold form-search-title w-px-120 text-end" for="schLevyExclYmdFrom--${pageName}">부과제외일자</label>
<label class="form-label fw-bold form-search-title w-px-120 text-end">부과제외일자</label>
<span class="form-search-linebox">
<input type="text" class="form-control form-date" id="schLevyExclYmdFrom--${pageName}" name="schLevyExclYmdFrom"
<input type="text" class="form-control form-date" name="schLevyExclYmdFrom"
data-fmt-type="day" autocomplete="off" title="시작 날짜 선택" />
<button type="button" class="bx bx-lg bx-calendar bg-white"></button>
~
<input type="text" class="form-control form-date" id="schLevyExclYmdTo--${pageName}" name="schLevyExclYmdTo"
<input type="text" class="form-control form-date" name="schLevyExclYmdTo"
data-fmt-type="day" autocomplete="off" title="종료 날짜 선택" />
<button type="button" class="bx bx-lg bx-calendar bg-white"></button>
</span>
</div>
<!-- 부과 제외 구분 -->
<div class="col-6">
<label class="form-label fw-bold form-search-title w-px-120 text-end" for="schLevyExclSeCd--${pageName}">부과제외구분</label>
<select class="form-select w-px-120" id="schLevyExclSeCd--${pageName}" name="schLevyExclSeCd">
<label is="name-label" class="form-label fw-bold form-search-title w-px-120 text-end" for="schLevyExclSeCd">부과제외구분</label>
<select is="id-select" class="form-select w-px-120" name="schLevyExclSeCd">
<option value="">전체</option>
<c:forEach items="${FIM021List}" var="item">
<option value="${item.code}">${item.value}</option>
@ -70,8 +70,8 @@
</div>
<!-- 부과 제외 사유 -->
<div class="col-6">
<label class="form-label fw-bold form-search-title w-px-120 text-end" for="schLevyExclRsnCd--${pageName}">부과제외사유</label>
<select class="form-select w-px-120" id="schLevyExclRsnCd--${pageName}" name="schLevyExclRsnCd">
<label is="name-label" class="form-label fw-bold form-search-title w-px-120 text-end" for="schLevyExclRsnCd">부과제외사유</label>
<select is="id-select" class="form-select w-px-200" name="schLevyExclRsnCd">
<option value="">전체</option>
<c:forEach items="${FIM022List}" var="item">
<option value="${item.code}">${item.value}</option>
@ -80,14 +80,14 @@
</div>
<!-- 동적검색 -->
<div class="col-6">
<input type="hidden" id="by--${pageName}" name="by" />
<input type="text" class="form-control fw-bold w-px-120 text-end" id="byOutput--${pageName}" value="동적 검색" readonly />
<input type="hidden" id="mainOption--${pageName}" name="mainOption" />
<input type="hidden" id="subOption--${pageName}" name="subOption" />
<input type="text" class="form-control w-px-400" id="term--${pageName}" name="term" autocomplete="off" />
<input type="hidden" name="by" />
<input type="text" class="form-control fw-bold w-px-120 text-end" name="byOutput" value="동적 검색" readonly />
<input type="hidden" name="mainOption" />
<input type="hidden" name="subOption" />
<input type="text" class="form-control w-px-400" name="term" autocomplete="off" />
<!-- 상세 검색조건 버튼 -->
<span class="flr">
<button type="button" class="btn btn-open-detail" data-bs-toggle="collapse" data-bs-target="#searchDetail--${pageName}">
<button type="button" class="btn btn-open-detail" data-bs-toggle="collapse" data-bs-target="[data-doctx='${pageName}'] [name='searchDetail']">
<i class="bx bx-chevron-down"></i>
상세검색
</button>
@ -97,61 +97,46 @@
</div> <!-- 메인 조건 -->
<!-- 상세 조건 -->
<div id="searchDetail--${pageName}" class="container-search container-search-detail collapse">
<div name="searchDetail" class="container-search container-search-detail collapse">
<div class="row g-1">
<!-- 단속일자 -->
<div class="col-4">
<label class="form-label fw-bold form-search-title w-px-120 text-end" for="schCrdnYmdFrom--${pageName}">단속일자</label>
<label class="form-label fw-bold form-search-title w-px-120 text-end">단속일자</label>
<span class="form-search-linebox">
<input type="text" class="form-control form-date" id="schCrdnYmdFrom--${pageName}" name="schCrdnYmdFrom"
<input type="text" class="form-control form-date" name="schCrdnYmdFrom"
data-fmt-type="day" autocomplete="off" title="시작 날짜 선택" />
<button type="button" class="bx bx-lg bx-calendar bg-white"></button>
~
<input type="text" class="form-control form-date" id="schCrdnYmdTo--${pageName}" name="schCrdnYmdTo"
<input type="text" class="form-control form-date" name="schCrdnYmdTo"
data-fmt-type="day" autocomplete="off" title="종료 날짜 선택" />
<button type="button" class="bx bx-lg bx-calendar bg-white"></button>
</span>
</div>
<!-- 차량번호 -->
<div class="col-4">
<label class="form-label fw-bold form-search-title w-px-120 text-end" for="schVhrno--${pageName}">차량번호</label>
<input type="text" class="form-control w-px-160" id="schVhrno--${pageName}" name="schVhrno" autocomplete="off" />
</div>
<!-- 납부자번호 -->
<div class="col-4">
<label class="form-label fw-bold form-search-title w-px-120 text-end" for="schRtpyrNm--${pageName}">납부자번호</label>
<input type="text" class="form-control w-px-160" id="schRtpyrNm--${pageName}" name="schRtpyrNm" autocomplete="off" />
</div>
<!-- 납부자명 -->
<div class="col-4">
<label class="form-label fw-bold form-search-title w-px-120 text-end" for="schRtpyrNo--${pageName}">납부자명</label>
<input type="text" class="form-control w-px-160" id="schRtpyrNo--${pageName}" name="schRtpyrNo" autocomplete="off" />
</div>
<!-- 등록일자, 수정일자 -->
<div class="col-4">
<select class="form-select w-px-120 text-center" id="schRegDateOpt--${pageName}" name="schRegDateOpt">
<select class="form-select w-px-120 text-center" name="schRegDateOpt">
<option value="regDt">등록일자</option>
<option value="mdfcnDt">수정일자</option>
</select>
<span class="form-search-linebox">
<input type="text" class="form-control form-date" id="schRegDateFrom--${pageName}" name="schRegDateFrom"
<input type="text" class="form-control form-date" name="schRegDateFrom"
data-fmt-type="day" title="시작 날짜 선택" />
<button type="button" class="bx bx-lg bx-calendar bg-white"></button>
~
<input type="text" class="form-control form-date" id="schRegDateTo--${pageName}" name="schRegDateTo"
<input type="text" class="form-control form-date" name="schRegDateTo"
data-fmt-type="day" title="종료 날짜 선택">
<button type="button" class="bx bx-lg bx-calendar bg-white"></button>
</span>
</div>
<!-- 등록자명, 수정자명 -->
<div class="col-4">
<select class="form-select w-px-120 text-center" id="schRgtrOpt--${pageName}" name="schRgtrOpt">
<select class="form-select w-px-120 text-center" name="schRgtrOpt">
<option value="rgtr">등록자</option>
<option value="mdfr">수정자</option>
</select>
<input type="hidden" id="schRgtrCd--${pageName}" name="schRgtrCd" />
<input type="text" class="form-control w-px-160" id="schRgtrNm--${pageName}" name="schRgtrNm" />
<button type="button" class="btn btn-sm btn-outline-dark" id="btnFindUser--${pageName}" title="사용자 검색">검색</button>
<input type="hidden" name="schRgtrCd" />
<input type="text" class="form-control w-px-160" name="schRgtrNm" />
<button type="button" class="btn btn-sm btn-outline-dark" name="btnFindUser" title="사용자 검색">검색</button>
</div>
</div>
</div> <!-- 상세 조건 -->
@ -163,16 +148,16 @@
<span class="container-page-btn">
<!-- 건수, 페이지 표시 -->
<div class="d-flex flex-row justify-content-between">
<span class="dataTables_info" id="paging--${pageName}PagingInfo" role="status" aria-live="polite"></span>
<ul class="pagination pagination-primary" id="paging--${pageName}">
<span is="paging-info" class="dataTables_info" name="dataPagingInfo" role="status" aria-live="polite"></span>
<ul class="pagination pagination-primary" name="dataPaging">
</ul>
</div>
<!-- 업무 버튼 -->
<span class="container-window-btn-right">
<button type="button" class="btn btn-primary w-px-120" id="btnUpdate--${pageName}" title="부과제외 수정">
<button type="button" class="btn btn-primary w-px-120" name="btnUpdate" title="부과제외 수정">
부과제외 수정
</button>
<button type="button" class="btn btn-primary w-px-120" id="btnRemove--${pageName}" title="부과제외 삭제">
<button type="button" class="btn btn-primary w-px-120" name="btnRemove" title="부과제외 삭제">
부과제외 삭제
</button>
</span>
@ -182,20 +167,16 @@
<!-- DataTables(그리드) -->
<div class="card-datatable text-nowrap">
<div class="dataTables_wrapper dt-bootstrap5 no-footer" id="DataTables_Table_0_wrapper--${pageName}">
<div class="table-responsive ox-scroll oy-scroll h-px-500" id="table-responsive--${pageName}">
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--${pageName}" aria-describedby="DataTables_Table_0_info">
<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" aria-describedby="DataTables_Table_0_info">
<thead class="sticky-thead">
<tr id="theadTr--${pageName}"
data-by="by--${pageName}" data-by-output="byOutput--${pageName}" data-main-option="mainOption--${pageName}" data-sub-option="subOption--${pageName}">
<tr name="theadTr" data-search-target="[data-doctx='${pageName}']">
</tr>
</thead>
<tbody id="tbody--${pageName}">
</tbody>
<template id="${infoPrefix}Col--${pageName}">
<template name="titleCols">
<th class="cmn" style="width: 72px;">No.</th>
<th class="cmn" style="width: 56px;"><input type="checkbox" class="form-check-input" id="gridAllCheckbox--${pageName}" onchange="pageObject['${pageName}'].control.select(this.checked);" /></th>
<th class="cmn" style="width: 56px;"><input type="checkbox" class="form-check-input" name="gridAllCheckbox" onchange="pageObject['${pageName}'].dataTableCheckbox(this, this.checked);" /></th>
<th class="cmn" style="width: 160px;">업무구분</th>
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('LEVY_EXCL_YMD', this.innerText, 'ymd', '');">부과제외일자</th>
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('LEVY_EXCL_SE_CD', this.innerText, 'codeValue', 'FIM021');">부과제외구분</th>
@ -227,46 +208,48 @@
<th class="cmn" style="width: 140px;">수정사용자</th>
<th class="cmn dummy-th"></th>
</template>
<template id="${infoPrefix}Row--${pageName}">
<tr data-key="{LEVY_EXCL_ID}">
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td>
<td class="cmn text-center"><input type="checkbox" class="form-check-input" name="gridCheckbox" value="{LEVY_EXCL_ID}" onchange="pageObject['${pageName}'].control.select('{LEVY_EXCL_ID}', this.checked);" /></td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{TASK_SE_NM}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{LEVY_EXCL_YMD}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{LEVY_EXCL_SE_NM}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{LEVY_EXCL_RSN_NM}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{ETC_CN}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CVLCPT_APLY_NO}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CVLCPT_RCPT_NO}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CVLCPT_RCPT_YMD}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_YMD_TM}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{VHRNO}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_SE_NM}</td>
<td class="cmn text-center privacy-cell" onclick="{onclick}" ondblclick="{ondblclick}">
<tbody name="tbodyList">
</tbody>
<template is="curly-brackets" name="dataRows">
<tr data-key="LEVY_EXCL_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>
<td class="cmn text-center" onclick ondblclick>{TASK_SE_NM}</td>
<td class="cmn text-center" onclick ondblclick>{LEVY_EXCL_YMD}</td>
<td class="cmn text-center" onclick ondblclick>{LEVY_EXCL_SE_NM}</td>
<td class="cmn text-start" onclick ondblclick>{LEVY_EXCL_RSN_NM}</td>
<td class="cmn text-start" onclick ondblclick>{ETC_CN}</td>
<td class="cmn text-center" onclick ondblclick>{CVLCPT_APLY_NO}</td>
<td class="cmn text-center" onclick ondblclick>{CVLCPT_RCPT_NO}</td>
<td class="cmn text-center" onclick ondblclick>{CVLCPT_RCPT_YMD}</td>
<td class="cmn text-center" onclick ondblclick>{CRDN_YMD_TM}</td>
<td class="cmn text-start" onclick ondblclick>{VHRNO}</td>
<td class="cmn text-center" onclick ondblclick>{RTPYR_SE_NM}</td>
<td class="cmn text-center privacy-cell" onclick ondblclick>
<span>{RTPYR_NO}</span>
<span>*************</span>
</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_NM}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{VLTN_ARTCL}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_STDG_NM}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_PLC}</td>
<td class="bpv text-start" onclick="{onclick}" ondblclick="{ondblclick}">{DTL_CRDN_PLC}</td>
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{FFNLG_CRDN_AMT}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_STTS_NM}</td>
<td class="pvs text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_SPAREA_NM}</td>
<td class="eca text-center" onclick="{onclick}" ondblclick="{ondblclick}">{USE_FUEL_NM}</td>
<td class="dpv text-center" onclick="{onclick}" ondblclick="{ondblclick}">{PRK_PSBLTY_RSLT_NM}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ZIP}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{ADDR}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{DTL_ADDR}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{REG_DT}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RGTR_NM}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{MDFCN_DT}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{MDFR_NM}</td>
<td class="cmn text-start" onclick ondblclick>{RTPYR_NM}</td>
<td class="cmn text-start" onclick ondblclick>{VLTN_ARTCL}</td>
<td class="cmn text-center" onclick ondblclick>{CRDN_STDG_NM}</td>
<td class="cmn text-start" onclick ondblclick>{CRDN_PLC}</td>
<td class="bpv text-start" onclick ondblclick>{DTL_CRDN_PLC}</td>
<td class="cmn text-end" onclick ondblclick>{FFNLG_CRDN_AMT}</td>
<td class="cmn text-start" onclick ondblclick>{CRDN_STTS_NM}</td>
<td class="pvs text-center" onclick ondblclick>{CRDN_SPAREA_NM}</td>
<td class="eca text-center" onclick ondblclick>{USE_FUEL_NM}</td>
<td class="dpv text-center" onclick ondblclick>{PRK_PSBLTY_RSLT_NM}</td>
<td class="cmn text-center" onclick ondblclick>{ZIP}</td>
<td class="cmn text-start" onclick ondblclick>{ADDR}</td>
<td class="cmn text-start" onclick ondblclick>{DTL_ADDR}</td>
<td class="cmn text-center" onclick ondblclick>{REG_DT}</td>
<td class="cmn text-center" onclick ondblclick>{RGTR_NM}</td>
<td class="cmn text-center" onclick ondblclick>{MDFCN_DT}</td>
<td class="cmn text-center" onclick ondblclick>{MDFR_NM}</td>
<td class="cmn dummy-td"></td>
</tr>
</template>
<template id="${infoPrefix}NotFound--${pageName}">
<template name="dataNotFound">
<tr class="bpv">
<td valign="top" colspan="29" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
</tr>
@ -300,7 +283,7 @@
/**************************************************************************
* Global Variable
**************************************************************************/
pageObject["${pageName}"] = {};
pageObject["${pageName}"] = newDoctxFinder("${pageName}");
/**************************************************************************
* script 진입
@ -310,18 +293,21 @@
let $P = pageObject["${pageName}"];
// FormFields
$P.formFields = new FimsFormFields("#frmSearch--${pageName}");
$P.formFields = new FimsFormFields($P.selector("frmSearch"));
/**************************************************************************
* DatasetControl
**************************************************************************/
$P.control = new DatasetControl({
$P.ctrl = new DatasetControl({
prefix: "levyExcl"
, prefixName: "부과제외"
, keymapper: info => info ? info.LEVY_EXCL_ID : ""
, dataGetter: obj => obj.${infoPrefix}List
, dataGetter: obj => obj["List"]
, appendData: true
, infoSize: "md"
, urls: {
load: wctx.url("${prefixUrl}" + "/010/list.do") // 검색
}
, formats: {
LEVY_EXCL_YMD: dateFormat
, CRDN_YMD_TM: datetimeFormat
@ -331,103 +317,92 @@
, MDFCN_DT: datetimeFormat
}
});
// $P.control 설정
$P.control.defaultFetchSize = FETCH_XS; // 1 페이지당 조회되는 자료 건수 index.jsp에서 확인 FETCH_XS = 30
$P.control.query = { pageNum : 1, fetchSize : $P.control.defaultFetchSize };
$P.control.beforeCurrent = null;
// 검색 조건
$P.ctrl.query = { pageNum: 1, fetchSize: DEFAULT_FETCH_SIZE }; // 1 페이지당 자료 건수 index.jsp에서 확인
/**************************************************************************
* DatasetControl 이벤트
**************************************************************************/
// Dataset 변경 이벤트
$P.control.onDatasetChange = (obj, option) => {
$P.renderList(obj.${infoPrefix}Total, option);
$("#paging--${pageName}").setPagingInfo({
list: $P.control.dataset
, prefix: "paging--${pageName}"
, start: obj.${infoPrefix}Start
, totalSize: obj.${infoPrefix}Total
, fetchSize: obj.${infoPrefix}Fetch
, func: "pageObject['${pageName}'].control.load({index})"
});
$P.ctrl.onDatasetChange = (obj, option) => {
$P.renderList(obj["Total"], option);
// datasetPaging
Apply.fromDataset.paging($P.ctrl.dataset, obj, $P.find("dataPaging"), $P.find("dataPagingInfo"));
};
// 현재 선택 자료 변경 이벤트
$P.control.onCurrentChange = (item) => {
$P.ctrl.onCurrentChange = (item) => {
if (!item) return;
let key = item.data.LEVY_EXCL_ID;
let key = item.data.MPNG_ID;
$("#tbody--${pageName}").setCurrentRow(key);
$P.$find("tbodyList").setCurrentRow(key);
};
// 선택(체크) 변경 이벤트
$P.control.onSelectionChange = (selected) => {
let ${infoPrefix}List = $P.control.dataset;
let keys = selected.map(e => ${infoPrefix}List.getKey(e));
$("#tbody--${pageName} input[type='checkbox']").each(function() {
let checkbox = $(this);
checkbox.prop("checked", keys.includes(checkbox.val()));
});
// 삭제 버튼
$("#btnRemove--${pageName}").prop("disabled", keys.length < 1);
// DataTables(그리드) 전체 선택(checkbox)
if (keys.length < 1) {
$("#DataTables_Table_0--${pageName} th input[type='checkbox']").prop("checked", false); // 체크 해제
} else if (keys.length == ${infoPrefix}List.length) {
$("#DataTables_Table_0--${pageName} th input[type='checkbox']").prop("checked", true); // 체크 설정
} else {
$("#DataTables_Table_0--${pageName} th input[type='checkbox']").prop("checked", false); // 체크 해제
}
$P.ctrl.onSelectionChange = (selected) => {
Apply.fromDataset.gridCheckbox($P.ctrl.dataset, $P.find("tbodyList"), 1, selected);
Apply.fromDataset.gridButton($P.ctrl.dataset, $P.find("btnRemove"), selected); // 삭제 버튼
};
// 상세정보 dialog
$P.control.getInfo = (params) => {
$P.ctrl.getInfo = (params) => {
if (!params) return;
ajax.get({
url: wctx.url("/" + params.taskSeCd + "${infoPrefixUrl}" + "/020/info.do") + "?openerPageName=${pageName}"
url: wctx.url("/" + params.taskSeCd + "${infoPrefixUrl}" + "/020/info.do")
, data: params || {}
, success: resp => {
, success: (resp) => {
let dialogName = $P.ctrl.prefixed("Dialog");
let dialogId = dialogName + "-" + uuid();
dialog.open({
id: $P.control.prefixed("Dialog--${pageName}")
, title: params.title
id: dialogId
, title: $P.control.prefixName + " 정보"
, size: $P.ctrl.infoSize
, content: resp
, size: $P.control.infoSize
, init: () => { }
, onClose: () => { $P.fnRefreshList(); } // 자료 재조회
, init: () => {
setDialogZindex();
$("#" + dialogId).attr("name", dialogName);
$("#" + dialogId).attr("data-ref-doctx", "${pageName}");
}
, onClose: () => {
$P.ctrl.reload({all : true}); // 자료 재조회
}
});
}
});
}
// 삭제 callback
$P.control.onRemove = (resp) => {
let btnTitle = $("#btnRemove--${pageName}").attr("title");
let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, btnTitle);
$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 }); // 자료 재조회
}
}
});
if (resp.saved) { $P.fnRefreshList(); } // 자료 재조회
}
// 삭제
$P.control.remove = (params) => {
$P.ctrl.remove = (params) => {
if (!params) return;
ajax.post({
url: wctx.url("/" + params.taskSeCd + "${infoPrefixUrl}" + "/010/remove.do")
, data: params || {}
, success: resp => $P.control.onRemove(resp)
, success: (resp) => {
$P.ctrl.onRemove(params, resp);
}
});
}
@ -436,12 +411,12 @@
**************************************************************************/
// DataTables에 click, dbclick 이벤트
$P.renderList = (totalSize, option) => {
let ${infoPrefix}List = $P.control.dataset;
let empty = ${infoPrefix}List.empty;
let clsForTask = $("#frmSearch--${pageName} input[name='taskSeCd']:checked").val().toLowerCase(); // 소문자
let dataList = $P.ctrl.dataset;
let empty = dataList.empty;
let clsForTask = $P.$find("taskSeCd").val().toLowerCase(); // 소문자
// 업무별 DataTables(그리드) tr, td
let foundContent = document.getElementById("${infoPrefix}Row--${pageName}").content;
let foundContent = $P.find("dataRows").content;
let foundTr = $(foundContent).find("tr")[0].cloneNode(false);
let foundTds = $(foundContent).find("." + clsForTask + ",.cmn");
@ -450,123 +425,195 @@
});
let replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].control.setCurrent('" + dataItem.getValue("LEVY_EXCL_ID") + "');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].getTotalInfo('" + dataItem.getValue("CRDN_ID") + "');");
.replace(/{onclick}/gi, "pageObject['${pageName}'].dataTableClick('" + dataItem.getValue("LEVY_EXCL_ID") + "');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dataTableDblClick('" + dataItem.getValue("LEVY_EXCL_ID") + "');");
let trs = empty ? [document.getElementById("${infoPrefix}NotFound--${pageName}").content.querySelector("." + clsForTask + ",.cmn").outerHTML]
: ${infoPrefix}List.inStrings(foundTr.outerHTML, replacer);
let trs = empty ? [$P.find("dataNotFound").content.querySelector("." + clsForTask + ",.cmn").outerHTML] :
dataList.inStrings(foundTr.outerHTML, replacer);
let noMore = (dataList.length >= totalSize);
let initScroll = ($P.ctrl.query.pageNum < 2);
let noMore = (${infoPrefix}List.length >= totalSize);
let initScroll = ($P.control.query.pageNum < 2);
if (option != null && option.reloaded) {
initScroll = false;
}
$("#table-responsive--${pageName}")[0].changeContent(trs.join(), initScroll, noMore);
$P.find("table-responsive").changeContent(trs.join(), initScroll, noMore);
// checkbox 체크 해제
$("#DataTables_Table_0--${pageName} th input[type='checkbox']").prop("checked", false);
$P.$find("gridAllCheckbox").prop("checked", false);
// 보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
}
// DataTables에 스크롤이 맨 밑으로 이동했을 때 이벤트
$P.scrollDataList = () => {
$P.control.load($P.control.query.pageNum + 1);
// dataTable 체크박스 클릭 이벤트
$P.dataTableCheckbox = (element, bool) => {
GRID.checkbox.sync(element, bool);
let atLeastOne = GRID.checkbox.countChecked(element) > 0;
$P.$find("btnRemove").prop("disabled", !atLeastOne);
Apply.toDataset.selection($P.ctrl.dataset, element, bool);
}
// DataTables에 더블 클릭시 개별총정보 dialog
$P.getTotalInfo = (crdnId) => {
// dataTable 클릭 이벤트
$P.dataTableClick = (dataKey) => {
if (dataKey == "") return;
$P.$find("tbodyList").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey);
}
// dataTable 더블 클릭 이벤트
$P.dataTableDblClick = (dataKey) => {
// 개별총정보 dialog
let crdnId = $P.ctrl.getValue("CRDN_ID");
if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return;
let params = {
callControlName: "pageObject['${pageName}'].control"
, sggCd: $P.control.dataset.getValue("SGG_CD")
, taskSeCd: $P.control.dataset.getValue("TASK_SE_CD")
callControlName: "pageObject['${pageName}'].ctrl"
, sggCd: $P.ctrl.getValue("SGG_CD")
, taskSeCd: $P.ctrl.getValue("TASK_SE_CD")
, crdnId: crdnId
}
ajax.get({
url: wctx.url("/sprt/sprt02/010/main.do")
, data: params
, success: resp => {
, data: params || {}
, success: (resp) => {
let dialogName = "totalInfoMainDialog";
let dialogId = dialogName + "-" + uuid();
dialog.open({
id: "totalInfoMainDialog"
id: dialogId
, title: "개별총정보"
, content: resp
, size: "xxl"
, init: () => { }
, init: () => {
setDialogZindex();
$("#" + dialogId).attr("name", dialogName);
$("#" + dialogId).attr("data-ref-doctx", "${pageName}");
}
, onClose: () => { }
});
}
});
}
// DataTables에 스크롤이 맨 밑으로 이동했을 때 이벤트
$P.scrollDataList = () => {
$P.ctrl.load($P.ctrl.query.pageNum + 1);
}
/**************************************************************************
* 사용자 함수(function)
**************************************************************************/
// 검색 자료 재조회
$P.fnRefreshList = () => {
$P.control.reload({all : true});
}
// 사용자검색 callback
$P.callbackFindUser = (userId, userNm) => {
$("#schRgtrCd--${pageName}").val(userId); // 사용자 ID
$("#schRgtrNm--${pageName}").val(userNm); // 사용자 명
$P.$find("schRgtrCd").val(userId); // 사용자 ID
$P.$find("schRgtrNm").val(userNm); // 사용자 명
}
// 삭제사유 callback
$P.callbackRsn = (obj) => {
// 서버에 전송할 data(파라미터) 생성
let params = {};
let selected = $P.control.dataset.getKeys("selected");
let selected = $P.ctrl.dataset.getKeys("selected");
params.sggCd = $("#sggCd--${pageName}").val(); // 시군구 코드
params.taskSeCd = $("#frmSearch--${pageName} input[name='taskSeCd']:checked").val(); // 업무 구분 코드
params[$P.control.prefixed("Ids")] = selected.join(","); // 부과 제외 IDs
params.delRsn = obj.reason; // 삭제 사유
// 서버에 전송할 data(파라미터) 생성
let params = {
sggCd: $("#sggCd--${pageName}").val() // 시군구 코드
, taskSeCd: $("#frmSearch--${pageName} input[name='taskSeCd']:checked").val() // 업무 구분 코드
, levyExclIds: selected.join(",") // 부과 제외 IDs
, delRsn: obj.reason // 삭제 사유
};
$P.control.remove(params);
$P.ctrl.remove(params);
}
/**************************************************************************
* 버튼 clickEvent
**************************************************************************/
// 초기화 버튼 이벤트
$P.fnReset = () => {
// 화면 초기화
$P.find("frmSearch").reset();
// dataset 초기화
$P.ctrl.dataset.clear();
// input, select 초기화
let searchForm = $P.$find("frmSearch");
searchForm.find("input[type='radio']").not("[name='taskSeCd']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='text']").val("");
searchForm.find("input[type='hidden']").val("");
searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); });
// 기본 데이터 설정
$P.$find("byOutput").val("동적 검색"); // 동적 검색
$P.$find("schRgtrNm").prop("readonly", true); // 사용자 이름
$P.$find("sggCd").val("${sggCd}"); // 시군구 코드
$P.$find("schLevyExclYmdFrom").datepicker('setDate', DateUtil.getDateDay(-7).date); // 부과 제외 일자 시작
$P.$find("schLevyExclYmdTo").datepicker('setDate', TODAY()); // 부과 제외 일자 종료
}
// 업무 구분 변경 이벤트
$P.fnResetAndChangeBiz = (taskSeCd) => {
// 초기화
$P.fnReset();
// 업무 구분 코드
if (typeof taskSeCd == "undefined" || taskSeCd == null || taskSeCd == "") {
taskSeCd = $("#layout-navbar input[name='taskSeCd']:checked").val();
}
$P.$find("frmSearch").find("input[name='taskSeCd'][value='" + taskSeCd + "']").prop("checked", true);
// 초기 기본 설정
$P.initForm(taskSeCd);
// 업무 구분별 설정
$P.setTask(taskSeCd);
// 업무구분에 따른 URL 설정
$P.ctrl.urls.load = wctx.url("/" + taskSeCd + "${infoPrefixUrl}" + "/010/list.do");
// dataset 초기화
$P.control.dataset.clear();
// 업무별 검색 조건
renderForTask($P.find("frmSearch"), taskSeCd.toLowerCase());
// 업무별 버튼
renderForTask($P.find("gridbuttonArea"), taskSeCd.toLowerCase());
// 업무별 그리드 th
let colContent = $P.find("titleCols").content;
let cols = $(colContent).find("." + taskSeCd.toLowerCase() + ",.cmn");
let colsOuterHTML = "";
cols.each(function() {
colsOuterHTML += this.outerHTML;
});
$P.find("table-responsive").changeColumn(colsOuterHTML);
}
// 사용자검색 버튼 클릭 이벤트
$P.fnGetFindUser = () => {
let params = {
openerPageName: "${pageName}"
, callbackFuncName: "pageObject['${pageName}']['callbackFindUser']"
callbackFuncName: "pageObject['${pageName}']['callbackFindUser']"
}
ajax.get({
url: wctx.url("/user/user02/010/main.do") + "?openerPageName=${pageName}"
url: wctx.url("/user/user02/010/main.do")
, data: params || {}
, success: resp => {
, success: (resp) => {
let dialogName = "userDialog";
let dialogId = dialogName + "-" + uuid();
dialog.open({
id: "userDialog--${pageName}"
id: dialogId
, title: "사용자 검색"
, content: resp
, size: "lg"
, init: () => { setDialogZindex(); }
, init: () => {
setDialogZindex();
$("#" + dialogId).attr("name", dialogName);
$("#" + dialogId).attr("data-ref-doctx", "${pageName}");
}
});
}
});
@ -575,16 +622,16 @@
// 검색 버튼 클릭 이벤트
$P.fnSearchList = () => {
// 검색조건
$P.control.query = $P.formFields.get(); // 검색 조건
$P.control.query.fetchSize = $P.control.defaultFetchSize; // 한번에 조회되는 자료 건수
$P.control.query.delYn = "N"; // 삭제 여부
$P.ctrl.query = $P.formFields.get(); // 검색 조건
$P.ctrl.query.fetchSize = DEFAULT_FETCH_SIZE; // 한번에 조회되는 자료 건수
$P.ctrl.query.delYn = "N"; // 삭제 여부
$P.control.load(1);
$P.ctrl.load(1);
}
// 엑셀 버튼 클릭 이벤트
$P.fnExcel = () => {
if ($P.control.dataset.empty) {
if ($P.ctrl.dataset.empty) {
dialog.alert({
content: "검색된 자료가 없습니다."
, init: () => { setDialogZindex(); }
@ -594,42 +641,39 @@
}
// DataTables(그리드)
let cellDefs = getCellDefs($("#theadTr--${pageName} th").not(".dummy-th").not(":eq(0)")
, $($("#${infoPrefix}Row--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)")
, getCellDefsForPrivacyCell);
$P.ctrl.query.cellDefs =
getCellDefs($P.$find("theadTr").find("th").not(".dummy-th").not(":eq(0)")
, $($P.find("dataRows").content).find("td").not(".dummy-td").not(":eq(0)"));
$P.control.query.cellDefs = cellDefs;
$P.control.download();
$P.ctrl.download();
}
// 부과제외 수정 버튼 클릭 이벤트
$P.fnUpdate = (title) => {
$P.fnUpdate = () => {
// 부과제외 ID
let levyExclId = $P.control.dataset.getValue("LEVY_EXCL_ID");
let levyExclId = $P.ctrl.getValue("LEVY_EXCL_ID");
// 부과제외 ID 가 없다면.. return
if (typeof levyExclId == "undefined" || levyExclId == null || levyExclId == "") return;
let params = {
title: title
, callPurpose: "update" // 호출용도: 수정
, sggCd: $P.control.dataset.getValue("SGG_CD") // 시군구 코드
, taskSeCd: $P.control.dataset.getValue("TASK_SE_CD") // 업무 구분 코드
callPurpose: "update" // 호출용도: 수정
, sggCd: $P.ctrl.getValue("SGG_CD") // 시군구 코드
, taskSeCd: $P.ctrl.getValue("TASK_SE_CD") // 업무 구분 코드
, levyExclId: levyExclId // 부과제외 ID
, levyExclSeCd: $P.control.dataset.getValue("LEVY_EXCL_SE_CD") // 부과제외 구분 코드
, levyExclSeCd: $P.ctrl.getValue("LEVY_EXCL_SE_CD") // 부과제외 구분 코드
};
$P.control.getInfo(params);
$P.ctrl.getInfo(params);
}
// 부과제외 삭제 버튼 클릭 이벤트
$P.fnRemove = (title) => {
$P.fnRemove = () => {
// 선택 자료
let selected = $P.control.dataset.getKeys("selected");
let selected = $P.ctrl.dataset.getKeys("selected");
if (selected.length < 1) {
dialog.alert({
content: "선택하신 " + $P.control.prefixName + " 정보가 없습니다."
content: "선택하신 " + $P.ctrl.prefixName + " 정보가 없습니다."
, init: () => { setDialogZindex(); }
, onOK: () => { }
});
@ -638,7 +682,7 @@
// 삭제 메세지 확인
dialog.alert({
content: "선택하신 " + selected.length + "건의 " + $P.control.prefixName + " 정보를 삭제하시겠습니까?"
content: "선택하신 " + selected.length + "건의 " + $P.ctrl.prefixName + " 정보를 삭제하시겠습니까?"
, onOK: () => {
// 삭제 사유 입력
fetch(wctx.url("/resources/html/inputRsnDialog.html"))
@ -646,7 +690,7 @@
.then(function(template) {
dialog.open({
id: "inputDelRsnDialog"
, title: title
, title: "삭제 사유"
, size: "lg"
, content: template
, init: () => { setDialogZindex(); }
@ -665,89 +709,23 @@
// 이벤트 설정
$P.setEvent = () => {
// 기본 버튼 이벤트
$("#btnReset--${pageName}").on("click", () => $P.fnResetAndChangeBiz()); // 초기화
$("#btnSearch--${pageName}").on("click", () => $P.fnSearchList()); // 검색
$("#btnExcel--${pageName}").on("click", () => $P.fnExcel()); // 엑셀
$("#btnFindUser--${pageName}").on("click", () => $P.fnGetFindUser()); // 사용자 검색
$P.$find("btnReset").on("click", () => { $P.fnResetAndChangeBiz() }); // 초기화
$P.$find("btnSearch").on("click", () => { $P.fnSearchList() }); // 검색
$P.$find("btnExcel").on("click", () => { $P.fnExcel() }); // 엑셀
$P.$find("btnFindUser").on("click", () => $P.fnGetFindUser()); // 사용자 검색
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
$("#term--${pageName}").onEnterPress(function() {
$P.fnSearchList();
});
$P.$find("term").onEnterPress($P.fnSearchList);
// form-date 항목에서 키보드로 입력시 날짜 포맷팅 적용
$("#frmSearch--${pageName}").find(".form-date").each(function() {
$(this).on("input", function() {
let value = this.value.replaceAll("-", "");
// 업무 버튼 이벤트
$P.$find("btnUpdate").on("click", () => { $P.fnUpdate(); }); // 수정
$P.$find("btnRemove").on("click", () => { $P.fnRemove(); }); // 삭제
if (value.length > 7) {
this.value = value.substring(0, 4) + "-" + value.substring(4, 6) + "-" + value.substring(6);
} else if (value.length > 5) {
this.value = value.substring(0, 4) + "-" + value.substring(4);
}
});
});
// 버튼 이벤트
$("#btnUpdate--${pageName}").on("click", function() {
$P.fnUpdate($(this).attr("title")); // 부과제외 수정
});
$("#btnRemove--${pageName}").on("click", function() {
$P.fnRemove($(this).attr("title")); // 부과제외 삭제
});
// DataTables width 변경 조정 (업무별 그리드가 존재 한다면.. crdn06010-main.jsp 참고)
fnMakeResizableTable($("#table-responsive--${pageName}")[0]);
// DataTables width 변경 조정
fnMakeResizableTable($P.find("table-responsive"));
// DataTables 스크롤 이벤트 생성
fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollDataList);
}
// 초기 화면 설정
$P.initForm = (taskSeCd) => {
// 화면 초기화
$("#frmSearch--${pageName}")[0].reset();
// input, select 초기화
let searchForm = $("#frmSearch--${pageName}");
searchForm.find("input[type='radio']").not("[name='taskSeCd']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='text']").val("");
searchForm.find("input[type='hidden']").val("");
searchForm.find("select").each(function() { $(this).find("option:eq(0)").prop("selected", true); });
// 최고 관리자 경우 업무구분을 선택할 수 있도록 하자.
$("#frmSearch--${pageName} input[name='taskSeCd']").each(function(i) {
$(this).prop("disabled", "true");
});
// 기본 데이터 설정
$("#sggCd--${pageName}").val("${sggCd}"); // 시군구 코드
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + taskSeCd + "']").prop("checked", true); // 업무 구분 코드
initDatepicker("frmSearch--${pageName}"); // 달력 초기화
$("#schLevyExclYmdFrom--${pageName}").datepicker("setDate", DateUtil.getDateDay(-7).date); // 부과 제외 일자 시작
$("#schLevyExclYmdTo--${pageName}").datepicker("setDate", new Date()); // 부과 제외 일자 종료
$("#byOutput--${pageName}").val("동적 검색"); // 동적 검색
$("#schRgtrNm--${pageName}").prop("readonly", true); // 사용자 이름
}
// 업무 구분별 설정
$P.setTask = (taskSeCd) => {
// 업무구분에 따른 URL 설정
$P.control.urls.load = wctx.url("/" + taskSeCd + "${infoPrefixUrl}" + "/010/list.do"); // 검색
// 업무별 조회조건
renderForTask("frmSearch--${pageName}", taskSeCd.toLowerCase());
// 업무별 그리드 th
let colContent = document.getElementById("${infoPrefix}Col--${pageName}").content;
let cols = $(colContent).find("." + taskSeCd.toLowerCase() + ",.cmn");
let colsOuterHTML = "";
cols.each(function() {
colsOuterHTML += this.outerHTML;
});
$("#table-responsive--${pageName}")[0].changeColumn(colsOuterHTML);
fnMakeScrollableTable($P.find("table-responsive"), $P.scrollDataList);
}
/**************************************************************************

@ -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,14 +225,8 @@
});
}
// 삭제
$P.ctrl.remove = (params) => {
if (!params) return;
ajax.post({
url: $P.ctrl.urls.remove
, data: params || {}
, success: (resp) => {
// 삭제 callback
$P.ctrl.onRemove = (params, resp) => {
let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, $P.ctrl.prefixName);
// 메시지 출력
@ -241,10 +235,23 @@
, init: () => { setDialogZindex(); }
, onOK: () => { }
, onClose: () => {
if (resp.saved) { $P.ctrl.reload({ all: true }); }
if (resp.saved) {
$P.ctrl.reload({ all: true }); // 자료 재조회
}
}
});
}
// 삭제
$P.ctrl.remove = (params) => {
if (!params) return;
ajax.post({
url: $P.ctrl.urls.remove
, data: params || {}
, success: (resp) => {
$P.ctrl.onRemove(params, resp);
}
});
}
@ -257,7 +264,7 @@
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") + "');")
);
@ -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>
@ -103,7 +98,7 @@
/**************************************************************************
* Global Variable
**************************************************************************/
pageObject["${pageName}"] = {};
pageObject["${pageName}"] = newDoctxFinder("${pageName}");
/**************************************************************************
* script 진입
@ -115,16 +110,19 @@
// infoDialog 호출 용도(view 조회(편집불가), create 등록, update 수정)
$P.callPurpose = "${callPurpose}";
// FormFields
$P.formFields = new FimsFormFields("#frmEdit--${pageName}");
$P.formFields = new FimsFormFields($P.selector("frmEdit"));
// 자료 이동을 위한 자료의 Index. 0부터 시작.
$P.curDataIndex;
// 현재 탭의 위치
$P.activeTabIndex = 0;
// 개별총정보를 호출한 Control
$P.callControlName = "${callControlName}";
$P.callControl = ${callControlName};
/**************************************************************************
* DatasetControl
**************************************************************************/
$P.mainControl = new DatasetControl({
$P.mainCtrl = new DatasetControl({
prefix: "totalInfoMain"
, prefixName: "개별총정보"
, keymapper: info => info ? info.CRDN_ID : ""
@ -139,20 +137,18 @@
* DatasetControl 이벤트
**************************************************************************/
// 현재 선택 자료 변경 이벤트
$P.mainControl.onCurrentChange = (item) => {
$P.mainCtrl.onCurrentChange = (item) => {
if (!item) return;
// Dataset 셋팅
$P.formFields.set($P.mainControl, item);
// 화면에 Dataset 셋팅
$P.formFields.set($P.mainCtrl, item);
// 건수 표기
let controlName = "${callControlName}";
if (controlName != "noControlName") {
$P.fnChangeCountStauts();
if ($P.callControlName != "noControlName") {
$P.fnChangeCountStauts(); // 건수 표기
}
// 자료 수정
$P.useDataEdit(item);
$P.fnUseDataEdit(item);
}
/**************************************************************************
@ -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"
};
@ -502,21 +497,22 @@
// 이벤트 설정
$P.setEvent = () => {
// 기본 버튼 이벤트
$("#btnPrev--${pageName}").on("click", () => $P.fnPrev()); // 이전
$("#btnNext--${pageName}").on("click", () => $P.fnNext()); // 다음
$P.$find("btnPrev").on("click", () => { $P.fnPrev() }); // 이전
$P.$find("btnNext").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.$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 = () => {
$P.curDataIndex = null; // 화면이 열릴때 초기 값으로 null로 설정해야 건수가 정상 표시 된다.
// 화면이 열릴때 초기 값으로 null로 설정해야 건수가 정상 표시 된다.
$P.curDataIndex = null;
}
/**************************************************************************
@ -529,7 +525,7 @@
$P.initData();
// 3. Dataset 설정
$P.mainControl.setData([${totalInfo}]);
$P.mainCtrl.setData([${totalInfo}]);
// 4. 단속, 납부자 정보 조회
$P.fnCrdnPayerInfo();

Loading…
Cancel
Save