|
|
@ -2,34 +2,30 @@
|
|
|
|
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
|
|
|
|
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Page Body -->
|
|
|
|
<!-- Page Body -->
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
<!-- 입력 영역 -->
|
|
|
|
<!-- 입력 영역 -->
|
|
|
|
<form id="frmInput--${pageName}" name="frmInput">
|
|
|
|
<form id="formInput--${pageName}" name="formInput">
|
|
|
|
<input type="hidden" name="levyExclId" />
|
|
|
|
<input type="hidden" name="levyExclId" data-map="LEVY_EXCL_ID" />
|
|
|
|
<input type="hidden" name="crdnId" />
|
|
|
|
<input type="hidden" name="crdnId" data-map="CRDN_ID" />
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 메인 조건 -->
|
|
|
|
|
|
|
|
<div class="container-search">
|
|
|
|
|
|
|
|
<div class="row g-1">
|
|
|
|
<div class="row g-1">
|
|
|
|
<!-- 부과제외 구분 -->
|
|
|
|
<!-- 부과제외 구분 -->
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<label for="levyExclSeCd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required">처리 구분</label>
|
|
|
|
<label for="levyExclSeCd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required">처리 구분</label>
|
|
|
|
<select class="form-select" id="levyExclSeCd--${pageName}" name="levyExclSeCd" required >
|
|
|
|
<input id="levyExclSeNm--${pageName}" type="text" readonly class="form-control"/>
|
|
|
|
<c:forEach items="${FIM021List}" var="item">
|
|
|
|
<input id="levyExclSeCd--${pageName}" type="hidden" data-map="LEVY_EXCL_SE_CD"/>
|
|
|
|
<option value="${item.code}">${item.value}</option>
|
|
|
|
|
|
|
|
</c:forEach>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 부과제외 일자 -->
|
|
|
|
<!-- 부과제외 일자 -->
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<label for="levyExclYmd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required">처리 일자</label>
|
|
|
|
<label for="levyExclYmd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required">처리 일자</label>
|
|
|
|
<input type="text" class="form-control form-date" id="levyExclYmd--${pageName}" name="levyExclYmd"
|
|
|
|
<input type="text" class="form-control form-date" id="levyExclYmd--${pageName}" name="levyExclYmd" data-map="LEVY_EXCL_YMD"
|
|
|
|
data-fmt-type="day" title="날짜 선택" required />
|
|
|
|
data-fmt-type="day" title="날짜 선택" required />
|
|
|
|
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
|
|
|
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 부과제외 사유 -->
|
|
|
|
<!-- 부과제외 사유 -->
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<label for="levyExclRsnCd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required">처리 사유</label>
|
|
|
|
<label for="levyExclRsnCd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required">처리 사유</label>
|
|
|
|
<select class="form-select" id="levyExclRsnCd--${pageName}" name="levyExclRsnCd" required>
|
|
|
|
<select class="form-select" id="levyExclRsnCd--${pageName}" name="levyExclRsnCd" data-map="LEVY_EXCL_RSN_CD" required>
|
|
|
|
<option value="">선택하세요</option>
|
|
|
|
<option value="">선택하세요</option>
|
|
|
|
<c:forEach items="${FIM022List}" var="item">
|
|
|
|
<c:forEach items="${FIM022List}" var="item">
|
|
|
|
<option value="${item.code}">${item.value}</option>
|
|
|
|
<option value="${item.code}">${item.value}</option>
|
|
|
@ -39,12 +35,13 @@
|
|
|
|
<!-- 기타 내용 -->
|
|
|
|
<!-- 기타 내용 -->
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<label for="levyExclRsnCd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">기타 내용</label>
|
|
|
|
<label for="levyExclRsnCd--${pageName}" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end">기타 내용</label>
|
|
|
|
<input type="text" class="form-control w-px-400" id="etcCn--${pageName}" name="etcCn" />
|
|
|
|
<input type="text" class="form-control w-px-400" id="etcCn--${pageName}" name="etcCn" data-map="ETC_CN" />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
<!-- /입력 영역 -->
|
|
|
|
<!-- /입력 영역 -->
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- <div class="card"> -->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 업무 버튼 표시 -->
|
|
|
|
<!-- 업무 버튼 표시 -->
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
@ -61,7 +58,7 @@
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* Global Variable
|
|
|
|
* Global Variable
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
var ${pageName}Fields = new FormFields("#frmInput--${pageName}");
|
|
|
|
var ${pageName}Fields = new FormFields("#formInput--${pageName}");
|
|
|
|
var ${pageName}Mode = "${pageMode}";
|
|
|
|
var ${pageName}Mode = "${pageMode}";
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
@ -69,6 +66,7 @@
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
var ${pageName}Info = new Dataset({
|
|
|
|
var ${pageName}Info = new Dataset({
|
|
|
|
prefix : "levyExcl"
|
|
|
|
prefix : "levyExcl"
|
|
|
|
|
|
|
|
, prefixName : "부과제외"
|
|
|
|
, keymapper : info => info ? info.levyExclId : ""
|
|
|
|
, keymapper : info => info ? info.levyExclId : ""
|
|
|
|
, urls : {
|
|
|
|
, urls : {
|
|
|
|
load : wctx.url(prefixUrl + "/010/list.do")
|
|
|
|
load : wctx.url(prefixUrl + "/010/list.do")
|
|
|
@ -78,10 +76,11 @@
|
|
|
|
, remove : wctx.url(prefixUrl + "/020/remove.do")
|
|
|
|
, remove : wctx.url(prefixUrl + "/020/remove.do")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
, formats : {
|
|
|
|
, formats : {
|
|
|
|
levyExclYmd : dateFormat
|
|
|
|
LEVY_EXCL_YMD : dateFormat
|
|
|
|
}
|
|
|
|
}
|
|
|
|
, onCurrentChange : item => {
|
|
|
|
, onCurrentChange : item => {
|
|
|
|
${pageName}Fields.set(item);
|
|
|
|
${pageName}Fields.set(item);
|
|
|
|
|
|
|
|
setFim021(item.data.LEVY_EXCL_SE_CD);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
@ -93,7 +92,6 @@
|
|
|
|
if (resp.saved) {
|
|
|
|
if (resp.saved) {
|
|
|
|
dialog.alert("저장됐습니다.");
|
|
|
|
dialog.alert("저장됐습니다.");
|
|
|
|
dialog.close(${pageName}Info.conf.prefix + "dialog");
|
|
|
|
dialog.close(${pageName}Info.conf.prefix + "dialog");
|
|
|
|
excl01010Control.load("1");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -104,24 +102,35 @@
|
|
|
|
${pageName}Info.save = (info) => {
|
|
|
|
${pageName}Info.save = (info) => {
|
|
|
|
if (!info) return;
|
|
|
|
if (!info) return;
|
|
|
|
|
|
|
|
|
|
|
|
let item = ${pageName}Info.getCurrent("item"),
|
|
|
|
let item = ${pageName}Info.getCurrent("item");
|
|
|
|
create = "added" == item.state;
|
|
|
|
let create = item == null ? "added" : item.state;
|
|
|
|
|
|
|
|
|
|
|
|
ajax.post({
|
|
|
|
ajax.post({
|
|
|
|
url : !create ? ${pageName}Info.urls.update : ${pageName}Info.urls.create
|
|
|
|
url : !create ? ${pageName}Info.conf.urls.update : ${pageName}Info.conf.urls.create
|
|
|
|
, data : info
|
|
|
|
, data : info
|
|
|
|
, success : resp => ${pageName}Info.onSave(resp)
|
|
|
|
, success : resp => ${pageName}Info.onSave(resp)
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function setFim021(code) {
|
|
|
|
|
|
|
|
let cmnCode = FIM021[code];
|
|
|
|
|
|
|
|
$("#levyExclSeCd--${pageName}").val(cmnCode.code);
|
|
|
|
|
|
|
|
$("#levyExclSeNm--${pageName}").val(cmnCode.value);
|
|
|
|
|
|
|
|
}
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* 초기 셋팅
|
|
|
|
* 초기 셋팅
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// 검색조건 초기값 셋팅
|
|
|
|
// 검색조건 초기값 셋팅
|
|
|
|
function initSearch${pageName}() {
|
|
|
|
function initSearch${pageName}() {
|
|
|
|
// 달력 초기화
|
|
|
|
// 달력 초기화
|
|
|
|
initDatepicker("frmInput--${pageName}");
|
|
|
|
initDatepicker("formInput--${pageName}");
|
|
|
|
$("#levyExclYmd--${pageName}").datepicker("setDate", new Date());
|
|
|
|
$("#levyExclYmd--${pageName}").datepicker("setDate", new Date());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 부과제외구분에 따른 부과제외사유 코드 설정
|
|
|
|
|
|
|
|
setFim021("${levyExclSeCd}");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let reasons = FIM022.list().filter(reason => "1" == "${levyExclSeCd}" ? reason.code < "200" : reason.code > "200");
|
|
|
|
|
|
|
|
$("#levyExclRsnCd--${pageName}").html(reasons.map(reason => "<option value='" + reason.code + "'>" + reason.value + "</option>").join());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
@ -135,33 +144,14 @@
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
// 저장
|
|
|
|
// 저장
|
|
|
|
function fnSave${pageName}() {
|
|
|
|
function fnSave${pageName}() {
|
|
|
|
if (!$("#frmInput--${pageName} input").validInputs()) return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let formFields = new FimsFormFields("#frmInput--${pageName}");
|
|
|
|
let formFields = new FimsFormFields("#frmInput--${pageName}");
|
|
|
|
let data = formFields.get();
|
|
|
|
let data = formFields.get();
|
|
|
|
|
|
|
|
|
|
|
|
if (${pageName}Mode == "create") {
|
|
|
|
dialog.alert({
|
|
|
|
create${pageName}(data);
|
|
|
|
content : "현재 " + ${pageName}Info.conf.prefixName + " 정보를 저장하시겠습니까?"
|
|
|
|
} else if (${pageName}Mode == "update") {
|
|
|
|
, onOK : () => {
|
|
|
|
|
|
|
|
${pageName}Info.save(formFields.get());
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 등록
|
|
|
|
|
|
|
|
function create${pageName}(data) {
|
|
|
|
|
|
|
|
ajax.post({
|
|
|
|
|
|
|
|
url : wctx.url(prefixUrl + "/020/create.do")
|
|
|
|
|
|
|
|
, data : data
|
|
|
|
|
|
|
|
, success : resp => ${pageName}Info.onSave(resp)
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 수정
|
|
|
|
|
|
|
|
function update${pageName}(data) {
|
|
|
|
|
|
|
|
ajax.post({
|
|
|
|
|
|
|
|
url : wctx.url(prefixUrl + "/020/update.do")
|
|
|
|
|
|
|
|
, data : data
|
|
|
|
|
|
|
|
, success : resp => ${pageName}Info.onSave(resp)
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -169,7 +159,7 @@
|
|
|
|
* script 진입
|
|
|
|
* script 진입
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
$(document).ready(function() {
|
|
|
|
$(document).ready(function() {
|
|
|
|
// 검색조건 초기값 설정
|
|
|
|
// 초기값 설정
|
|
|
|
initSearch${pageName}();
|
|
|
|
initSearch${pageName}();
|
|
|
|
|
|
|
|
|
|
|
|
// 이벤트 설정
|
|
|
|
// 이벤트 설정
|
|
|
@ -179,10 +169,11 @@
|
|
|
|
if (${pageName}Mode == "create") {
|
|
|
|
if (${pageName}Mode == "create") {
|
|
|
|
|
|
|
|
|
|
|
|
} else if (${pageName}Mode == "update") {
|
|
|
|
} else if (${pageName}Mode == "update") {
|
|
|
|
${pageName}Info.setData([${levyExclInfo}]).setState();
|
|
|
|
${pageName}Info.setData([${levyExclInfo}]);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// #sourceURL=excl01020-info.jsp
|
|
|
|
// #sourceURL=excl01020-info.jsp
|
|
|
|