fix : 단속 등록 샘플 추가

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

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

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