From 73ff73779d3f7ddee299cdbe26f625f9f18d6234 Mon Sep 17 00:00:00 2001 From: leebj Date: Tue, 27 Aug 2024 10:30:13 +0900 Subject: [PATCH] =?UTF-8?q?DatasetControl=20keyMapper=20=EC=84=A4=EC=A0=95?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/WEB-INF/jsp/fims/stat/stat-main.jsp | 8 ++++---- src/main/webapp/WEB-INF/jsp/fims/stat/stat01011-info.jsp | 2 +- src/main/webapp/WEB-INF/jsp/fims/stat/stat01021-info.jsp | 2 +- src/main/webapp/WEB-INF/jsp/fims/stat/stat01031-info.jsp | 2 +- src/main/webapp/WEB-INF/jsp/fims/stat/stat01041-info.jsp | 2 +- src/main/webapp/WEB-INF/jsp/fims/stat/stat01051-info.jsp | 2 +- src/main/webapp/resources/js/fims/stat/statMain.js | 5 +++-- 7 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/fims/stat/stat-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/stat/stat-main.jsp index 801346d2..f21127b7 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/stat/stat-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/stat/stat-main.jsp @@ -195,8 +195,8 @@ $(document).ready(function(){ var notFound = [""]; var found = $P.findn("detailGridTbodyTemplate").innerHTML; var replacer = (str, dataItem) => str - .replace(/{onclick}/gi, "pageObject['${pageName}'].clickDetailGrid('" + dataItem.getValue("DATA_ID") + "');") - .replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblClickDetailGrid('" + dataItem.getValue("DATA_ID") + "');"); + .replace(/{onclick}/gi, "pageObject['${pageName}'].clickDetailGrid('{DATA-INDEX}');") + .replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblClickDetailGrid('{DATA_ID}');"); var trs = empty ? notFound : DS.inStrings(found, replacer); $P.$findn("detailTbody").html(trs.join()); @@ -569,8 +569,8 @@ $(document).ready(function(){ $P.$findn("statWrapper").animate({scrollTop : offset.top}, 400); } - $P.clickDetailGrid = (key) => { - $P.$findn("detailTbody").setCurrentRow(key); + $P.clickDetailGrid = (dataIndex) => { + $P.$findn("detailTbody").setCurrentRow(dataIndex); } $P.dblClickDetailGrid = (key) => { diff --git a/src/main/webapp/WEB-INF/jsp/fims/stat/stat01011-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/stat/stat01011-info.jsp index 556407fb..4adad503 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/stat/stat01011-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/stat/stat01011-info.jsp @@ -15,7 +15,7 @@