//初始化 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(); } }
/// <summary> /// 得到当前登录的用户账号的用户组(表Account中的UserGroupCode) /// </summary> /// <returns></returns> protected string GetLoginUserGroupCode() { return(LoginInfoHelper.GetLoginAccount(Session, HttpContext.Current.Response).UserGroupCode); }
/// <summary> /// 得到当前登录的用户账号的主键(表Account中的主键) /// </summary> /// <returns></returns> protected string GetLoginAccountId() { return(LoginInfoHelper.GetLoginAccountId(Session, HttpContext.Current.Response)); }