Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsUserLogin)
            {
                // 未登录
                this.TopWindowLocation(WebCommon.GetLoginPageUrl());
                return;
            }

            this.a_reloginPageUrl.HRef        = WebCommon.GetReloginPageUrl();
            this.a_modifyPasswordPageUrl.HRef = WebCommon.GetModifyPasswordPageUrl();
            this.lbl_zsmc.InnerText           = this.UserInfo.UserName;
        }
Esempio n. 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                //string parentID = this.Request.QueryString["parentID"];

                if (!this.IsUserLogin)
                {
                    // 未登录
                    this.TopWindowLocation(WebCommon.GetLoginPageUrl());
                    return;
                }

                if (!this.UserInfo.HasAttribute(系统管理员特性编号))
                {
                    this.ResponseRedirect(UserInfo.UserName + "(" + UserInfo.LoginName + ")" + ",您不是系统管理员,没有 管理中心 权限!", "top");
                    return;
                }
            }
        }