protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { PublicMethod.CheckSession(); //Response.Write(ZWL.Common.PublicMethod.GetSessionValue("QuanXian")); //显示自定义导航快捷菜单 // this.Label3.Text = ZWL.DBUtility.DbHelperSQL.GetSHSL("select top 1 DaoHangList from ERPUser where UserName='******'"); //绑定所有s的菜单项目 BindTree(ListTreeView.Nodes, 0); //设置有权限的项才显示 SetQuanXian(); if (Request.Params["method"] != null) { IndexInfo(this.ListTreeView.Nodes); } if (Request.Params["node"] != null) { GetChild(Request.Params["node"]); } //显示授权信息文字 //this.Label1.Text = ZWL.Common.DEncrypt.DESEncrypt.Decrypt(ZWL.DBUtility.DbHelperSQL.GetSHSL("select top 1 DanWeiStr from ERPSerils"), "www.cnsoftweb.com-13696432490"); //try //{ // this.ListTreeView.Nodes[0].Expanded = true; //} //catch //{ } } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { PublicMethod.CheckSession(); //Response.Write(ZWL.Common.PublicMethod.GetSessionValue("QuanXian")); QuanXian = ZWL.Common.PublicMethod.GetSessionValue("QuanXian"); //设置有权限的项才显示 } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { PublicMethod.CheckSession(); //绑定所有s的菜单项目 BindTree(ListTreeView.Nodes, 0); //设置有权限的项才显示 SetQuanXian(); if (Request.Params["method"] != null) { IndexInfo(this.ListTreeView.Nodes); } if (Request.Params["node"] != null) { GetChild(Request.Params["node"]); } } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { PublicMethod.CheckSession(); //Response.Write(ZWL.Common.PublicMethod.GetSessionValue("QuanXian")); //设置有权限的项才显示 //设置有权限的项才显示 SetQuanXian(); string param = Request.Params["param"]; if (string.IsNullOrEmpty(param)) { Render(); } else if (param.Contains("M")) { menus = GetChild2(param); } else { menus = GetChild1(param); } } }