Beispiel #1
0
 //初始化
 protected override void OnInit(EventArgs e)
 {
     //判断Session过期
     LoginInfoHelper.ValidateLoginInfo(Session, Response);
     base.OnInit(e);
     FAction = Request["FAction"];
     if (string.IsNullOrEmpty(FAction))
     {
         FAction = Request["Action"];
     }
     if (!string.IsNullOrEmpty(FAction))
     {
         FAction = FAction.ToLower();
     }
 }
Beispiel #2
0
 /// <summary>
 /// 得到当前登录的用户账号的用户组(表Account中的UserGroupCode)
 /// </summary>
 /// <returns></returns>
 protected string GetLoginUserGroupCode()
 {
     return(LoginInfoHelper.GetLoginAccount(Session, HttpContext.Current.Response).UserGroupCode);
 }
Beispiel #3
0
        /// <summary>
        /// 得到当前登录的用户账号的主键(表Account中的主键)

        /// </summary>
        /// <returns></returns>
        protected string GetLoginAccountId()
        {
            return(LoginInfoHelper.GetLoginAccountId(Session, HttpContext.Current.Response));
        }