수납관리 추가.
parent
6fd78cabdc
commit
a003e49ac1
@ -0,0 +1,534 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%>
|
||||
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
|
||||
|
||||
<!-- inner page html -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content -->
|
||||
<div class="container-xxl flex-grow-1 px-0">
|
||||
<c:set var="prefixName" scope="request">민원상담 관리</c:set>
|
||||
|
||||
<!-- Page Body -->
|
||||
<div class="card">
|
||||
<div class="wrapper-list">
|
||||
<div>
|
||||
<!-- 상단 버튼 -->
|
||||
<div class="container-page-btn">
|
||||
<button type="button" class="btn btn-outline-dark" id="btnReset--${pageName}" title="초기화" onclick="fnReset${pageName}();">
|
||||
초기화
|
||||
</button>
|
||||
<span class="container-window-btn-right">
|
||||
<button type="button" class="btn btn-search w-px-120" id="btnSearch--${pageName}" title="검색" onclick="fnSearchList${pageName}();">
|
||||
검색
|
||||
</button>
|
||||
<button type="button" class="btn btn-excel w-px-120" id="btnExcel--${pageName}" title="엑셀 저장" onclick="fnExcel${pageName}();">
|
||||
엑셀
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
<!-- / 상단 버튼 -->
|
||||
|
||||
<!-- 검색 조건 영역 -->
|
||||
<form id="frmSearch--${pageName}" name="frmSearch">
|
||||
<!-- hidden -->
|
||||
<input type="hidden" id="sggCd--${pageName}" name="sggCd" data-map="SGG_CD" />
|
||||
|
||||
<!-- 메인 조건 -->
|
||||
<div class="container-search">
|
||||
<div class="row g-1">
|
||||
<!-- 업무구분 -->
|
||||
<div class="col-12">
|
||||
<label class="form-label fw-bold form-search-title text-end">업무구분</label>
|
||||
<span class="form-search-linebox">
|
||||
<c:forEach items="${FIM054List}" var="item">
|
||||
<label>
|
||||
<input type="radio" class="form-check-input" name="taskSeCd" alt="업무구분"
|
||||
value="${item.code}" onchange="fnResetAndChangeBiz${pageName}(this.value);">
|
||||
${item.value}
|
||||
</label>
|
||||
</c:forEach>
|
||||
</span>
|
||||
</div>
|
||||
<!-- 상담일자 -->
|
||||
<div class="col-6">
|
||||
<label class="form-label fw-bold form-search-title text-end">상담일자</label>
|
||||
<span class="form-search-linebox">
|
||||
<input type="text" class="form-control form-date" id="schDscsnYmdFrom--${pageName}" name="schDscsnYmdFrom"
|
||||
data-fmt-type="day" autocomplete="off" title="시작 날짜 선택" />
|
||||
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
||||
~
|
||||
<input type="text" class="form-control form-date" id="schDscsnYmdTo--${pageName}" name="schDscsnYmdTo"
|
||||
data-fmt-type="day" autocomplete="off" title="종료 날짜 선택" />
|
||||
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
||||
</span>
|
||||
</div>
|
||||
<!-- -->
|
||||
<div class="col-6">
|
||||
</div>
|
||||
<!-- 차량번호 -->
|
||||
<div class="col-6">
|
||||
<label class="form-label fw-bold form-search-title text-end">차량번호</label>
|
||||
<input type="text" class="form-control w-px-160" id="schVhrno--${pageName}" name="schVhrno" autocomplete="off" />
|
||||
</div>
|
||||
<!-- 납부자번호 -->
|
||||
<div class="col-6">
|
||||
<label class="form-label fw-bold form-search-title text-end">납부자번호</label>
|
||||
<input type="text" class="form-control w-px-160" id="schRtpyrNo--${pageName}" name="schRtpyrNo"autocomplete="off" />
|
||||
</div>
|
||||
<!-- 민원인명 -->
|
||||
<div class="col-6">
|
||||
<label class="form-label fw-bold form-search-title text-end">민원인명</label>
|
||||
<input type="text" class="form-control w-px-160" id="schCvlprNm--${pageName}" name="schCvlprNm"autocomplete="off" />
|
||||
</div>
|
||||
<!-- 동적검색 -->
|
||||
<div class="col-6">
|
||||
<input type="hidden" id="by--${pageName}" name="by" />
|
||||
<input type="text" class="form-control" 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-300" id="term--${pageName}" name="term" autocomplete="off" />
|
||||
<!-- 상세 검색조건 버튼 -->
|
||||
<span class="flr">
|
||||
<button type="button" class="btn btn-open-detail" data-bs-toggle="collapse" data-bs-target="#searchDetail--${pageName}">
|
||||
<i class="bx bx-chevron-down"></i>
|
||||
상세검색
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- / 메인 조건 -->
|
||||
<!-- 상세 조건 -->
|
||||
<div id="searchDetail--${pageName}" class="container-search container-search-detail collapse">
|
||||
<div class="row g-1">
|
||||
<!-- 등록일자, 수정일자 -->
|
||||
<div class="col-6">
|
||||
<select class="form-select text-center" id="schDetailRegDtOpt--${pageName}" name="schDetailRegDtOpt">
|
||||
<option value="regDt">등록일자</option>
|
||||
<option value="mdfcnDt">수정일자</option>
|
||||
</select>
|
||||
<span class="form-search-linebox">
|
||||
<input type="text" class="form-control form-date" id="schDetailRegDtFrom--${pageName}" name="schDetailRegDtFrom"
|
||||
data-fmt-type="day" autocomplete="off" title="시작 날짜 선택" />
|
||||
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
||||
~
|
||||
<input type="text" class="form-control form-date" id="schDetailRegDtTo--${pageName}" name="schDetailRegDtTo"
|
||||
data-fmt-type="day" autocomplete="off" title="종료 날짜 선택">
|
||||
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
||||
</span>
|
||||
</div>
|
||||
<!-- 등록자명, 수정자명 -->
|
||||
<div class="col-6">
|
||||
<select class="form-select text-center" id="schDetailRgtrOpt--${pageName}" name="schDetailRgtrOpt">
|
||||
<option value="rgtr">등록자</option>
|
||||
<option value="mdfr">수정자</option>
|
||||
</select>
|
||||
<input type="text" class="form-control w-px-160" id="schDetailRgtrNm--${pageName}" name="schDetailRgtrNm" autocomplete="off" />
|
||||
<button type="button" class="btn btn-sm btn-outline-dark" id="btnUser--${pageName}" title="사용자 검색" onclick="fnUser${pageName}();">
|
||||
검색
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- / 상세 조건 -->
|
||||
</form>
|
||||
<!-- / 검색 조건 영역 -->
|
||||
|
||||
<!-- 업무 버튼 및 건수 표시 -->
|
||||
<div>
|
||||
<span class="container-page-btn">
|
||||
<!-- 건수, 페이지 표시 -->
|
||||
<div class="d-flex flex-row justify-content-between">
|
||||
<label class="dataTables_info" id="paging--${pageName}PagingInfo" role="status" aria-live="polite"></label>
|
||||
<ul class="pagination pagination-primary" id="paging--${pageName}">
|
||||
</ul>
|
||||
</div>
|
||||
<span class="container-window-btn-right">
|
||||
<!-- 업무 버튼 -->
|
||||
<button type="button" class="btn btn-primary w-px-120" id="btnUpdate--${pageName}" title="수정" onclick="fnUpdate${pageName}();">
|
||||
수정
|
||||
</button>
|
||||
<button type="button" class="btn btn-primary w-px-120" id="btnRemove--${pageName}" title="삭제" onclick="fnRemove${pageName}();">
|
||||
삭제
|
||||
</button>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
<!-- / 업무 버튼 및 건수 표시 -->
|
||||
|
||||
<!-- 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" id="table-responsive--${pageName}" style="overflow-x:scroll; height:480px; overflow-y:scroll;" >
|
||||
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--${pageName}" 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}">
|
||||
<th class="cmn" style="width: 72px;">NO.</th>
|
||||
<th class="cmn" style="width: 56px;">
|
||||
<input type="checkbox" class="form-check-input" onchange="${pageName}Control.select(this.checked);">
|
||||
</th>
|
||||
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('CVLCPT_RCPT_SE_CD', this.innerText, 'codeValue', 'FIM065');">민원접수구분</th>
|
||||
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('DSCSN_YMD', this.innerText, 'ymd', '');">상담일자</th>
|
||||
<th class="cmn" style="width: 80px;" onclick="searchFromGridTitle('WEEK_NM', this.innerText, 'match', 'part');">요일</th>
|
||||
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('CVLPR_NM', this.innerText, 'match', 'part');">성명</th>
|
||||
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('CVLPR_CTTPC', this.innerText, 'match', 'part');">연락처</th>
|
||||
<th class="cmn" style="width: 400px;" onclick="searchFromGridTitle('DSCSN_CN', this.innerText, 'match', 'part');">상담내용</th>
|
||||
<th class="cmn" style="width: 140px;" onclick="searchFromGridTitle('VHRNO', this.innerText, 'match', 'part');">차량번호</th>
|
||||
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('RTPYR_NO', this.innerText, 'match', 'part');">납부자번호</th>
|
||||
<th class="cmn" style="width: 180px;">등록일시</th>
|
||||
<th class="cmn" style="width: 140px;">등록사용자</th>
|
||||
<th class="cmn" style="width: 180px;">수정일시</th>
|
||||
<th class="cmn" style="width: 140px;">수정사용자</th>
|
||||
<th class="cmn dummy-th"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody--${pageName}">
|
||||
</tbody>
|
||||
<template id="${infoPrefix}Row--${pageName}">
|
||||
<tr data-key="{CVLCPT_DSCSN_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" value="{CVLCPT_DSCSN_ID}" onchange="${pageName}Control.select('{CVLCPT_DSCSN_ID}', this.checked);">
|
||||
</td>
|
||||
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CVLCPT_RCPT_SE_NM}</td>
|
||||
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DSCSN_YMD}</td>
|
||||
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{WEEK_NM}</td>
|
||||
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CVLPR_NM}</td>
|
||||
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CVLPR_CTTPC}</td>
|
||||
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{DSCSN_CN}</td>
|
||||
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{VHRNO}</td>
|
||||
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_NO}</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 dummy-td"></td>
|
||||
</tr>
|
||||
</template>
|
||||
<template id="${infoPrefix}NotFound--${pageName}">
|
||||
<tr class="odd">
|
||||
<td valign="top" colspan="15" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
||||
</tr>
|
||||
</template>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- / DataTables(그리드) -->
|
||||
</div>
|
||||
</div> <!-- <div class="wrapper-list"> -->
|
||||
</div> <!-- <div class="card"> -->
|
||||
</div> <!-- <div class="container-xxl flex-grow-1 px-0"> -->
|
||||
|
||||
<jsp:include page="/WEB-INF/jsp/include/bottom.jsp" />
|
||||
|
||||
<div class="content-backdrop fade"></div>
|
||||
</div>
|
||||
<!-- / inner page html <div class="content-wrapper"> -->
|
||||
|
||||
<script>
|
||||
/**************************************************************************
|
||||
* Global Variable
|
||||
**************************************************************************/
|
||||
// URL
|
||||
var ${pageName}PrefixUrl = "/sprt/sprt04";
|
||||
// FormFields
|
||||
var ${pageName}Fields = new FormFields("#frmSearch--${pageName}");
|
||||
|
||||
/**************************************************************************
|
||||
* DatasetControl
|
||||
**************************************************************************/
|
||||
var ${pageName}Control = new DatasetControl({
|
||||
prefix : "cvlcptDscsn"
|
||||
, prefixName : "민원상담내용"
|
||||
, infoSize : "lg"
|
||||
, keymapper : info => info ? info.CVLCPT_DSCSN_ID : ""
|
||||
, dataGetter : obj => obj.cvlcptDscsnList
|
||||
, appendData : true
|
||||
, tableRenderComplete : false // dataTables 에 자료 추가 완료 여부
|
||||
, formats : {
|
||||
DSCSN_YMD : dateFormat
|
||||
, REG_DT : datetimeFormat
|
||||
, MDFCN_DT : datetimeFormat
|
||||
}
|
||||
});
|
||||
|
||||
/**************************************************************************
|
||||
* DatasetControl 이벤트
|
||||
**************************************************************************/
|
||||
// Dataset 변경 이벤트
|
||||
${pageName}Control.onDatasetChange = obj => {
|
||||
renderList${pageName}();
|
||||
|
||||
$("#paging--${pageName}").setPagingInfo({
|
||||
list : ${pageName}Control.dataset
|
||||
, prefix : "paging--${pageName}"
|
||||
, start : obj.${infoPrefix}Start
|
||||
, totalSize : obj.${infoPrefix}Total
|
||||
, fetchSize : obj.${infoPrefix}Fetch
|
||||
, func : "${pageName}Control.load({index})"
|
||||
});
|
||||
|
||||
${pageName}Control.tableRenderComplete = true; // dataTables 에 자료 추가 완료
|
||||
};
|
||||
|
||||
// 현재 선택 자료 변경 이벤트
|
||||
${pageName}Control.onCurrentChange = item => {
|
||||
if (!item) return;
|
||||
|
||||
let key = item.data.CVLCPT_DSCSN_ID;
|
||||
|
||||
$("#tbody--${pageName}").setCurrentRow(key);
|
||||
};
|
||||
|
||||
// 선택(체크) 변경 이벤트
|
||||
${pageName}Control.onSelectionChange = selected => {
|
||||
let ${infoPrefix}List = ${pageName}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);
|
||||
};
|
||||
|
||||
// 민원상담 dialog
|
||||
${pageName}Control.getInfo = (cvlcptDscsnId) => {
|
||||
if (typeof cvlcptDscsnId == "undefined" || cvlcptDscsnId == null || cvlcptDscsnId == "") {
|
||||
return;
|
||||
}
|
||||
|
||||
let params = {
|
||||
callPurpose : "update"
|
||||
, sggCd : ${pageName}Control.dataset.getValue("SGG_CD")
|
||||
, taskSeCd : ${pageName}Control.dataset.getValue("TASK_SE_CD")
|
||||
, cvlcptDscsnId : cvlcptDscsnId
|
||||
};
|
||||
|
||||
ajax.get({
|
||||
url : wctx.url(params.taskSeCd + ${pageName}PrefixUrl + "/020/info.do")
|
||||
, data : params || {}
|
||||
, success : resp => {
|
||||
dialog.open({
|
||||
id : ${pageName}Control.prefixed("Dialog")
|
||||
, title : ${pageName}Control.prefixName + " 수정"
|
||||
, content : resp
|
||||
, size : "lg"
|
||||
, init : () => { }
|
||||
, onClose : () => { ${pageName}Control.load(${pageName}Control.query.pageNum); } // callback 자료 재조회
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// 삭제 callback
|
||||
${pageName}Control.onRemove = (selected, resp) => {
|
||||
let btnTitle = $("#btnRemove--${pageName}").attr("title");
|
||||
|
||||
let showMessage = resp.retMessage.replace(/[S]|[F]/g, btnTitle);
|
||||
|
||||
dialog.alert(showMessage);
|
||||
|
||||
if (resp.saved) {
|
||||
${pageName}Control._load();
|
||||
}
|
||||
}
|
||||
|
||||
// 삭제
|
||||
${pageName}Control.remove = (params) => {
|
||||
let selected = ${pageName}Control.dataset.getKeys("selected");
|
||||
|
||||
if (selected.length < 1) return;
|
||||
|
||||
if (!params) {
|
||||
params = {};
|
||||
params[${pageName}Control.prefixed("IDs")] = selected.join(",");
|
||||
}
|
||||
|
||||
ajax.post({
|
||||
url : ${pageName}Control.urls.remove
|
||||
, data : params
|
||||
, success : resp => ${pageName}Control.onRemove(selected, resp)
|
||||
});
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
*
|
||||
**************************************************************************/
|
||||
// DataTables에 click, dbclick 이벤트
|
||||
renderList${pageName} = () => {
|
||||
let ${infoPrefix}List = ${pageName}Control.dataset;
|
||||
let empty = ${infoPrefix}List.empty;
|
||||
|
||||
let trs = empty ?
|
||||
[document.getElementById("${infoPrefix}NotFound--${pageName}").innerHTML] : <%-- from template#${infoPrefix}NotFound --%>
|
||||
${infoPrefix}List.inStrings(
|
||||
document.getElementById("${infoPrefix}Row--${pageName}").innerHTML, <%-- from template#${infoPrefix}Row --%>
|
||||
(str, dataItem) => str
|
||||
.replace(/{onclick}/gi, "${pageName}Control.setCurrent('" + dataItem.getValue("CVLCPT_DSCSN_ID") + "');")
|
||||
.replace(/{ondblclick}/gi, "${pageName}Control.getInfo('" + dataItem.getValue("CVLCPT_DSCSN_ID") + "');")
|
||||
);
|
||||
|
||||
$("#tbody--${pageName}").html(trs.join());
|
||||
$("th input[type='checkbox']").prop("checked", false);
|
||||
|
||||
//보안모드
|
||||
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
* 초기 셋팅
|
||||
**************************************************************************/
|
||||
// 이벤트
|
||||
setEvent${pageName} = () => {
|
||||
// form-date 항목에서 키보드로 입력시 날짜 포맷팅 적용
|
||||
$("#frmSearch--${pageName}").find(".form-date").each(function() {
|
||||
$(this).on("input", function() {
|
||||
let value = this.value.replaceAll("-", "");
|
||||
|
||||
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);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// DataTables 스크롤 이벤트
|
||||
$("#table-responsive--${pageName}").scroll(function() {
|
||||
let el = $(this);
|
||||
|
||||
if (el.scrollTop() == 0) {
|
||||
return;
|
||||
}
|
||||
if (!${pageName}Control.tableRenderComplete) {
|
||||
return;
|
||||
}
|
||||
|
||||
let itemsCnt = ${pageName}Control.dataset._items.length;
|
||||
let totCnt = ${pageName}Control.dataset.getValue("TOT_CNT");
|
||||
|
||||
if (itemsCnt >= totCnt) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) <= el.outerHeight()) {
|
||||
${pageName}Control.tableRenderComplete = false; // dataTables 에 자료 추가 완료
|
||||
|
||||
${pageName}Control.load(${pageName}Control.query.pageNum + 1);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// 화면 초기값 셋팅
|
||||
setForm${pageName} = (taskSeCd) => {
|
||||
// 업무 구분 코드
|
||||
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + taskSeCd + "']").prop("checked", true);
|
||||
|
||||
// 최고 관리자 경우 업무구분을 선택할 수 있도록 하자.
|
||||
$("#frmSearch--${pageName} input[name='taskSeCd']").each(function(i) {
|
||||
$(this).prop("disabled", "true");
|
||||
});
|
||||
|
||||
// 달력 초기화
|
||||
initDatepicker("frmSearch--${pageName}");
|
||||
|
||||
$("#schDscsnYmdFrom--${pageName}").datepicker("setDate", DateUtil.getDateDay(-1).date);
|
||||
$("#schDscsnYmdTo--${pageName}").datepicker("setDate", new Date());
|
||||
|
||||
// DataTables width 변경 조정
|
||||
$("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} );
|
||||
}
|
||||
|
||||
// URL 설정
|
||||
setURL${pageName} = (taskSeCd) => {
|
||||
${pageName}Control.urls.load = wctx.url("/" + taskSeCd + ${pageName}PrefixUrl + "/010/list.do"); // 조회
|
||||
${pageName}Control.urls.remove = wctx.url("/" + taskSeCd + ${pageName}PrefixUrl + "/010/removes.do"); // 삭제
|
||||
${pageName}Control.urls.getInfo = wctx.url("/" + taskSeCd + "/sprt/sprt02/010/main.do"); // 개별총정보
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
* 버튼 clickEvent
|
||||
**************************************************************************/
|
||||
// 초기화 버튼 이벤트
|
||||
fnReset${pageName} = () => {
|
||||
fnResetAndChangeBiz${pageName}();
|
||||
}
|
||||
|
||||
// 검색 버튼 이벤트
|
||||
fnSearchList${pageName} = () => {
|
||||
// 검색조건
|
||||
${pageName}Control.query = ${pageName}Fields.get();
|
||||
|
||||
${pageName}Control.query.fetchSize = FETCH_XS; // 한번에 조회되는 자료 건수 FETCH_XS = 30
|
||||
${pageName}Control.query.delYn = "N"; // 삭제 여부
|
||||
|
||||
${pageName}Control.load();
|
||||
}
|
||||
|
||||
// 엑셀 버튼 이벤트
|
||||
fnExcel${pageName} = () => {
|
||||
|
||||
}
|
||||
|
||||
// 업무 구분 변경
|
||||
fnResetAndChangeBiz${pageName} = (taskSeCd) => {
|
||||
// 화면 초기화
|
||||
$("#frmSearch--${pageName}")[0].reset();
|
||||
// dataset 초기화
|
||||
${pageName}Control.dataset.clear();
|
||||
|
||||
// 업무 구분 코드
|
||||
if (typeof taskSeCd == "undefined" || taskSeCd == null || taskSeCd == "") {
|
||||
taskSeCd = $("#layout-navbar input[name='taskSeCd']:checked").val();
|
||||
}
|
||||
|
||||
// 화면 초기값 설정
|
||||
setForm${pageName}(taskSeCd);
|
||||
// URL 설정
|
||||
setURL${pageName}(taskSeCd);
|
||||
}
|
||||
|
||||
// 사용자 조회 버튼 이벤트
|
||||
fnUser${pageName} = () => {
|
||||
|
||||
}
|
||||
|
||||
// 수정 버튼 이벤트
|
||||
fnUpdate${pageName} = () => {
|
||||
${pageName}Control.getInfo(${pageName}Control.dataset.getValue("CVLCPT_DSCSN_ID"));
|
||||
}
|
||||
|
||||
// 삭제 버튼 이벤트
|
||||
fnRemove${pageName} = () => {
|
||||
dialog.alert({
|
||||
content : "선택한 부과제외 정보를 삭제하시겠습니까?"
|
||||
, onOK : () => {
|
||||
${pageName}Control.remove();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
* script 진입
|
||||
**************************************************************************/
|
||||
$(document).ready(function() {
|
||||
// 보안모드
|
||||
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
||||
|
||||
// 이벤트 설정
|
||||
setEvent${pageName}();
|
||||
|
||||
// 시군구 코드 설정
|
||||
$("#sggCd--${pageName}").val("${sggCd}");
|
||||
// 업무 구분 설정
|
||||
let defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
|
||||
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked", true);
|
||||
|
||||
// 업무 구분 및 화면 초기 설정
|
||||
fnResetAndChangeBiz${pageName}(defaultBizValue);
|
||||
});
|
||||
|
||||
</script>
|
@ -0,0 +1,172 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%>
|
||||
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
|
||||
|
||||
<!-- inner page html -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content -->
|
||||
<div class="container-xxl flex-grow-1 px-0">
|
||||
<c:set var="prefixName" scope="request">민원 상담 내용 정보</c:set>
|
||||
|
||||
<!-- Page Body -->
|
||||
<div class="card">
|
||||
<!-- 입력 영역 -->
|
||||
<form id="frmEdit--${pageName}" 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="cvlcptDscsnId--${pageName}" name="cvlcptDscsnId" data-map="CVLCPT_DSCSN_ID" />
|
||||
<input type="hidden" id="vhrno--${pageName}" name="vhrno" data-map="VHRNO" />
|
||||
<input type="hidden" id="rtpyrNo--${pageName}" name="rtpyrNo" data-map="RTPYR_NO" />
|
||||
|
||||
<div class="row g-1">
|
||||
<!-- 민원 접수 구분 코드 -->
|
||||
<div class="col-md-12">
|
||||
<label for="cvlcptRcptSeCd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required">접수구분</label>
|
||||
<select class="form-select" id="cvlcptRcptSeCd--${pageName}" name="cvlcptRcptSeCd" data-map="CVLCPT_RCPT_SE_CD" required>
|
||||
<option value="">선택하세요</option>
|
||||
<c:forEach items="${FIM065List}" var="item">
|
||||
<option value="${item.code}">${item.value}</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</div>
|
||||
<!-- 민원인명 -->
|
||||
<div class="col-md-6">
|
||||
<label for="cvlprNm--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">민원인명</label>
|
||||
<input type="text" class="form-control w-px-160" id="cvlprNm--${pageName}" name="cvlprNm" data-map="CVLPR_NM" autocomplete="off" />
|
||||
</div>
|
||||
<!-- 민원인 연락처 -->
|
||||
<div class="col-md-6">
|
||||
<label for="cvlprCttpc--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">연락처</label>
|
||||
<input type="text" class="form-control w-px-160" id="cvlprCttpc--${pageName}" name="cvlprCttpc" data-map="CVLPR_CTTPC" autocomplete="off" />
|
||||
</div>
|
||||
<!-- 상담 내용 -->
|
||||
<div class="col-md-12">
|
||||
<label for="dscsnCn--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">상담 내용</label>
|
||||
<textarea type="text" class="form-control w-80" id="dscsnCn--${pageName}" name="dscsnCn" data-map="DSCSN_CN" rows="5" data-maxlengthb="4000"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</form> <!-- /입력 영역 -->
|
||||
</div> <!-- <div class="card"> -->
|
||||
|
||||
<!-- 업무 버튼 표시 -->
|
||||
<div>
|
||||
<span class="container-page-btn">
|
||||
<span class="container-window-btn-right">
|
||||
<!-- 업무 버튼 -->
|
||||
<button type="button" class="btn btn-primary w-px-80" id="btnSave--${pageName}" title="저장" onclick="fnSave${pageName}()">저장</button>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
<!-- / 업무 버튼 표시 -->
|
||||
|
||||
</div> <!-- / Content <div class="container-xxl flex-grow-1 px-0"> -->
|
||||
</div> <!-- / inner page html <div class="content-wrapper"> -->
|
||||
|
||||
<script>
|
||||
/**************************************************************************
|
||||
* Global Variable
|
||||
**************************************************************************/
|
||||
// URL
|
||||
var ${pageName}PrefixUrl = "/sprt/sprt04";
|
||||
// FormFields
|
||||
var ${pageName}Fields = new FormFields("#frmEdit--${pageName}");
|
||||
|
||||
/**************************************************************************
|
||||
* DatasetControl
|
||||
**************************************************************************/
|
||||
var ${pageName}Control = new DatasetControl({
|
||||
prefix : "cvlcptDscsn"
|
||||
, prefixName : "민원상담"
|
||||
, keymapper : info => info ? info.CVLCPT_DSCSN_ID : ""
|
||||
, dataGetter : obj => obj.cvlcptDscsn
|
||||
});
|
||||
|
||||
${pageName}Control.onCurrentChange = item => {
|
||||
// Dataset 셋팅
|
||||
${pageName}Fields.set(item);
|
||||
|
||||
// 민원상담을 등록시 접수구분을 선택할 수 있게 한다.
|
||||
if (item.data.CVLCPT_DSCSN_ID == null || item.data.CVLCPT_DSCSN_ID == "") {
|
||||
$("#cvlcptRcptSeCd--${pageName}").prop("disabled", false);
|
||||
} else {
|
||||
$("#cvlcptRcptSeCd--${pageName}").prop("disabled", true);
|
||||
}
|
||||
|
||||
// 업무구분에 따른 url 변경
|
||||
${pageName}Control.urls.create = wctx.url(item.data.TASK_SE_CD + ${pageName}PrefixUrl + "/020/create.do");
|
||||
${pageName}Control.urls.update = wctx.url(item.data.TASK_SE_CD + ${pageName}PrefixUrl + "/020/update.do");
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
*
|
||||
**************************************************************************/
|
||||
// 저장 callback
|
||||
${pageName}Control.onSave = (resp) => {
|
||||
let dialogTitle = $("#" + ${pageName}Control.prefix + "Dialog").find("h5.modal-title").html();
|
||||
let showMessage = resp.retMessage.replace(/[S]|[F]/g, dialogTitle);
|
||||
|
||||
dialog.alert(showMessage);
|
||||
|
||||
if (resp.saved) {
|
||||
dialog.close(${pageName}Control.prefix + "Dialog");
|
||||
}
|
||||
}
|
||||
|
||||
// 저장
|
||||
${pageName}Control.save = (info) => {
|
||||
if (!info) return;
|
||||
|
||||
let create = isEmpty(info.cvlcptDscsnId);
|
||||
|
||||
ajax.post({
|
||||
url : !create ? ${pageName}Control.urls.update : ${pageName}Control.urls.create
|
||||
, data : info
|
||||
, success : resp => ${pageName}Control.onSave(resp)
|
||||
});
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
* 초기 셋팅
|
||||
**************************************************************************/
|
||||
// 검색조건 초기값 셋팅
|
||||
initForm${pageName} = () => {
|
||||
|
||||
}
|
||||
|
||||
// 이벤트 설정
|
||||
setEvent${pageName} = () => {
|
||||
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
* function
|
||||
**************************************************************************/
|
||||
// 저장
|
||||
fnSave${pageName} = () => {
|
||||
// validate 확인
|
||||
if (!customValidate($("#frmEdit--${pageName}").find("input, select, textarea"))) return;
|
||||
|
||||
dialog.alert({
|
||||
content : "현재 " + ${pageName}Control.prefixName + " 정보를 저장하시겠습니까?"
|
||||
, onOK : () => {
|
||||
${pageName}Control.save(${pageName}Fields.get());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
* script 진입
|
||||
**************************************************************************/
|
||||
$(document).ready(function() {
|
||||
// 이벤트 설정
|
||||
setEvent${pageName}();
|
||||
|
||||
// 화면 초기 설정
|
||||
initForm${pageName}();
|
||||
|
||||
// Data 셋팅
|
||||
${pageName}Control.setData([${cvlcptDscsn}]);
|
||||
});
|
||||
|
||||
</script>
|
@ -0,0 +1,540 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%>
|
||||
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
|
||||
|
||||
<!-- inner page html -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content -->
|
||||
<div class="container-xxl flex-grow-1 px-0">
|
||||
<c:set var="prefixName" scope="request">사전 감경부과 대상</c:set>
|
||||
|
||||
<!-- Page Body -->
|
||||
<div class="card">
|
||||
<div class="wrapper-list">
|
||||
<div>
|
||||
<!-- 상단 버튼 -->
|
||||
<div class="container-page-btn">
|
||||
<button type="button" class="btn btn-outline-dark" id="btnReset--${pageName}" title="초기화" onclick="fnReset${pageName}();">
|
||||
초기화
|
||||
</button>
|
||||
<span class="container-window-btn-right">
|
||||
<button type="button" class="btn btn-search w-px-120" id="btnSearch--${pageName}" title="검색" onclick="fnSearchList${pageName}();">
|
||||
검색
|
||||
</button>
|
||||
<button type="button" class="btn btn-excel w-px-120" id="btnExcel--${pageName}" title="엑셀 저장" onclick="fnExcel${pageName}();">
|
||||
엑셀
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
<!-- / 상단 버튼 -->
|
||||
|
||||
<!-- 검색 조건 영역 -->
|
||||
<form id="frmSearch--${pageName}" name="frmSearch">
|
||||
<!-- hidden -->
|
||||
<input type="hidden" id="sggCd--${pageName}" name="sggCd" data-map="SGG_CD" />
|
||||
|
||||
<!-- 메인 조건 -->
|
||||
<div class="container-search">
|
||||
<div class="row g-1">
|
||||
<!-- 업무구분 -->
|
||||
<div class="col-12">
|
||||
<label class="form-label fw-bold form-search-title text-end">업무구분</label>
|
||||
<span class="form-search-linebox">
|
||||
<c:forEach items="${FIM054List}" var="item">
|
||||
<label>
|
||||
<input type="radio" class="form-check-input" name="taskSeCd" alt="업무구분"
|
||||
value="${item.code}" onchange="fnResetAndChangeBiz${pageName}(this.value);">
|
||||
${item.value}
|
||||
</label>
|
||||
</c:forEach>
|
||||
</span>
|
||||
</div>
|
||||
<!-- 단속일자 -->
|
||||
<div class="col-6">
|
||||
<label class="form-label fw-bold form-search-title text-end">단속일자</label>
|
||||
<span class="form-search-linebox">
|
||||
<input type="text" class="form-control form-date" id="schCrdnYmdFrom--${pageName}" name="schCrdnYmdFrom"
|
||||
data-fmt-type="day" title="시작 날짜 선택" />
|
||||
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
||||
~
|
||||
<input type="text" class="form-control form-date" id="schCrdnYmdTo--${pageName}" name="schCrdnYmdTo"
|
||||
data-fmt-type="day" title="종료 날짜 선택" />
|
||||
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
||||
</span>
|
||||
</div>
|
||||
<!-- 차량번호 -->
|
||||
<div class="col-6">
|
||||
<label class="form-label fw-bold form-search-title text-end">차량번호</label>
|
||||
<input type="text" class="form-control w-px-150" id="schVhrno--${pageName}" name="schVhrno" />
|
||||
</div>
|
||||
<!-- 납부자명 -->
|
||||
<div class="col-6">
|
||||
<label class="form-label fw-bold form-search-title text-end">납부자명</label>
|
||||
<input type="text" class="form-control w-px-150" id="schRtpyrNm--${pageName}" name="schRtpyrNm" />
|
||||
</div>
|
||||
<!-- 동적검색 -->
|
||||
<div class="col-6">
|
||||
<input type="hidden" id="by--${pageName}" name="by" />
|
||||
<input type="text" class="form-control" 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-300" id="term--${pageName}" name="term" />
|
||||
<!-- 상세 검색조건 버튼 -->
|
||||
<span class="flr">
|
||||
<button type="button" class="btn btn-open-detail" data-bs-toggle="collapse" data-bs-target="#searchDetail--${pageName}">
|
||||
<i class="bx bx-chevron-down"></i>
|
||||
상세검색
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- / 메인 조건 -->
|
||||
<!-- 상세 조건 -->
|
||||
<div id="searchDetail--${pageName}" class="container-search container-search-detail collapse">
|
||||
<div class="row g-1">
|
||||
<!-- 단속 등록일자, 단속 수정일자 -->
|
||||
<div class="col-6">
|
||||
<select class="form-select text-center" id="schDetailCrdnRegDtOpt--${pageName}" name="schDetailCrdnRegDtOpt">
|
||||
<option value="regDt">단속 등록일자</option>
|
||||
<option value="mdfcnDt">단속 수정일자</option>
|
||||
</select>
|
||||
<span class="form-search-linebox">
|
||||
<input type="text" class="form-control form-date" id="schDetailCrdnRegDtFrom--${pageName}" name="schDetailCrdnRegDtFrom"
|
||||
data-fmt-type="day" title="시작 날짜 선택" />
|
||||
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
||||
~
|
||||
<input type="text" class="form-control form-date" id="schDetailCrdnRegDtTo--${pageName}" name="schDetailCrdnRegDtTo"
|
||||
data-fmt-type="day" title="종료 날짜 선택">
|
||||
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
||||
</span>
|
||||
</div>
|
||||
<!-- 단속 등록자명, 단속 수정자명 -->
|
||||
<div class="col-6">
|
||||
<select class="form-select text-center" id="schDetailCrdnRgtrOpt--${pageName}" name="schDetailCrdnRgtrOpt">
|
||||
<option value="rgtr">단속 등록자</option>
|
||||
<option value="mdfr">단속 수정자</option>
|
||||
</select>
|
||||
<input type="text" class="form-control" id="schDetailCrdnRgtrNm--${pageName}" name="schDetailCrdnRgtrNm" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- / 상세 조건 -->
|
||||
</form>
|
||||
<!-- / 검색 조건 영역 -->
|
||||
|
||||
<!-- 업무 버튼 및 건수 표시 -->
|
||||
<div>
|
||||
<span class="container-page-btn">
|
||||
<!-- 건수, 페이지 표시 -->
|
||||
<div class="d-flex flex-row justify-content-between">
|
||||
<label class="dataTables_info" id="paging--${pageName}PagingInfo" role="status" aria-live="polite"></label>
|
||||
<ul class="pagination pagination-primary" id="paging--${pageName}">
|
||||
</ul>
|
||||
</div>
|
||||
<span class="container-window-btn-right">
|
||||
<!-- 업무 버튼 -->
|
||||
<button type="button" class="btn btn-search w-px-120" id="btnCreateRductLevy--${pageName}" title="검색" onclick="fnCreateRductLevy${pageName}();">
|
||||
감경부과 등록
|
||||
</button>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
<!-- / 업무 버튼 및 건수 표시 -->
|
||||
|
||||
<!-- 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" id="table-responsive--${pageName}" style="overflow-x:scroll; height:480px; overflow-y:scroll;" >
|
||||
<table class="table-layout-fixed dataTable datatables-ajax table table-bordered no-footer" id="dataTables_Table_0--${pageName}" 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}">
|
||||
<th class="cmn" style="width: 72px;">NO.</th>
|
||||
<th class="cmn" style="width: 56px;">
|
||||
<input type="checkbox" class="form-check-input" onchange="${pageName}Control.select(this.checked);">
|
||||
</th>
|
||||
<th class="cmn" style="width: 180px;" onclick="searchFromGridTitle('CRDN_YMD', this.innerText, 'ymd', '');">단속일시</th>
|
||||
<th class="cmn" style="width: 140px;" onclick="searchFromGridTitle('VHRNO', this.innerText, 'match', 'part');">차량번호</th>
|
||||
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('CRDN_STDG_NM', this.innerText, 'match', 'part');">법정동</th>
|
||||
<th class="cmn" style="width: 280px;" onclick="searchFromGridTitle('CRDN_PLC', this.innerText, 'match', 'part');">단속장소</th>
|
||||
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('VLTN_ARTCL', this.innerText, 'match', 'part');">위반항목</th>
|
||||
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('FFNLG_CRDN_AMT', this.innerText, 'match', 'part');">단속금액</th>
|
||||
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('FFNLG_AMT', this.innerText, 'match', 'part');">과태료금액</th>
|
||||
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('ADVNTCE_AMT', this.innerText, 'match', 'part');">사전통지금액</th>
|
||||
<th class="cmn" style="width: 160px;" onclick="searchFromGridTitle('CRDN_STTS_CD', this.innerText, 'codeValue', 'FIM010');">처리상태</th>
|
||||
<th class="cmn" style="width: 180px;" onclick="searchFromGridTitle('CVLCPT_APLY_NO', this.innerText, 'match', 'part');">민원신청번호</th>
|
||||
<th class="cmn" style="width: 180px;" onclick="searchFromGridTitle('CVLCPT_RCPT_NO', this.innerText, 'match', 'part');">민원접수번호</th>
|
||||
<th class="cmn" style="width: 140px;" onclick="searchFromGridTitle('CVLCPT_RCPT_YMD', this.innerText, 'ymd', '');">민원접수일자</th>
|
||||
<th class="cmn" style="width: 140px;" onclick="searchFromGridTitle('CVLCPT_TRSM_CD', this.innerText, 'codeValue', 'FIM018');">민원전송결과</th>
|
||||
<th class="cmn" style="width: 200px;" onclick="searchFromGridTitle('RTPYR_NM', this.innerText, 'match', 'part');">납부자명</th>
|
||||
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('RTPYR_BRDT', this.innerText, 'match', 'part');">납부자생일</th>
|
||||
<th class="cmn" style="width: 100px;" onclick="searchFromGridTitle('ZIP', this.innerText, 'match', 'part');">우편번호</th>
|
||||
<th class="cmn" style="width: 280px;" onclick="searchFromGridTitle('ADDR', this.innerText, 'match', 'part');">주소</th>
|
||||
<th class="cmn" style="width: 320px;" onclick="searchFromGridTitle('DTL_ADDR', this.innerText, 'match', 'part');">상세주소</th>
|
||||
<th class="cmn" style="width: 180px;">등록일시</th>
|
||||
<th class="cmn" style="width: 140px;">등록사용자</th>
|
||||
<th class="cmn" style="width: 180px;">수정일시</th>
|
||||
<th class="cmn" style="width: 140px;">수정사용자</th>
|
||||
<th class="cmn dummy-th"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody--${pageName}">
|
||||
</tbody>
|
||||
<template id="${infoPrefix}Row--${pageName}">
|
||||
<tr data-key="{CRDN_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" value="{CRDN_ID}" onchange="${pageName}Control.select('{CRDN_ID}', this.checked);">
|
||||
</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-start" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_STDG_NM}</td>
|
||||
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_PLC}</td>
|
||||
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{VLTN_ARTCL}</td>
|
||||
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{FFNLG_CRDN_AMT}</td>
|
||||
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{FFNLG_AMT}</td>
|
||||
<td class="cmn text-end" onclick="{onclick}" ondblclick="{ondblclick}">{ADVNTCE_AMT}</td>
|
||||
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_STTS_NM}</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}">{CVLCPT_TRSM_NM}</td>
|
||||
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_NM}</td>
|
||||
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_BRDT}</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 dummy-td"></td>
|
||||
</tr>
|
||||
</template>
|
||||
<template id="${infoPrefix}NotFound--${pageName}">
|
||||
<tr class="odd">
|
||||
<td valign="top" colspan="25" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
|
||||
</tr>
|
||||
</template>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- / DataTables(그리드) -->
|
||||
</div>
|
||||
</div> <!-- <div class="wrapper-list"> -->
|
||||
</div> <!-- <div class="card"> -->
|
||||
</div> <!-- <div class="container-xxl flex-grow-1 px-0"> -->
|
||||
|
||||
<jsp:include page="/WEB-INF/jsp/include/bottom.jsp" />
|
||||
|
||||
<div class="content-backdrop fade"></div>
|
||||
</div>
|
||||
<!-- / inner page html <div class="content-wrapper"> -->
|
||||
|
||||
<script>
|
||||
/**************************************************************************
|
||||
* Global Variable
|
||||
**************************************************************************/
|
||||
// URL
|
||||
var ${pageName}PrefixUrl = "/levy/levy01";
|
||||
// FormFields
|
||||
var ${pageName}Fields = new FormFields("#frmSearch--${pageName}");
|
||||
|
||||
/**************************************************************************
|
||||
* DatasetControl
|
||||
**************************************************************************/
|
||||
var ${pageName}Control = new DatasetControl({
|
||||
prefix : "rductLevyTrgt"
|
||||
, prefixName : "감경부과대상"
|
||||
, infoSize : "lg"
|
||||
, keymapper : info => info ? info.CRDN_ID : ""
|
||||
, dataGetter : obj => obj.rductLevyTrgtList
|
||||
, appendData : true
|
||||
, tableRenderComplete : false // dataTables 에 자료 추가 완료 여부
|
||||
, formats : {
|
||||
CRDN_YMD_TM : datetimeFormat
|
||||
, CVLCPT_RCPT_YMD : dateFormat
|
||||
, FFNLG_CRDN_AMT : numberFormat
|
||||
, FFNLG_AMT : numberFormat
|
||||
, ADVNTCE_AMT : numberFormat
|
||||
, REG_DT : datetimeFormat
|
||||
, MDFCN_DT : datetimeFormat
|
||||
}
|
||||
});
|
||||
|
||||
/**************************************************************************
|
||||
* DatasetControl 이벤트
|
||||
**************************************************************************/
|
||||
// Dataset 변경 이벤트
|
||||
${pageName}Control.onDatasetChange = obj => {
|
||||
renderList${pageName}();
|
||||
|
||||
$("#paging--${pageName}").setPagingInfo({
|
||||
list : ${pageName}Control.dataset
|
||||
, prefix : "paging--${pageName}"
|
||||
, start : obj.${infoPrefix}Start
|
||||
, totalSize : obj.${infoPrefix}Total
|
||||
, fetchSize : obj.${infoPrefix}Fetch
|
||||
, func : "${pageName}Control.load({index})"
|
||||
});
|
||||
|
||||
${pageName}Control.tableRenderComplete = true; // dataTables 에 자료 추가 완료
|
||||
};
|
||||
|
||||
// 현재 선택 자료 변경 이벤트
|
||||
${pageName}Control.onCurrentChange = item => {
|
||||
if (!item) return;
|
||||
|
||||
let key = item.data.CRDN_ID;
|
||||
|
||||
$("#tbody--${pageName}").setCurrentRow(key);
|
||||
};
|
||||
|
||||
// 선택(체크) 변경 이벤트
|
||||
${pageName}Control.onSelectionChange = selected => {
|
||||
let ${infoPrefix}List = ${pageName}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()));
|
||||
});
|
||||
};
|
||||
|
||||
// 개별총정보 dialog
|
||||
${pageName}Control.getInfo = (crdnId) => {
|
||||
if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") {
|
||||
return;
|
||||
}
|
||||
|
||||
let params = {
|
||||
callControlName : "${pageName}Control"
|
||||
, crdnId : crdnId
|
||||
}
|
||||
|
||||
ajax.get({
|
||||
url : ${pageName}Control.urls.getInfo
|
||||
, data : params || {}
|
||||
, success : resp => {
|
||||
dialog.open({
|
||||
id : "totalInfoMainDialog"
|
||||
, title : "개별총정보"
|
||||
, content : resp
|
||||
, size : "xxl"
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
*
|
||||
**************************************************************************/
|
||||
// DataTables에 click, dbclick 이벤트
|
||||
renderList${pageName} = () => {
|
||||
let ${infoPrefix}List = ${pageName}Control.dataset;
|
||||
let empty = ${infoPrefix}List.empty;
|
||||
|
||||
let trs = empty ?
|
||||
[document.getElementById("${infoPrefix}NotFound--${pageName}").innerHTML] : <%-- from template#${infoPrefix}NotFound --%>
|
||||
${infoPrefix}List.inStrings(
|
||||
document.getElementById("${infoPrefix}Row--${pageName}").innerHTML, <%-- from template#${infoPrefix}Row --%>
|
||||
(str, dataItem) => str
|
||||
.replace(/{onclick}/gi, "${pageName}Control.setCurrent('" + dataItem.getValue("CRDN_ID") + "');")
|
||||
.replace(/{ondblclick}/gi, "${pageName}Control.getInfo('" + dataItem.getValue("CRDN_ID") + "');")
|
||||
);
|
||||
|
||||
$("#tbody--${pageName}").html(trs.join());
|
||||
$("th input[type='checkbox']").prop("checked", false);
|
||||
|
||||
//보안모드
|
||||
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
||||
}
|
||||
|
||||
createRductLevy${pageName} = (obj) => {
|
||||
let btnTitle = $("#btnCreateSndngLink--${pageName}").attr("title");
|
||||
|
||||
// 선택된 자료의 발송 상세 ID 추가
|
||||
let selected = ${pageName}Control.dataset.getKeys("selected");
|
||||
|
||||
if (selected.length < 1) return;
|
||||
|
||||
let info = {
|
||||
crdnIDs = selected.join(","); // 단속 IDs
|
||||
, sggCd : $("#sggCd--${pageName}").val() // 시군구 코드
|
||||
, taskSeCd : $("#taskSeCd--${pageName}").val() // 업무 구분 코드
|
||||
, sndngYmd : obj.sndngYmd // 부과 일자
|
||||
, dudtYmd : obj.dudtYmd // 납기 일자
|
||||
};
|
||||
|
||||
// ajax.post({
|
||||
// url : wctx.url("/" + info.taskSeCd + ${pageName}PrefixUrl + "/080/createSndngLink.do")
|
||||
// , data : info || {}
|
||||
// , success : resp => {
|
||||
// let showMessage = resp.retMessage.replace(/[S]|[F]/g, btnTitle);
|
||||
// dialog.alert(showMessage);
|
||||
// }
|
||||
// });
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
* 초기 설정
|
||||
**************************************************************************/
|
||||
// 이벤트
|
||||
setEvent${pageName} = () => {
|
||||
// form-date 항목에서 키보드로 입력시 날짜 포맷팅 적용
|
||||
$("#frmSearch--${pageName}").find(".form-date").each(function() {
|
||||
$(this).on("input", function() {
|
||||
let value = this.value.replaceAll("-", "");
|
||||
|
||||
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);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// DataTables 스크롤 이벤트
|
||||
$("#table-responsive--${pageName}").scroll(function() {
|
||||
let el = $(this);
|
||||
|
||||
if (el.scrollTop() == 0) {
|
||||
return;
|
||||
}
|
||||
if (!${pageName}Control.tableRenderComplete) {
|
||||
return;
|
||||
}
|
||||
|
||||
let itemsCnt = ${pageName}Control.dataset._items.length;
|
||||
let totCnt = ${pageName}Control.dataset.getValue("TOT_CNT"); // let totCnt = ${pageName}Control.dataset.getCurrent("item").data.TOT_CNT;
|
||||
|
||||
if (itemsCnt >= totCnt) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ((el[0].scrollHeight - el.scrollTop() + VERTICAL_SCROLL_HEIGHT) <= el.outerHeight()) {
|
||||
${pageName}Control.tableRenderComplete = false; // dataTables 에 자료 추가 완료
|
||||
|
||||
${pageName}Control.load(${pageName}Control.query.pageNum + 1);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// 화면 초기값 설정
|
||||
setForm${pageName} = (taskSeCd) => {
|
||||
// 업무 구분 코드
|
||||
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + taskSeCd + "']").prop("checked", true);
|
||||
|
||||
// 최고 관리자 경우 업무구분을 선택할 수 있도록 하자.
|
||||
$("#frmSearch--${pageName} input[name='taskSeCd']").each(function(i) {
|
||||
$(this).prop("disabled", "true");
|
||||
});
|
||||
|
||||
// 달력 초기화
|
||||
initDatepicker("frmSearch--${pageName}");
|
||||
|
||||
$("#schCrdnYmdFrom--${pageName}").datepicker("setDate", DateUtil.getDateDay(-90).date);
|
||||
$("#schCrdnYmdTo--${pageName}").datepicker("setDate", new Date());
|
||||
|
||||
// DataTables width 변경 조정
|
||||
$("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} );
|
||||
}
|
||||
|
||||
// URL 설정
|
||||
setURL${pageName} = (taskSeCd) => {
|
||||
${pageName}Control.urls.load = wctx.url("/" + taskSeCd + ${pageName}PrefixUrl + "/010/list.do"); // 조회
|
||||
${pageName}Control.urls.getInfo = wctx.url("/" + taskSeCd + "/sprt/sprt02/010/main.do"); // 개별총정보
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
* 버튼 clickEvent
|
||||
**************************************************************************/
|
||||
// 초기화 버튼 이벤트
|
||||
fnReset${pageName} = () => {
|
||||
fnResetAndChangeBiz${pageName}();
|
||||
}
|
||||
|
||||
// 검색 버튼 이벤트
|
||||
fnSearchList${pageName} = () => {
|
||||
// 검색조건
|
||||
${pageName}Control.query = ${pageName}Fields.get();
|
||||
|
||||
${pageName}Control.query.fetchSize = FETCH_XS; // 한번에 조회되는 자료 건수 FETCH_XS = 30
|
||||
${pageName}Control.query.delYn = "N"; // 삭제 여부
|
||||
${pageName}Control.query.crdnDelYn = "N"; // 단속 대장 삭제 여부
|
||||
|
||||
${pageName}Control.load();
|
||||
}
|
||||
|
||||
// 엑셀 버튼 이벤트
|
||||
fnExcel${pageName} = () => {
|
||||
|
||||
}
|
||||
|
||||
// 업무 구분 변경
|
||||
fnResetAndChangeBiz${pageName} = (taskSeCd) => {
|
||||
// 화면 초기화
|
||||
$("#frmSearch--${pageName}")[0].reset();
|
||||
// dataset 초기화
|
||||
${pageName}Control.dataset.clear();
|
||||
|
||||
// 업무 구분 코드
|
||||
if (typeof taskSeCd == "undefined" || taskSeCd == null || taskSeCd == "") {
|
||||
taskSeCd = $("#layout-navbar input[name='taskSeCd']:checked").val();
|
||||
}
|
||||
|
||||
// 화면 초기값 설정
|
||||
setForm${pageName}(taskSeCd);
|
||||
// URL 설정
|
||||
setURL${pageName}(taskSeCd);
|
||||
}
|
||||
|
||||
// 감경부과등록 버튼 이벤트
|
||||
fnCreateRductLevy${pageName} = () => {
|
||||
// validate 확인
|
||||
if (!customValidate($("#frmEdit--${pageName}").find("input, select, textarea"))) return;
|
||||
|
||||
let callbackFuncName = "createRductLevy${pageName}";
|
||||
let sndngYmd = DateUtil.getDateDay().date;
|
||||
let dudtYmd = DateUtil.getDateDay(20).date;
|
||||
|
||||
let popupWidth = 480;
|
||||
let popupHeight = 480;
|
||||
|
||||
let popupX = (window.screen.width / 2) - (popupWidth / 2);
|
||||
let popupY= (window.screen.height / 2) - (popupHeight / 2);
|
||||
|
||||
window.open(
|
||||
wctx.url("/resources/html/inputDateDialog.html"
|
||||
+ "?callbackFuncName=" + callbackFuncName
|
||||
+ "&CALL_PURPOSE=" + "levy"
|
||||
+ "&SNDNG_YMD=" + sndngYmd
|
||||
+ "&DUDT_YMD=" + dudtYmd
|
||||
)
|
||||
, "inputEPostDateDialog"
|
||||
, 'status=no, height=' + popupHeight + ', width=' + popupWidth + ', left='+ popupX + ', top='+ popupY
|
||||
);
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
* script 진입
|
||||
**************************************************************************/
|
||||
$(document).ready(function() {
|
||||
// 보안모드
|
||||
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
||||
|
||||
// 이벤트 설정
|
||||
setEvent${pageName}();
|
||||
|
||||
// 시군구 코드 설정
|
||||
$("#sggCd--${pageName}").val("${sggCd}");
|
||||
// 업무 구분 설정
|
||||
let defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
|
||||
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked", true);
|
||||
|
||||
// 업무 구분 및 화면 초기 설정
|
||||
fnResetAndChangeBiz${pageName}(defaultBizValue);
|
||||
});
|
||||
|
||||
</script>
|
Loading…
Reference in New Issue