1. 감액 수정.

2. 기타 수정.
main
JoJH 4 days ago
parent 913b29e4d2
commit bb296b8597

@ -57,7 +57,7 @@
</span> </span>
</div> </div>
<div class="col-6"> <div class="col-6">
<label is="name-label" class="form-label form-search-title w-px-120 text-end fw-bold" for="schEntRegNo">부과제외구분</label> <label is="name-label" class="form-label form-search-title w-px-120 text-end fw-bold" for="schLevyExclSeCd">부과제외구분</label>
<select is="id-select" class="form-select w-px-160" name="schLevyExclSeCd"> <select is="id-select" class="form-select w-px-160" name="schLevyExclSeCd">
<option value="">전체</option> <option value="">전체</option>
<c:forEach items="${FIM021List}" var="item"> <c:forEach items="${FIM021List}" var="item">

@ -18,8 +18,8 @@
<div class="row g-1"> <div class="row g-1">
<div class="col-md-12"> <div class="col-md-12">
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="tnocs">총 건수/금액</label> <label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="tnocs">총 건수/금액</label>
<input is="id-input" type="text" class="form-control w-px-60 text-end" name="tnocs" data-map="TNOCS" readonly /> <input is="id-input" type="text" class="form-control w-px-60 text-end" name="tnocs" data-map="TNOCS" data-fmt-type="number" readonly />
<input is="id-input" type="text" class="form-control w-px-120 text-end" name="gramtFfnlgAmt" data-map="GRAMT_FFNLG_AMT" readonly /> <input is="id-input" type="text" class="form-control w-px-120 text-end" name="gramtFfnlgAmt" data-map="GRAMT_FFNLG_AMT" data-fmt-type="number" readonly />
</div> </div>
<div class="col-md-12"> <div class="col-md-12">
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="advntceRdcrt">감경율</label> <label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="advntceRdcrt">감경율</label>
@ -27,7 +27,7 @@
</div> </div>
<div class="col-md-12"> <div class="col-md-12">
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="gramtAdvntceAmt">감경부과금액</label> <label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="gramtAdvntceAmt">감경부과금액</label>
<input is="id-input" type="text" class="form-control w-px-120 fw-bold text-red text-end" name="gramtAdvntceAmt" data-map="GRAMT_ADVNTCE_AMT" readonly /> <input is="id-input" type="text" class="form-control w-px-120 fw-bold text-red text-end" name="gramtAdvntceAmt" data-map="GRAMT_ADVNTCE_AMT" data-fmt-type="number" readonly />
</div> </div>
<div class="col-md-12"> <div class="col-md-12">
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end required" for="fyr">회계연도</label> <label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end required" for="fyr">회계연도</label>

File diff suppressed because it is too large Load Diff

@ -9,11 +9,6 @@ function newLevy01020Control(pageName, doctx="[data-doctx='levy01020']") {
create: "/create.do" create: "/create.do"
, update: "/update.do" , update: "/update.do"
} }
, formats: {
TNOCS: numberFormat
, GRAMT_FFNLG_AMT: numberFormat
, GRAMT_ADVNTCE_AMT: numberFormat
}
}); });
/************************************************************************** /**************************************************************************

@ -9,11 +9,6 @@ function newLevy02020Control(pageName, doctx="[data-doctx='levy02020']") {
create: "/create.do" create: "/create.do"
, update: "/update.do" , update: "/update.do"
} }
, formats: {
FFNLG_CRDN_AMT: numberFormat // 과태료 단속 금액
, WKSN_RDCRT: numberFormat // 사회적약자 감경율
, RDCT_AMT: numberFormat // 감경 금액
}
}); });
/************************************************************************** /**************************************************************************

@ -0,0 +1,148 @@
function newRdca01010Control(pageName, doctx="[data-doctx='rdca01010']") {
let ctrl = new DatasetControl({
doctx: doctx
, prefix: "rdcamt"
, prefixName: "감액"
, dataGetter: obj => obj["List"]
, keys: ["RDAMT_ID"]
, appendData: true
, infoSize: "md"
, urls: {
load: "/list.do"
, getInfo: "/info.do"
, remove: "/remove.do"
}
, formats : {
RDAMT_YMD: dateFormat
, FFNLG_CRDN_AMT: numberFormat
, REG_DT: datetimeFormat
, MDFCN_DT: datetimeFormat
}
});
// 검색 조건
ctrl.query = { pageNum: 1, fetchSize: DEFAULT_FETCH_SIZE }; // 1 페이지당 자료 건수 index.jsp에서 확인
// paging
ctrl.pagingSupport = new FimsPagingSupport({
ctrl: ctrl // DatasetControl
, ignoreCtrlPrefix: true // ctrl.prefix 가 있더라도 무시
, linkContainer: "[name='dataPaging']" // <ul class="pagination pagination-primary" name="dataPaging">
});
/**************************************************************************
* DatasetControl Events
**************************************************************************/
// Dataset 변경 이벤트
ctrl.onDatasetChange = (obj, option) => {
// 데이터 셋
let dataList = ctrl.dataset;
let empty = dataList.empty;
let clsForTask = $(ctrl.find("[name='frmSearch']")).find("[name='taskSeCd']:checked").val().toLowerCase();
// 업무별 dataTables(그리드) tr, td
let foundContent = ctrl.find("[name='tmpltRows']").content;
let foundTr = $(foundContent).find("tr")[0].cloneNode(false);
let foundTds = $(foundContent).find("." + clsForTask + ",.cmn");
foundTds.each(function() {
foundTr.appendChild(this.cloneNode(true));
});
let replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['" + pageName + "'].dataTableClick('{data-index}');")
.replace(/{ondblclick}/gi, "pageObject['" + pageName + "'].dataTableDblClick('{data-index}');");
let trs = empty ?
[ctrl.find("[name='tmpltNotFound']").content.querySelector("." + clsForTask + ",.cmn").outerHTML]
: dataList.inStrings(foundTr.outerHTML, replacer);
let noMore = (dataList.length >= obj["Paging"]?.totalSize); // 전체 건수
let initScroll = (ctrl.query.pageNum < 2);
if (option != null && option.reloaded) {
initScroll = false;
}
// dataTables(그리드)에 자료 표시 td
ctrl.find("[name='tableRspns']").changeContent(trs.join(), initScroll, noMore);
// checkbox 체크 해제
$(ctrl.find("[name='gridAllCheckbox']")).prop("checked", false);
// dataTables(그리드)에 페이지 표시 pagingInfo
ctrl.pagingSupport.setPagingInfo(obj);
// 보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
};
// 현재 선택 자료 변경 이벤트
ctrl.onCurrentChange = (item) => {
Apply.fromDataset.currentRow(ctrl.dataset, item, ctrl.find("[name='tbodyList']"));
};
// 선택(체크) 변경 이벤트
ctrl.onSelectionChange = (selectedArr) => {
// gridCheckbox
Apply.fromDataset.gridCheckbox(ctrl.dataset, ctrl.find("[name='tbodyList']"), 1, selectedArr);
// gridButton
Apply.fromDataset.gridButton(ctrl.dataset, ctrl.find("[name='btnCreateSlctnTrgt']"), selectedArr); // 선택 감경부과 등록
};
// 상세 정보 dialog
ctrl.getInfo = (params) => {
if (!params) return;
ajax.get({
url: ctrl.urls.getInfo
, data: params || {}
, success: (resp) => {
let dialogName = ctrl.prefixed("Dialog");
let dialogId = dialogName + "-" + uuid();
dialog.open({
id: dialogId
, title: params.btnTitle
, size: ctrl.infoSize
, content: resp
, init: () => {
$("#" + dialogId).attr("name", dialogName);
$("#" + dialogId).attr("data-ref-doctx", pageName);
AppSupport.setDialogZindex();
}
, onClose: () => { ctrl.reload({all : true}); } // 자료 재조회
});
}
});
}
// 삭제 callback
ctrl.onRemove = (params, resp) => {
let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, params.btnTitle);
// 메시지 출력
dialog.alert({
content: showMessage
, init: () => { AppSupport.setDialogZindex(); }
, onOK: () => { }
, onClose: () => {
if (resp.saved) { ctrl.reload({ all: true }); } // 자료 재조회
}
});
}
// 삭제
ctrl.remove = (params) => {
if (!params) return;
ajax.post({
url: ctrl.urls.remove
, data: params || {}
, success: (resp) => { ctrl.onRemove(params, resp); }
});
}
return ctrl;
}
Loading…
Cancel
Save