fix: 신청서 접수 화면 키값 DSCDMNG_ID 로 설정

dev
kjh 5 months ago
parent a24cd0692c
commit afe62566ba

@ -28,6 +28,8 @@ public class DsuseMgtReceiptServiceBean extends AbstractServiceBean implements D
@Override
public List<DataObject> getdsuseMgtReceiptList(DsuseMgtReceiptQuery query){
query.setOrderBy("DSCDMNG_ID DESC");
return dsuseMgtReceiptMapper.selectDsuseMgtReceiptcList(query);
}

@ -401,7 +401,7 @@
}
let fileArr = [];
$("#tbody--productList").find("input[type='file'][name='dsusePrdImgFiles']").each(() => {
$("#tbody--productList").find("input[type='file'][name='dsusePrdImgFiles']").each(function() {
fileArr.push(this.files[0]);
});

@ -100,7 +100,7 @@
<tbody id="tbody--${pageName}">
</tbody>
<template id="${infoPrefix}Row--${pageName}">
<tr data-key="{USR_RPT_ID_NO}">
<tr data-key="{DSCDMNG_ID}">
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{HDR_DE}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DSCDMNG_ID}</td>
@ -204,7 +204,7 @@
}
, prefix: "dsuseMgtReceipt"
, prefixName: "신청서접수"
, keymapper: info => info ? info.USR_RPT_ID_NO : ""
, keymapper: info => info ? info.DSCDMNG_ID : ""
, dataGetter: obj => obj.${infoPrefix}List
, appendData: true
, infoSize: "xl"
@ -264,10 +264,9 @@
$P.control.onCurrentChange = (item) => {
if (!item) return;
let key = item.data.USR_RPT_ID_NO;
let key = item.data.DSCDMNG_ID;
$("#tbody--${pageName}").setCurrentRow(key);
var dscdmngId = item.data.DSCDMNG_ID;
$P.detailControl.query = { "schDscdmngId" : dscdmngId};
$P.detailControl.query = { "schDscdmngId" : key};
$P.detailControl.load(1);
};
@ -321,8 +320,8 @@
//
let replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].control.setCurrent('" + dataItem.getValue("USR_RPT_ID_NO") + "');");
// .replace(/{ondblclick}/gi, "pageObject['${pageName}'].getTotalInfo('" + dataItem.getValue("USR_RPT_ID_NO") + "');");
.replace(/{onclick}/gi, "pageObject['${pageName}'].control.setCurrent('" + dataItem.getValue("DSCDMNG_ID") + "');");
// .replace(/{ondblclick}/gi, "pageObject['${pageName}'].getTotalInfo('" + dataItem.getValue("DSCDMNG_ID") + "');");
let trs = empty ? [document.getElementById("${infoPrefix}NotFound--${pageName}").content.outerHTML]
: ${infoPrefix}List.inStrings(foundTr.outerHTML, replacer);

Loading…
Cancel
Save