|
|
|
@ -2,34 +2,30 @@
|
|
|
|
|
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
|
|
|
|
|
|
|
|
|
|
<!-- Page Body -->
|
|
|
|
|
<!-- 입력 영역 -->
|
|
|
|
|
<form id="frmInput--${pageName}" name="frmInput">
|
|
|
|
|
<input type="hidden" name="levyExclId" />
|
|
|
|
|
<input type="hidden" name="crdnId" />
|
|
|
|
|
<div class="card">
|
|
|
|
|
<!-- 입력 영역 -->
|
|
|
|
|
<form id="formInput--${pageName}" name="formInput">
|
|
|
|
|
<input type="hidden" name="levyExclId" data-map="LEVY_EXCL_ID" />
|
|
|
|
|
<input type="hidden" name="crdnId" data-map="CRDN_ID" />
|
|
|
|
|
|
|
|
|
|
<!-- 메인 조건 -->
|
|
|
|
|
<div class="container-search">
|
|
|
|
|
<div class="row g-1">
|
|
|
|
|
<!-- 부과제외 구분 -->
|
|
|
|
|
<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>
|
|
|
|
|
<select class="form-select" id="levyExclSeCd--${pageName}" name="levyExclSeCd" required >
|
|
|
|
|
<c:forEach items="${FIM021List}" var="item">
|
|
|
|
|
<option value="${item.code}">${item.value}</option>
|
|
|
|
|
</c:forEach>
|
|
|
|
|
</select>
|
|
|
|
|
<input id="levyExclSeNm--${pageName}" type="text" readonly class="form-control"/>
|
|
|
|
|
<input id="levyExclSeCd--${pageName}" type="hidden" data-map="LEVY_EXCL_SE_CD"/>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 부과제외 일자 -->
|
|
|
|
|
<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>
|
|
|
|
|
<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 />
|
|
|
|
|
<button type="button" class="bx bx-sm bx-calendar bg-white"></button>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 부과제외 사유 -->
|
|
|
|
|
<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>
|
|
|
|
|
<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>
|
|
|
|
|
<c:forEach items="${FIM022List}" var="item">
|
|
|
|
|
<option value="${item.code}">${item.value}</option>
|
|
|
|
@ -39,12 +35,13 @@
|
|
|
|
|
<!-- 기타 내용 -->
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
<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>
|
|
|
|
|
</form>
|
|
|
|
|
<!-- /입력 영역 -->
|
|
|
|
|
</form>
|
|
|
|
|
<!-- /입력 영역 -->
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <div class="card"> -->
|
|
|
|
|
|
|
|
|
|
<!-- 업무 버튼 표시 -->
|
|
|
|
|
<div>
|
|
|
|
@ -61,7 +58,7 @@
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
* Global Variable
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
var ${pageName}Fields = new FormFields("#frmInput--${pageName}");
|
|
|
|
|
var ${pageName}Fields = new FormFields("#formInput--${pageName}");
|
|
|
|
|
var ${pageName}Mode = "${pageMode}";
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
@ -69,6 +66,7 @@
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
var ${pageName}Info = new Dataset({
|
|
|
|
|
prefix : "levyExcl"
|
|
|
|
|
, prefixName : "부과제외"
|
|
|
|
|
, keymapper : info => info ? info.levyExclId : ""
|
|
|
|
|
, urls : {
|
|
|
|
|
load : wctx.url(prefixUrl + "/010/list.do")
|
|
|
|
@ -78,10 +76,11 @@
|
|
|
|
|
, remove : wctx.url(prefixUrl + "/020/remove.do")
|
|
|
|
|
}
|
|
|
|
|
, formats : {
|
|
|
|
|
levyExclYmd : dateFormat
|
|
|
|
|
LEVY_EXCL_YMD : dateFormat
|
|
|
|
|
}
|
|
|
|
|
, onCurrentChange : item => {
|
|
|
|
|
${pageName}Fields.set(item);
|
|
|
|
|
setFim021(item.data.LEVY_EXCL_SE_CD);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
@ -93,7 +92,6 @@
|
|
|
|
|
if (resp.saved) {
|
|
|
|
|
dialog.alert("저장됐습니다.");
|
|
|
|
|
dialog.close(${pageName}Info.conf.prefix + "dialog");
|
|
|
|
|
excl01010Control.load("1");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -104,24 +102,35 @@
|
|
|
|
|
${pageName}Info.save = (info) => {
|
|
|
|
|
if (!info) return;
|
|
|
|
|
|
|
|
|
|
let item = ${pageName}Info.getCurrent("item"),
|
|
|
|
|
create = "added" == item.state;
|
|
|
|
|
let item = ${pageName}Info.getCurrent("item");
|
|
|
|
|
let create = item == null ? "added" : item.state;
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
, 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}() {
|
|
|
|
|
// 달력 초기화
|
|
|
|
|
initDatepicker("frmInput--${pageName}");
|
|
|
|
|
initDatepicker("formInput--${pageName}");
|
|
|
|
|
$("#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}() {
|
|
|
|
|
if (!$("#frmInput--${pageName} input").validInputs()) return;
|
|
|
|
|
|
|
|
|
|
let formFields = new FimsFormFields("#frmInput--${pageName}");
|
|
|
|
|
let data = formFields.get();
|
|
|
|
|
|
|
|
|
|
if (${pageName}Mode == "create") {
|
|
|
|
|
create${pageName}(data);
|
|
|
|
|
} else if (${pageName}Mode == "update") {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 등록
|
|
|
|
|
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)
|
|
|
|
|
let formFields = new FimsFormFields("#frmInput--${pageName}");
|
|
|
|
|
let data = formFields.get();
|
|
|
|
|
|
|
|
|
|
dialog.alert({
|
|
|
|
|
content : "현재 " + ${pageName}Info.conf.prefixName + " 정보를 저장하시겠습니까?"
|
|
|
|
|
, onOK : () => {
|
|
|
|
|
${pageName}Info.save(formFields.get());
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -169,7 +159,7 @@
|
|
|
|
|
* script 진입
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
// 검색조건 초기값 설정
|
|
|
|
|
// 초기값 설정
|
|
|
|
|
initSearch${pageName}();
|
|
|
|
|
|
|
|
|
|
// 이벤트 설정
|
|
|
|
@ -178,11 +168,12 @@
|
|
|
|
|
// Data 셋팅
|
|
|
|
|
if (${pageName}Mode == "create") {
|
|
|
|
|
|
|
|
|
|
} else if (${pageName}Mode == "update") {
|
|
|
|
|
${pageName}Info.setData([${levyExclInfo}]).setState();
|
|
|
|
|
} else {
|
|
|
|
|
} else if (${pageName}Mode == "update") {
|
|
|
|
|
${pageName}Info.setData([${levyExclInfo}]);
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// #sourceURL=excl01020-info.jsp
|
|
|
|
|