Beispiel #1
0
 public LoginLogBLL() : base()
 {
     base.Init(this.GetType().FullName, System.Reflection.Assembly.GetExecutingAssembly().GetName().Name);
     baseDal.OnOperationLog += new OperationLogEventHandler(Next.Admin.BLL.OperationLogBLL.OnOperationLog);//如果需要记录操作日志,则实现这个事件
     this.loginLogDAL        = (ILoginLogDAL)base.baseDal;
 }
Beispiel #2
0
        /// <summary>
        /// 获取上一次(非刚刚登录)的登录日志
        /// </summary>
        /// <param name="userId">登录用户ID</param>
        /// <returns></returns>
        public LoginLog GetLastLoginInfo(string userId)
        {
            ILoginLogDAL loginDal = baseDal as ILoginLogDAL;

            return(loginDal.GetLastLoginInfo(userId));
        }