From 717fa2550f0c29553da0b8696aec7780171a6f21 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Tue, 18 Jul 2023 13:20:15 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8F=99=EC=A0=81=20=EC=A1=B0=ED=9A=8C=20?= =?UTF-8?q?=ED=95=A8=EC=88=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/fims/crdn/crdn06030-main.jsp | 16 ++++++++-------- .../WEB-INF/jsp/fims/crdn/crdn06040-main.jsp | 16 ++++++++-------- .../resources/js/fims/framework/cmm/initGrid.js | 17 ++++++++--------- 3 files changed, 24 insertions(+), 25 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06030-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06030-main.jsp index 42972761..08a6af82 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06030-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06030-main.jsp @@ -57,16 +57,16 @@ - + - - - - - + + + + + - - + + diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06040-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06040-main.jsp index 279cc86b..05726420 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06040-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06040-main.jsp @@ -70,16 +70,16 @@ - + - - - - - + + + + + - - + + diff --git a/src/main/webapp/resources/js/fims/framework/cmm/initGrid.js b/src/main/webapp/resources/js/fims/framework/cmm/initGrid.js index 6d80ff10..94ba9742 100644 --- a/src/main/webapp/resources/js/fims/framework/cmm/initGrid.js +++ b/src/main/webapp/resources/js/fims/framework/cmm/initGrid.js @@ -1,13 +1,12 @@ -function searchFromGridTitle(byElement, byOutputElement, byValue, byOutputValue, advancedOptionIndex){ - - if(advancedOptionIndex > 0){ - document.getElementById(byElement).value = "advancedOption" + advancedOptionIndex; - } else { - document.getElementById(byElement).value = snakeToCamel(byValue); - } - - document.getElementById(byOutputElement).value = byOutputValue + " 검색"; +function searchFromGridTitle(byValue, byOutputValue){ + var trDataset = event.target.parentElement.dataset; + + var byElementId = trDataset.by; + var byOutputElementId = trDataset.byOutput; + + document.getElementById(byElementId).value = snakeToCamel(byValue); + document.getElementById(byOutputElementId).value = byOutputValue + " 검색"; }