민원 상담 Info 추가.
parent
067d3de502
commit
1dac1ed346
@ -0,0 +1,585 @@
|
||||
<%@ 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="fnBtnReset${pageName}();">
|
||||
초기화
|
||||
</button>
|
||||
<span class="container-window-btn-right">
|
||||
<button type="button" class="btn btn-search" id="btnSearch--${pageName}" title="검색" onclick="fnBtnSearchList${pageName}();">
|
||||
검색
|
||||
</button>
|
||||
<button type="button" class="btn btn-search" id="btnExcel--${pageName}" title="엑셀" onclick="fnBtnExcel${pageName}();">
|
||||
엑셀
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
<!-- / 상단 버튼 -->
|
||||
|
||||
<!-- 검색 조건 영역 -->
|
||||
<form id="frmSearch--${pageName}" name="frmSearch">
|
||||
<!-- 메인 조건 -->
|
||||
<div class="container-search">
|
||||
<div class="row g-1">
|
||||
<!-- 업무구분 -->
|
||||
<div class="col-12">
|
||||
<label class="form-label fw-bold form-search-title">업무구분</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">부과제외일자</label>
|
||||
<span class="form-search-linebox">
|
||||
<input type="text" class="form-control form-date" id="schLevyExclYmdFrom--${pageName}" name="schLevyExclYmdFrom"
|
||||
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="schLevyExclYmdTo--${pageName}" name="schLevyExclYmdTo"
|
||||
data-fmt-type="day" title="종료 날짜 선택" />
|
||||
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
||||
</span>
|
||||
</div>
|
||||
<!-- <div class="col-1 text-end"> -->
|
||||
<%-- <select class="form-select text-end" id="schDateOpt--${pageName}" name="schDateOpt"> --%>
|
||||
<!-- <option value="levyExclYmd">부과제외일자</option> -->
|
||||
<!-- <option value="crdnYmd">단속일자</option> -->
|
||||
<!-- </select> -->
|
||||
<!-- </div> -->
|
||||
<!-- <div class="col-5"> -->
|
||||
<!-- <span class="form-search-linebox"> -->
|
||||
<%-- <input type="text" class="form-control form-date" id="schDateFrom--${pageName}" name="schDateFrom" --%>
|
||||
<!-- 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="schDateTo--${pageName}" name="schDateTo" --%>
|
||||
<!-- 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">부과제외구분</label>
|
||||
<select class="form-select w-px-150" id="schLevyExclSeCd--${pageName}" name="schLevyExclSeCd">
|
||||
<option value="">전체</option>
|
||||
<c:forEach items="${FIM021List}" var="item">
|
||||
<option value="${item.code}">${item.value}</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</div>
|
||||
<!-- 차량번호 -->
|
||||
<div class="col-6">
|
||||
<label class="form-label fw-bold form-search-title">차량번호</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">납부자명</label>
|
||||
<input type="text" class="form-control w-px-150" id="schRtpyrNm--${pageName}" name="schRtpyrNm" />
|
||||
</div>
|
||||
<!-- 단속일자 -->
|
||||
<div class="col-6">
|
||||
<label class="form-label fw-bold form-search-title">단속일자</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">
|
||||
<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" id="schRegDateOpt--${pageName}" 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"
|
||||
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="schRegDateTo--${pageName}" name="schRegDateTo"
|
||||
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" id="schDetailUserOpt--${pageName}" name="schDetailUserOpt">
|
||||
<option value="rgtr">등록자명</option>
|
||||
<option value="mdfr">수정자명</option>
|
||||
</select>
|
||||
<input type="text" class="form-control" id="schDetailUserNm--${pageName}" name="schDetailUserNm" />
|
||||
</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" id="btnUpdate--${pageName}" title="수정" onclick="fnBtnUpdate${pageName}();">
|
||||
수정
|
||||
</button>
|
||||
<button type="button" class="btn btn-primary" id="btnRemove--${pageName}" title="삭제" onclick="fnBtnRemove${pageName}();">
|
||||
삭제
|
||||
</button>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
<!-- / 업무 버튼 및 건수 표시 -->
|
||||
|
||||
<!-- DataTables(그리드) -->
|
||||
<div class="card-datatable text-nowrap">
|
||||
<div id="DataTables_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer">
|
||||
<div id="table-responsive--${pageName}" class="table-responsive" style="overflow-x:scroll; height:400px; overflow-y:scroll;" >
|
||||
<table class="dataTable datatables-ajax table table-bordered no-footer" id="DataTables_Table_0--${pageName}" aria-describedby="DataTables_Table_0_info">
|
||||
<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="sorting" style="width: 24px;">NO.</th>
|
||||
<th class="sorting" style="width: 24px;">
|
||||
<input type="checkbox" class="form-check-input" onchange="${pageName}Control.select(this.checked);">
|
||||
</th>
|
||||
<th onclick="searchFromGridTitle('LEVY_EXCL_YMD', this.innerText, 'ymd', '');">부과제외일자</th>
|
||||
<th onclick="searchFromGridTitle('LEVY_EXCL_SE_NM', this.innerText, 'codeValue', 'FIM021');">부과제외구분명</th>
|
||||
<th onclick="searchFromGridTitle('LEVY_EXCL_RSN_NM', this.innerText, 'codeValue', 'FIM022');">부과제외사유</th>
|
||||
<th onclick="searchFromGridTitle('ETC_CN', this.innerText, 'match', 'part');">기타내용</th>
|
||||
<th onclick="searchFromGridTitle('CVLCPT_RCPT_NO', this.innerText, 'match', 'part');">민원접수번호</th>
|
||||
<th onclick="searchFromGridTitle('CVLCPT_RCPT_YMD', this.innerText, 'ymd', '');">민원접수일자</th>
|
||||
<th onclick="searchFromGridTitle('CRDN_YMD', this.innerText, 'ymd', '');">단속일시</th>
|
||||
<th onclick="searchFromGridTitle('VHRNO', this.innerText, 'match', 'part');">차량번호</th>
|
||||
<th onclick="searchFromGridTitle('CRDN_STDG_NM', this.innerText, 'match', 'part');">법정동</th>
|
||||
<th onclick="searchFromGridTitle('CRDN_PLC', this.innerText, 'match', 'part');">단속장소</th>
|
||||
<th onclick="searchFromGridTitle('CRDN_STTS_NM', this.innerText, 'codeValue', 'FIM010');">처리상태명</th>
|
||||
<th onclick="searchFromGridTitle('RTPYR_NM', this.innerText, 'match', 'part');">납부자명</th>
|
||||
<th onclick="searchFromGridTitle('RTPYR_BRDT', this.innerText, 'ymd', '');">납부자생일</th>
|
||||
<th>등록일시</th>
|
||||
<th>등록사용자</th>
|
||||
<th>수정일시</th>
|
||||
<th>수정사용자</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody--${pageName}">
|
||||
</tbody>
|
||||
<template id="${infoPrefix}Row--${pageName}">
|
||||
<tr data-key="{LEVY_EXCL_ID}">
|
||||
<td class="text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td>
|
||||
<td class="text-center">
|
||||
<input type="checkbox" class="form-check-input" value="{LEVY_EXCL_ID}" onchange="${pageName}Control.select('{LEVY_EXCL_ID}', this.checked);">
|
||||
</td>
|
||||
<td class="text-center" onclick="{onclick}" ondblclick="{ondblclick}">{LEVY_EXCL_YMD}</td>
|
||||
<td class="text-center" onclick="{onclick}" ondblclick="{ondblclick}">{LEVY_EXCL_SE_NM}</td>
|
||||
<td class="text-center" onclick="{onclick}" ondblclick="{ondblclick}">{LEVY_EXCL_RSN_NM}</td>
|
||||
<td class="text-start" onclick="{onclick}" ondblclick="{ondblclick}">{ETC_CN}</td>
|
||||
<td class="text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CVLCPT_RCPT_NO}</td>
|
||||
<td class="text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CVLCPT_RCPT_YMD}</td>
|
||||
<td class="text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_YMD_TM}</td>
|
||||
<td class="text-start" onclick="{onclick}" ondblclick="{ondblclick}">{VHRNO}</td>
|
||||
<td class="text-start" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_STDG_NM}</td>
|
||||
<td class="text-start" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_PLC}</td>
|
||||
<td class="text-center" onclick="{onclick}" ondblclick="{ondblclick}">{CRDN_STTS_NM}</td>
|
||||
<td class="text-start" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_NM}</td>
|
||||
<td class="text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RTPYR_BRDT_FORMAT}</td>
|
||||
<td class="text-center" onclick="{onclick}" ondblclick="{ondblclick}">{REG_DT}</td>
|
||||
<td class="text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RGTR_NM}</td>
|
||||
<td class="text-center" onclick="{onclick}" ondblclick="{ondblclick}">{MDFCN_DT}</td>
|
||||
<td class="text-center" onclick="{onclick}" ondblclick="{ondblclick}">{MDFR_NM}</td>
|
||||
</tr>
|
||||
</template>
|
||||
<template id="${infoPrefix}NotFound--${pageName}">
|
||||
<tr class="odd">
|
||||
<td valign="top" colspan="19" 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>
|
||||
<!-- Content wrapper -->
|
||||
|
||||
<script>
|
||||
/**************************************************************************
|
||||
* Global Variable
|
||||
**************************************************************************/
|
||||
// URL
|
||||
var ${pageName}PrefixUrl = "/excl/excl01";
|
||||
// 공통 코드
|
||||
// var FIM021 = new CommonCodes(${FIM021}, true);
|
||||
// var FIM022 = new CommonCodes(${FIM022}, true);
|
||||
|
||||
/**************************************************************************
|
||||
* DatasetControl
|
||||
**************************************************************************/
|
||||
var ${pageName}Control = new DatasetControl({
|
||||
prefix : "levyExcl"
|
||||
, prefixName : "부과제외"
|
||||
, infoSize : "lg"
|
||||
, keymapper : info => info ? info.LEVY_EXCL_ID : ""
|
||||
, dataGetter : obj => obj.levyExclList
|
||||
, appendData : true
|
||||
// , urls : {
|
||||
// load : wctx.url(${pageName}PrefixUrl + "/010/list.do") // 검색
|
||||
// , remove : wctx.url(${pageName}PrefixUrl + "/010/removes.do") // 선택(체크) 자료 삭제
|
||||
// , getInfo : wctx.url("/sprt/sprt02/010/main.do") // 개별총정보
|
||||
// }
|
||||
, formats : {
|
||||
LEVY_EXCL_YMD : dateFormat
|
||||
, CRDN_YMD_TM : datetimeFormat
|
||||
, CVLCPT_RCPT_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.onCurrentChange = item => {
|
||||
if (!item) return;
|
||||
|
||||
// 계고는 수정하지 않는다..
|
||||
let levyExclSeCd = item.data.LEVY_EXCL_SE_CD;
|
||||
|
||||
if (levyExclSeCd == "2") {
|
||||
$("#btnUpdate--${pageName}").prop("disabled", true);
|
||||
} else {
|
||||
$("#btnUpdate--${pageName}").prop("disabled", false);
|
||||
}
|
||||
|
||||
let key = item.data.LEVY_EXCL_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 = (crdnId) => {
|
||||
if (crdnId == undefined || crdnId == null || crdnId == "") {
|
||||
return;
|
||||
}
|
||||
|
||||
ajax.get({
|
||||
url : ${pageName}Control.urls.getInfo
|
||||
, data : { crdnId : crdnId }
|
||||
, success : resp => {
|
||||
dialog.open({
|
||||
id : ${pageName}Control.prefixed("dialog")
|
||||
, title : "개별총정보"
|
||||
, content : resp
|
||||
, size : "xxl"
|
||||
, init : () => { }
|
||||
, onClose : () => { }
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*
|
||||
// 삭제 -> callback 추가 sample
|
||||
${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)
|
||||
});
|
||||
}
|
||||
// 삭제
|
||||
${pageName}Control.onRemove = (selected, resp) => {
|
||||
if (resp.saved)
|
||||
${pageName}Control._load();
|
||||
}
|
||||
*/
|
||||
/**************************************************************************
|
||||
*
|
||||
**************************************************************************/
|
||||
// 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("LEVY_EXCL_ID") + "');")
|
||||
.replace(/{ondblclick}/gi, "${pageName}Control.getInfo('" + dataItem.getValue("CRDN_ID") + "');")
|
||||
);
|
||||
|
||||
$("#tbody--${pageName}").html(trs.join());
|
||||
$("th input[type='checkbox']").prop("checked", false);
|
||||
}
|
||||
|
||||
// 업무구분 변경
|
||||
fnResetAndChangeBiz${pageName} = (taskSeCd) => {
|
||||
initForm${pageName}();
|
||||
|
||||
${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"); // 개별총정보
|
||||
}
|
||||
|
||||
// 검색 조건 파라미터 가져오기
|
||||
fnGetParams${pageName} = () => {
|
||||
let formFields = new FimsFormFields("#frmSearch--${pageName}");
|
||||
let formData = formFields.get();
|
||||
|
||||
formData.sggCd = "41480"; // 시군구 코드 임시
|
||||
|
||||
return formData;
|
||||
}
|
||||
|
||||
// 수정 dialog -> callback 추가
|
||||
${pageName}Info = (params) => {
|
||||
ajax.get({
|
||||
url : wctx.url("/" + params.taskSeCd + ${pageName}PrefixUrl + "/020/info.do?openerPageName=${pageName}")
|
||||
, data : params || {}
|
||||
, success : resp => {
|
||||
resp = resp.replace(/infoPrefix/g, this.prefix)
|
||||
.replace(/prefixName/g, this.prefixName)
|
||||
dialog.open({
|
||||
id : ${pageName}Control.prefixed("dialog")
|
||||
, title : ${pageName}Control.prefixName + " 정보"
|
||||
, content : resp
|
||||
, size : ${pageName}Control.infoSize
|
||||
, init : () => { }
|
||||
, onClose : () => { ${pageName}Control.load(${pageName}Control.query.pageNum); } // callback
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
* 초기 셋팅
|
||||
**************************************************************************/
|
||||
// 화면 초기값 셋팅
|
||||
initForm${pageName} = () => {
|
||||
// 달력 초기화
|
||||
initDatepicker("frmSearch--${pageName}");
|
||||
|
||||
$("#schLevyExclYmdFrom--${pageName}").datepicker("setDate", DateUtil.getDateDay(-30).date);
|
||||
$("#schLevyExclYmdTo--${pageName}").datepicker("setDate", new Date());
|
||||
|
||||
${pageName}Control.dataset.clear();
|
||||
}
|
||||
|
||||
// 이벤트
|
||||
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(obj) {
|
||||
let el = $(this);
|
||||
|
||||
if (el.scrollTop() == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
let itemsCnt = ${pageName}Control.dataset._items.length;
|
||||
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.load(${pageName}Control.query.pageNum + 1);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
* function
|
||||
**************************************************************************/
|
||||
// 초기화
|
||||
fnBtnReset${pageName} = () => {
|
||||
let taskSeCd = $("#layout-navbar input[name='taskSeCd']:checked").val();
|
||||
|
||||
fnResetAndChangeBiz${pageName}(taskSeCd);
|
||||
}
|
||||
|
||||
// 검색
|
||||
fnBtnSearchList${pageName} = () => {
|
||||
// 검색조건
|
||||
${pageName}Control.query = fnGetParams${pageName}();
|
||||
${pageName}Control.query.fetchSize = FETCH_XS; // 한번에 조회되는 건수 - 30건
|
||||
${pageName}Control.query.delYn = "N"; // 삭제 여부
|
||||
|
||||
${pageName}Control.load();
|
||||
}
|
||||
|
||||
// 엑셀
|
||||
fnBtnExcel${pageName} = () => {
|
||||
|
||||
}
|
||||
|
||||
// 수정
|
||||
fnBtnUpdate${pageName} = () => {
|
||||
let taskSeCd = $("#layout-navbar input[name='taskSeCd']:checked").val();
|
||||
let levyExclId = ${pageName}Control.dataset.getValue("LEVY_EXCL_ID");
|
||||
|
||||
// 부과제외ID 가 없다면.. return
|
||||
if (levyExclId == undefined || levyExclId == "") {
|
||||
return;
|
||||
}
|
||||
|
||||
// 계고는 수정하지 않는다..
|
||||
let levyExclSeCd = ${pageName}Control.dataset.getValue("LEVY_EXCL_SE_CD");
|
||||
if (levyExclSeCd == "2") {
|
||||
dialog.alert("계고 정보는 수정할 수 없습니다.");
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
let params = {
|
||||
callPurpose : "update"
|
||||
, taskSeCd : taskSeCd
|
||||
, levyExclId : levyExclId
|
||||
};
|
||||
|
||||
${pageName}Info(params);
|
||||
}
|
||||
|
||||
// 삭제
|
||||
fnBtnRemove${pageName} = () => {
|
||||
dialog.alert({
|
||||
content : "선택한 부과제외 정보를 삭제하시겠습니까?"
|
||||
, onOK : () => {
|
||||
${pageName}Control.remove();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
* script 진입
|
||||
**************************************************************************/
|
||||
$(document).ready(function() {
|
||||
// 이벤트 설정
|
||||
setEvent${pageName}();
|
||||
|
||||
// 보안모드
|
||||
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
||||
|
||||
// 업무구분 및 화면 초기 설정
|
||||
let defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
|
||||
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked", true);
|
||||
|
||||
fnResetAndChangeBiz${pageName}(defaultBizValue);
|
||||
|
||||
// Dataset 셋팅 - 화면이 열리면서 조회하는 경우 addData 하여 자료를 추가
|
||||
// ${pageName}Control.addData(${levyExcl});
|
||||
});
|
||||
|
||||
// #sourceURL=excl01010-main.jsp
|
||||
</script>
|
@ -0,0 +1,148 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%>
|
||||
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
|
||||
|
||||
<!-- 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="rtpyrId--${pageName}" name="rtpyrId" data-map="RTPYR_ID" />
|
||||
|
||||
<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-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" id="btnSave--${pageName}" title="저장" onclick="fnBtnSave${pageName}()">저장</button>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
<!-- / 업무 버튼 표시 -->
|
||||
|
||||
<script>
|
||||
/**************************************************************************
|
||||
* Global Variable
|
||||
**************************************************************************/
|
||||
// URL
|
||||
var ${pageName}PrefixUrl = "/sprt/sprt04";
|
||||
//
|
||||
var ${pageName}Fields = new FormFields("#frmEdit--${pageName}");
|
||||
|
||||
/**************************************************************************
|
||||
* DatasetControl
|
||||
**************************************************************************/
|
||||
var ${pageName}Control = new DatasetControl({
|
||||
prefix : "cvlcptDscsnCn"
|
||||
, prefixName : "민원상담"
|
||||
, keymapper : info => info ? info.CVLCPT_DSCSN_ID : ""
|
||||
, dataGetter : obj => obj.cvlcptDscsnCn
|
||||
, urls : {
|
||||
create : wctx.url(${pageName}PrefixUrl + "/020/create.do") // 등록
|
||||
, update : wctx.url(${pageName}PrefixUrl + "/020/update.do") // 수정
|
||||
}
|
||||
});
|
||||
|
||||
${pageName}Control.onCurrentChange = item => {
|
||||
${pageName}Fields.set(item);
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
*
|
||||
**************************************************************************/
|
||||
// 저장 callback
|
||||
${pageName}Control.onSave = (resp) => {
|
||||
if (resp.saved) {
|
||||
dialog.alert("저장됐습니다.");
|
||||
dialog.close(${pageName}Control.prefix + "Dialog");
|
||||
}
|
||||
}
|
||||
|
||||
// 저장
|
||||
${pageName}Control.save = (info) => {
|
||||
if (!info) return;
|
||||
|
||||
let item = ${pageName}Control.getCurrent("item");
|
||||
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)
|
||||
});
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
* 초기 셋팅
|
||||
**************************************************************************/
|
||||
// 검색조건 초기값 셋팅
|
||||
function initForm${pageName}() {
|
||||
|
||||
}
|
||||
|
||||
// 이벤트 설정
|
||||
function setEvent${pageName}() {
|
||||
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
* function
|
||||
**************************************************************************/
|
||||
// 저장
|
||||
function fnBtnSave${pageName}() {
|
||||
// validate 확인
|
||||
if (!customValidate($("#frmEdit--${pageName}").find("input, select, textarea"))) return;
|
||||
|
||||
let formFields = new FimsFormFields("#frmEdit--${pageName}");
|
||||
let data = formFields.get();
|
||||
|
||||
dialog.alert({
|
||||
content : "민원 상담 내용을 저장하시겠습니까?"
|
||||
, onOK : () => {
|
||||
${pageName}Control.save(formFields.get());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
* script 진입
|
||||
**************************************************************************/
|
||||
$(document).ready(function() {
|
||||
// 이벤트 설정
|
||||
setEvent${pageName}();
|
||||
|
||||
// 화면 초기 설정
|
||||
initForm${pageName}();
|
||||
|
||||
// Dataset 셋팅 - 단건일 경우 setData
|
||||
${pageName}Control.setData([${cvlcptDscsnCn}]);
|
||||
});
|
||||
|
||||
// #sourceURL=sprt04020-info.jsp
|
||||
</script>
|
Loading…
Reference in New Issue