fix : 단속 등록 샘플 추가

main
이범준 1 year ago
parent 8ec67846ef
commit 4c6adeaaea

@ -133,7 +133,7 @@
, #{sysSeCd}
, #{crdnSeCd}
, #{crdnInptSeCd}
, #{crdnYmd}
, REPLACE(#{crdnYmd},'-','')
, #{crdnPlc}
, #{vltnNmtm}
, #{minusAmt}

@ -79,7 +79,9 @@ Date Author Description
<th>위반일</th>
<td>
<span class="form-search-linebox">
<input type="text" data-fmt-type="day" id="crdnYmd" name="crdnYmd" class="form-control form-date w-form-date" title="위반일 선택" placeholder="날짜를 선택하세요">
<input type="text" data-fmt-type="day" id="crdnYmd" name="crdnYmd"
class="form-control form-date w-form-date" title="위반일 선택"
placeholder="날짜를 선택하세요">
<button type="button" class="bx bx-calendar bg-white"></button>
</span>
</td>
@ -284,7 +286,9 @@ Date Author Description
var fnCallbackZipSearch = (obj) => fnPopupBiz.setZipSearch(obj, document.querySelector('#frm'));
var imageEditorPopup = (flag, params) => fnPopupBiz.pagePopup(flag, params);
var callbackReloadImage = () => fnPopupBiz.downloadImg();
var callbackEnlightErpp = (data) => fnPopupBiz.callbackEnlightErpp(data)
var callbackEnlightErpp = (data) => fnPopupBiz.callbackEnlightErpp(data);
let formFields = new FimsFormFields("#frm");
let orgData;
let callPopup;
let isCtzn = false;
@ -608,7 +612,7 @@ Date Author Description
cmmBizAjax('add', {
url: fimsApiUrl.ADD_RT_REGLT
, data: $("#frmSearch").serialize()
, data: formFields.get()
})
}
,modify: () => {
@ -616,14 +620,14 @@ Date Author Description
cmmBizAjax('modify', {
url: fimsApiUrl.MODIFY_RT_REGLT
,data: $("#frmSearch").serialize()
,data: $("#frm").serialize()
});
}
,remove: () => {
$("input[name=useYn]").val('N');
cmmBizAjax('remove', {
url: fimsApiUrl.REMOVE_RT_REGLT
,data: $("#frmSearch").serialize()
,data: $("#frm").serialize()
});
}

@ -487,6 +487,42 @@ class FimsFormFields extends FormFields {
}
get() {
let obj = {};
document.querySelectorAll(this.children).forEach(input => {
let property = input.name || input.id;
let value = input.value;
if ("radio" == input.type) {
if (input.checked)
obj[property] = value;
} else {
if(input.dataset.fmtType){
const fmtType = input.dataset.fmtType;
switch (fmtType) {
case 'dt' :
value = value.replaceAll("-","").replaceAll(":","").replaceAll(" ","");
break;
case 'day' :
value = value.replaceAll("-","");
break;
case 'time' :
value = value.replaceAll(":","");
break;
case 'number' :
value = value.replaceAll(",","");
break;
default:
break;
}
}
obj[property] = value;
}
});
return obj;
}
}
/**

Loading…
Cancel
Save