fix : 맵핑 데이터 key 값 변경

dev
Leeyh1121 5 months ago
parent 0d4d4fa535
commit 6bdbb8972b

@ -158,7 +158,7 @@
<tbody id="tbody--${pageName}Mapping">
</tbody>
<template id="${infoPrefix}Row--${pageName}Mapping">
<tr data-key="{orgUsrRptIdNo}">
<tr data-key="{usrRptIdNo}">
<td class="text-center">
<input type="radio" class="form-check-input" name="maapingCheck" value="{dscdmngId}" data-value="{orgUsrRptIdNo}" alt="맵핑체크" onchange="{onchange}">
</td>
@ -396,7 +396,7 @@
$P.control.save = () => {
// FIXME: 확인
//alert("저장 row : "+JSON.stringify($P.mappingControl.dataset.getCurrent()));
if(!$P.mappingControl.dataset.getCurrent().orgUsrRptIdNo){
if(!$P.mappingControl.dataset.getCurrent().usrRptIdNo){
dialog.alert("선택된 NIMS 폐기 보고 데이타가 없습니다");
return false;
}
@ -458,7 +458,7 @@
document.getElementById("${infoPrefix}Row--${pageName}Mapping").innerHTML, <%-- from template#${infoPrefix}Row --%>
(str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].mappingControl.setCurrent('" + dataItem.getValue("usrRptIdNo") + "');")
.replace(/{onchange}/gi, "pageObject['${pageName}'].radioClick('" + dataItem.getValue("orgUsrRptIdNo") + "');")
.replace(/{onchange}/gi, "pageObject['${pageName}'].radioClick('" + dataItem.getValue("usrRptIdNo") + "');")
);
$("#tbody--${pageName}Mapping").html(trs.join());

Loading…
Cancel
Save