//节点点击事件 private void nodeMenu_NodeClick(object sender, EventArgs e) { try { DevComponents.AdvTree.TreeNodeMouseEventArgs arg = (DevComponents.AdvTree.TreeNodeMouseEventArgs)e; Global.Params.BoxID = int.Parse(arg.Node.Parent.Name.ToString()); Global.Params.BoxIP = arg.Node.Parent.Tag.ToString(); if (arg.Node.Name.ToString() == Global.menuType.基本配置.ToString() || arg.Node.Name.ToString() == Global.menuType.用户号码.ToString() || arg.Node.Name.ToString() == Global.menuType.出局通话配置.ToString() || arg.Node.Name.ToString() == Global.menuType.基站管理.ToString() || arg.Node.Name.ToString() == Global.menuType.短信配置.ToString()) { if (LoadBox(Global.Params.BoxIP)) { //Global.Params.BoxID = int.Parse(arg.Node.Name.ToString()); //Global.Params.BoxIP = arg.Node.Tag.ToString(); if (arg.Node.Name.ToString() == Global.menuType.基本配置.ToString()) { UI.frmDispatchNumber frm = new UI.frmDispatchNumber(); LoadControl(frm); return; } else if (arg.Node.Name.ToString() == Global.menuType.用户号码.ToString()) { SystemUserManage frm = new SystemUserManage(); LoadControl(frm); return; } else if (arg.Node.Name.ToString() == Global.menuType.出局通话配置.ToString()) { UI.frmSIPPRI frm = new UI.frmSIPPRI(); LoadControl(frm); return; } else if (arg.Node.Name.ToString() == Global.menuType3G.基站管理.ToString()) { frmFapList frm = new frmFapList(); frm.LoadData(); LoadControl(frm); } else if (arg.Node.Name.ToString() == Global.menuType.短信配置.ToString()) { frmSMSConfig frm = new frmSMSConfig(); //frm.LoadData(); LoadControl(frm); } } else { CommControl.MessageBoxEx.MessageBoxEx.Show("登录站点[" + Global.Params.BoxIP + "]失败!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } } } catch (Exception ex) { CommControl.Tools.WriteLog.AppendErrorLog("Main:" + ex.Message + ex.StackTrace); } }
//3G子节点点击事件 void node3G_NodeClick(object sender, EventArgs e) { DevComponents.AdvTree.TreeNodeMouseEventArgs arg = (DevComponents.AdvTree.TreeNodeMouseEventArgs)e; Global.Params.BoxID = int.Parse(arg.Node.Parent.Parent.Name.ToString()); Global.Params.BoxIP = arg.Node.Parent.Parent.Tag.ToString(); if (LoadBox(Global.Params.BoxIP)) { if (arg.Node.Name.ToString() == Global.menuType3G.基本配置.ToString()) { frm3GBase frm = new frm3GBase(); LoadControl(frm); } else if (arg.Node.Name.ToString() == Global.menuType3G.分组网关管理.ToString()) { frmPDSList frm = new frmPDSList(); LoadControl(frm); } else if (arg.Node.Name.ToString() == Global.menuType3G.静态路由管理.ToString()) { frmStaticRouteList frm = new frmStaticRouteList(); LoadControl(frm); } else if (arg.Node.Name.ToString() == Global.menuType3G.基站管理.ToString()) { frmFapList frm = new frmFapList(); LoadControl(frm); } } else { CommControl.MessageBoxEx.MessageBoxEx.Show("登录站点[" + Global.Params.BoxIP + "]失败!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } }