protected void Page_Load(object sender, EventArgs e) { ((SiteSystemMaster)Master).InitMenu(); ((SiteSystemMaster)Master).li1.Attributes.Add("class", "hover ccc"); ((SiteSystemMaster)Master).b_hmenu1.Style.Clear(); ((SiteSystemMaster)Master).b_hmenu2.Style.Add("display", "none"); ((SiteSystemMaster)Master).b_hmenu3.Style.Add("display", "none"); ((SiteSystemMaster)Master).s_menu1_1.Style.Add("COLOR", "#147ab8"); ((SiteSystemMaster)Master).s_menu1_1.Style.Add("TEXT-DECORATION", "none"); /*判断是否是管理员身份*/ if (Session["username"] == null) { Page.ClientScript.RegisterStartupScript(this.GetType(), "PopupScript", "<script>alert('请先登录系统!');top.location.href='../System/Login.aspx';</script>"); return; } else { if (!IsPostBack) { string users_id = Request.QueryString["users_id"]; if (!string.IsNullOrEmpty(users_id)) { EnterpriseUserBLL userBLL = new EnterpriseUserBLL(); EnterpriseUser usr = userBLL.GetModel(Int32.Parse(users_id)); if (usr != null) { lblEnterpriseName.Text = usr.Username; lblEnterpriseFull.Text = usr.Users_incname; } } txtbActivityenterpriseuid.Text = users_id; bind(); btnDelete.Attributes.Add("onclick", "return confirm('确实要删除这个项目吗?');"); } } }
protected void Page_Load(object sender, EventArgs e) { ((SiteEnterpriseMaster)Master).InitMenu(); ((SiteEnterpriseMaster)Master).li1.Attributes.Add("class", "hover ccc"); ((SiteEnterpriseMaster)Master).b_hmenu1.Style.Clear(); ((SiteEnterpriseMaster)Master).b_hmenu2.Style.Add("display", "none"); ((SiteEnterpriseMaster)Master).b_hmenu3.Style.Add("display", "none"); ((SiteEnterpriseMaster)Master).b_hmenu4.Style.Add("display", "none"); ((SiteEnterpriseMaster)Master).s_menu1_1.Style.Add("COLOR", "#147ab8"); ((SiteEnterpriseMaster)Master).s_menu1_1.Style.Add("TEXT-DECORATION", "none"); if (Request.QueryString["UID"] == null)//普通企业用户输入用户名和密码登录 { /*判断是否是企业用户身份*/ if (Session["username"] == null) { Page.ClientScript.RegisterStartupScript(this.GetType(), "PopupScript", "<script>alert('请先登录系统!');top.location.href='../Enterprise/EnterpriseLogin.aspx';</script>"); return; } else { username = Session["username"].ToString(); bind(); } } else//从系统端直接跳转过来2012.3.13 { string uID = Request.QueryString["UID"].ToString(); Session["EuserID"] = uID; EnterpriseUserBLL euserbll = new EnterpriseUserBLL(); username = euserbll.GetModel(Int32.Parse(uID)).Username; Session["username"] = username; bind(); } }