Browse Source

메뉴관리 수정

SBK 2 years ago
parent
commit
b9c4bb5fa9
1 changed files with 57 additions and 55 deletions
  1. 57 55
      src/main/webapp/ux/com/comMenuMng.xml

+ 57 - 55
src/main/webapp/ux/com/comMenuMng.xml

@@ -248,6 +248,40 @@
             scwin.grdSearch();
             scwin.grdSearch();
         }
         }
 	};
 	};
+	
+	/***************************************************************************
+    * 함 수 명 : scwin.menuLvl_onchange
+    * 기   능 : 상위 메뉴 레벨 변경 처리시
+    ***************************************************************************/
+   scwin.menuLvl_onchange = function() {
+        if(menuLvl.getValue() == "1"){
+            psprMenuId.setValue("");
+            psprMenuNm.setValue("");
+        }
+   };
+
+   /***************************************************************************
+    * 함 수 명 : scwin.menuTree_onclick
+    * 기 능 : 메뉴트리 검색시
+    ***************************************************************************/
+   scwin.menuTree_onclick = function() {
+        dataList2.removeAll();
+        var menuId = menuTree.getSelectedValue();
+        var paramSysCd = systemCode.getValue();
+        ajaxLib.ajax("com/com/selectComMenuMng", {
+            method: "POST",
+            requestData : {
+            	cmpnCd : scwin.cmpnCd,
+                menuId : menuId,
+                sysCd : paramSysCd
+            },
+            processMsg: "",
+            callback: function(result, e) {
+                dataList2.setJSON(result);
+                scwin.showData(1);
+            }
+        });
+   };
 
 
     /**************************************************************************
     /**************************************************************************
      * [4] Callback
      * [4] Callback
@@ -389,39 +423,6 @@
         return resultmsg;
         return resultmsg;
     };
     };
 
 
-   /***************************************************************************
-    * 함 수 명 : scwin.menuLvl_onchange
-    * 기   능 : 상위 메뉴 레벨 변경 처리시
-    ***************************************************************************/
-   scwin.menuLvl_onchange = function() {
-        if(menuLvl.getValue() == "1"){
-            psprMenuId.setValue("");
-            psprMenuNm.setValue("");
-        }
-   };
-
-   /***************************************************************************
-    * 함 수 명 : scwin.menuTree_onclick
-    * 기 능 : 메뉴트리 검색시
-    ***************************************************************************/
-   scwin.menuTree_onclick = function() {
-        dataList2.removeAll();
-        var menuId = menuTree.getSelectedValue();
-        var paramSysCd = systemCode.getValue();
-        ajaxLib.ajax("com/com/selectComMenuMng", {
-            method: "POST",
-            requestData : {
-                menuId : menuId,
-                sysCd : paramSysCd
-            },
-            processMsg: "",
-            callback: function(result, e) {
-                dataList2.setJSON(result);
-                scwin.showData(1);
-            }
-        });
-   };
-
     /***************************************************************************
     /***************************************************************************
      * 함 수 명 : scwin.showData
      * 함 수 명 : scwin.showData
      * 기 능 : 메뉴트리 검색시 value값 조회
      * 기 능 : 메뉴트리 검색시 value값 조회
@@ -493,28 +494,29 @@
 							<xf:group style="width:*;" tagname="col" />
 							<xf:group style="width:*;" tagname="col" />
 						</xf:group>
 						</xf:group>
 						<xf:group tagname="th" style="" class="w2tb_th">
 						<xf:group tagname="th" style="" class="w2tb_th">
-								<w2:span id="" label="회사명" style=""></w2:span>
-							</xf:group>
-							<xf:group tagname="td" style="" class="w2tb_td">
-								<xf:select1 selectedData="true" submenuSize="auto" optionOrder="false" disabled="false" id="selCmpn"
-									direction="auto" chooseOption="" displayMode="label" appearance="minimal" disabledClass="w2selectbox_disabled"
-									style="position: relative;width: 50%;height: 21px;" chooseOptionLabel="- 전체 -" ref="" allOption="" ev:onviewchange="scwin.selCmpn_onviewchange">
-									<xf:choices>
-										<xf:itemset nodeset="data:dcCmpn">
-											<xf:label ref="cmpnNm"></xf:label>
-											<xf:value ref="cmpnCd"></xf:value>
-										</xf:itemset>
-									</xf:choices>
-								</xf:select1>
-							</xf:group>
-							<xf:group class="w2tb_th" tagname="th">
-								<w2:span label="시스템" />
-							</xf:group>
-							<xf:group class="w2tb_td" tagname="td">
-								<xf:select1 allOption="false" appearance="minimal" chooseOption="false" direction="auto" disabled="false"
-									disabledClass="w2selectbox_disabled" displayMode="label" id="systemCode" optionOrder="false" selectedData="true"
-									style="position: relative;width: 20%;height: 21px;" submenuSize="auto" ev:onviewchange="scwin.sel_onviewchange" />
-							</xf:group>
+							<w2:span id="" label="회사명" style=""></w2:span>
+						</xf:group>
+						<xf:group tagname="td" style="" class="w2tb_td">
+							<xf:select1 selectedData="true" submenuSize="auto" optionOrder="false" disabled="false" id="selCmpn" direction="auto"
+								chooseOption="" displayMode="label" appearance="minimal" disabledClass="w2selectbox_disabled"
+								style="position: relative;width: 50%;height: 21px;" chooseOptionLabel="- 전체 -" ref="" allOption=""
+								ev:onviewchange="scwin.selCmpn_onviewchange">
+								<xf:choices>
+									<xf:itemset nodeset="data:dcCmpn">
+										<xf:label ref="cmpnNm"></xf:label>
+										<xf:value ref="cmpnCd"></xf:value>
+									</xf:itemset>
+								</xf:choices>
+							</xf:select1>
+						</xf:group>
+						<xf:group class="w2tb_th" tagname="th">
+							<w2:span label="시스템" />
+						</xf:group>
+						<xf:group class="w2tb_td" tagname="td">
+							<xf:select1 allOption="false" appearance="minimal" chooseOption="false" direction="auto" disabled="false"
+								disabledClass="w2selectbox_disabled" displayMode="label" id="systemCode" optionOrder="false" selectedData="true"
+								style="position: relative;width: 20%;height: 21px;" submenuSize="auto" ev:onviewchange="scwin.sel_onviewchange" />
+						</xf:group>
 					</xf:group>
 					</xf:group>
 				</xf:group>
 				</xf:group>
 			</xf:group>
 			</xf:group>