protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { if (!string.IsNullOrEmpty(Request.QueryString["operid"])) { operid = Request.QueryString["operid"].ToString(); if (!operid.Contains(',')) { strOperatePostions = operbll.GetPosi(Convert.ToInt32(operid)); } } if (CookieManager.GetCookieValue("orgID") != null) { ViewState["SEQ"] = position.Getresult("orgSEQ", "SYS_Organization", "OrgCode=" + CookieManager.GetCookieValue("orgID").ToString()); // DataTree(CookieManager.GetCookieValue("orgID").ToString()); DBind(CookieManager.GetCookieValue("orgID").ToString(), "", ""); } else { // DataTree("0"); } } //Response.Write(operid.ToString()); }
//绑定数据 private void Databing() { position.BindTreeview(tvmeun, "SYS_MENU", "menuName", "menuID", "parentsID", "0", "1=1"); try { lblName.Text = position.Getresult("orgName", "SYS_Organization", " orgID=(select orgID from SYS_Position where PositonID=" + Request.QueryString["PositonID"] + ")"); lblName.Text += "-->" + position.Getresult("PositionName", "SYS_Position", " PositonID=" + Request.QueryString["PositonID"] + "") + "-->"; } catch { lblName.Text = ""; } }