세외수입 등록 수정.

main
jjh 1 year ago
parent aa47e84478
commit 9ad8f75b8f

@ -22,7 +22,7 @@
<button type="button" class="btn btn-excel w-px-120" id="btnExcel--${pageName}" title="엑셀 저장" onclick="fnExcel${pageName}();"> <button type="button" class="btn btn-excel w-px-120" id="btnExcel--${pageName}" title="엑셀 저장" onclick="fnExcel${pageName}();">
엑셀 저장 엑셀 저장
</button> </button>
<button type="button" class="btn btn-primary w-px-120" id="btnCreateNxrpMtchg--${pageName}" title="세외수입 등록" onclick="fnCreateNxrpMtchg${pageName}();"> <button type="button" class="btn btn-primary w-px-120" id="btnCreateNxrpLink--${pageName}" title="세외수입 등록" onclick="fnCreateNxrpLink${pageName}();">
세외수입 등록 세외수입 등록
</button> </button>
<button type="button" class="btn btn-primary w-px-120" id="btnUpdateNxrpMtchg--${pageName}" title="매치정보 등록" onclick="fnUpdateNxrpMtchg${pageName}();"> <button type="button" class="btn btn-primary w-px-120" id="btnUpdateNxrpMtchg--${pageName}" title="매치정보 등록" onclick="fnUpdateNxrpMtchg${pageName}();">
@ -216,6 +216,15 @@
/************************************************************************** /**************************************************************************
* *
**************************************************************************/ **************************************************************************/
// 단속 ID
getCrdnKeys = (status) => {
let dataset = ${pageName}Control.dataset.getDataset(status);
return dataset.map(info => {
return info ? info.CRDN_ID : null;
});
}
// DataTables에 click, dbclick 이벤트 // DataTables에 click, dbclick 이벤트
renderList${pageName} = () => { renderList${pageName} = () => {
let ${infoPrefix}List = ${pageName}Control.dataset; let ${infoPrefix}List = ${pageName}Control.dataset;
@ -237,22 +246,11 @@
fn_securityModeToggle($("#securityMode--top").is(":checked")); fn_securityModeToggle($("#securityMode--top").is(":checked"));
} }
///////////////////////////////////////////////////////////////
getCrdnKey = (info) => {
return info ? info.CRDN_ID : null;
}
getCrdnKeys = (status) => {
let dataset = ${pageName}Control.dataset.getDataset(status);
return dataset.map(e => getCrdnKey(e));
}
///////////////////////////////////////////////////////////////
// 세외수입 등록 // 세외수입 등록
createNxrpMtchg${pageName} = (params) => { createNxrpLink${pageName} = (params) => {
// 선택된 자료의 발송 상세 ID 추가 // 선택된 자료의 ID 추가
let selected = ${pageName}Control.dataset.getKeys("selected"); let selected = ${pageName}Control.dataset.getKeys("selected"); // 발송 상세 ID
let crdnKeys = getCrdnKeys("selected"); let crdnKeys = getCrdnKeys("selected"); // 단속 ID
if (selected.length < 1) return; if (selected.length < 1) return;
@ -264,7 +262,7 @@
url : wctx.url("/" + params.taskSeCd + "/sndb/sndb02/010/createNxrpLink.do") url : wctx.url("/" + params.taskSeCd + "/sndb/sndb02/010/createNxrpLink.do")
, data : params || {} , data : params || {}
, success : resp => { , success : resp => {
let btnTitle = $("#btnCreateNxrpMtchg--${pageName}").attr("title"); let btnTitle = $("#btnCreateNxrpLink--${pageName}").attr("title");
let showMessage = resp.retMessage.replace(/[S]|[F]/g, btnTitle); let showMessage = resp.retMessage.replace(/[S]|[F]/g, btnTitle);
dialog.alert(showMessage); dialog.alert(showMessage);
@ -383,14 +381,14 @@
} }
// 세외수입 등록 // 세외수입 등록
fnCreateNxrpMtchg${pageName} = () => { fnCreateNxrpLink${pageName} = () => {
// validate 확인 // validate 확인
if (!customValidate($("#frmEdit--${pageName}").find("input, select, textarea"))) return; if (!customValidate($("#frmEdit--${pageName}").find("input, select, textarea"))) return;
dialog.alert({ dialog.alert({
content : "세외수입 과태료 대장에 등록하시겠습니까?" content : "세외수입 과태료 대장에 등록하시겠습니까?"
, onOK : () => { , onOK : () => {
createNxrpMtchg${pageName}(${pageName}Fields.get()); createNxrpLink${pageName}(${pageName}Fields.get());
} }
}); });
} }

Loading…
Cancel
Save