diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp
index 280429dc..0f00463c 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp
@@ -89,9 +89,7 @@
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 ee93ab53..b8d5248a 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
@@ -44,20 +44,14 @@
-
-
-
-
-
-
-
+
+
+
+
@@ -227,7 +218,9 @@ $(document).ready(function(){
return {
taskSeCd: 'DPV'
- ,[form.find("[name='schOpt']").val()]: form.find("[name='schWord']").val()
+ ,vhrno : form.find("[name='vhrno']").val()
+ ,by : form.find("[name='by']").val()
+ ,term : form.find("[name='term']").val()
,schDateOpt: form.find("[name='schDateOpt']").val()
,schDateFrom: form.find("[name='schDateFrom']").val()
,schDateTo: form.find("[name='schDateTo']").val()
@@ -261,6 +254,8 @@ $(document).ready(function(){
{ header: 'interfaceSeqN', name: 'INTERFACE_SEQN', hidden: true }
];
thisPO.gridOptions = {
+ by : 'by--${pageName}',
+ byOutput : 'byOutput--${pageName}',
theadTr: 'crdnTheadTr--${pageName}',
rowHeader: 'No.',
trDataKey: 'CRDN_ID',
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 0b988841..9079545a 100644
--- a/src/main/webapp/resources/js/fims/framework/cmm/initGrid.js
+++ b/src/main/webapp/resources/js/fims/framework/cmm/initGrid.js
@@ -29,6 +29,7 @@ var initGrid = (gridOptions) => {
gridColumns.forEach(function(item, idx, arr){
var gHeader = item.header;
+ var gName = item.name;
var gWidth = item.width;
if(!gWidth){
@@ -40,6 +41,14 @@ var initGrid = (gridOptions) => {
gClass = "";
}
+ var titleClickEvent = ``;
+
+ var by = gridOptions.by;
+ var byOutput = gridOptions.byOutput;
+ if(by && byOutput){
+ titleClickEvent += `searchFromGridTitle('${by}','${byOutput}','${gName}','${gHeader}');`;
+ }
+
var gHidden = item.hidden;
if(!gHidden){
gHidden = "";
@@ -53,6 +62,7 @@ var initGrid = (gridOptions) => {
tabindex="0" rowspan="1" colspan="1" class="sorting ${gClass}"
style="width: ${gWidth};"
${gHidden}
+ onclick="${titleClickEvent}"
>${gHeader}
`;
@@ -61,7 +71,7 @@ var initGrid = (gridOptions) => {
ondblclick="${gridOptions.dblClickEvent}"
class="${gClass}"
${gHidden}
- >{${item.name}}
+ >{${gName}}
`;
});
@@ -78,4 +88,9 @@ var initGrid = (gridOptions) => {
tableBodyTemplate.notFound = notFound;
return tableBodyTemplate;
-};
\ No newline at end of file
+};
+
+function searchFromGridTitle(byElement, byOutputElement, byValue, byOutputValue){
+ document.getElementById(byElement).value = byValue;
+ document.getElementById(byOutputElement).value = byOutputValue + " 검색";
+}
\ No newline at end of file