Exemplo n.º 1
0
        /// <summary>
        /// 获取用户的详细信息

        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public static User User_Get(User model)
        {
            try
            {
                IES.G2S.JW.BLL.UserBLL userbll = new IES.G2S.JW.BLL.UserBLL();
                return(userbll.User_Get(model));
            }
            catch (Exception e)
            {
                return(null);
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// 用户登录
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public static bool Login(User model)
 {
     try
     {
         IES.G2S.JW.BLL.UserBLL userbll = new IES.G2S.JW.BLL.UserBLL();
         model = userbll.User_Get(model);
         IESCookie.ADDCookie(model.UserID.ToString());
         return(true);
     }
     catch (Exception e)
     {
         return(false);
     }
 }
Exemplo n.º 3
0
 public static bool Pwd_Validation(string Pwd)
 {
     IES.JW.Model.User user = new IES.JW.Model.User {
         UserID = UserService.CurrentUser.UserID
     };
     IES.G2S.JW.BLL.UserBLL userbll = new IES.G2S.JW.BLL.UserBLL();
     IES.JW.Model.User      _user   = userbll.UserTS_Get(user);
     Pwd = Hash.GetMD5(Pwd);
     if (_user.Pwd == Pwd)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Exemplo n.º 4
0
        /// <summary>
        /// 获取用户的在线课程列表

        /// </summary>
        /// <param name="userid"></param>
        /// <returns></returns>
        public static List <OC> User_OC_List(IES.JW.Model.User model)
        {
            IES.G2S.JW.BLL.UserBLL userbll = new IES.G2S.JW.BLL.UserBLL();

            return(userbll.User_OC_List(model));
        }
Exemplo n.º 5
0
 public static bool Pwd_Validation(string Pwd)
 {
     IES.JW.Model.User user = new IES.JW.Model.User { UserID = UserService.CurrentUser.UserID };
     IES.G2S.JW.BLL.UserBLL userbll = new IES.G2S.JW.BLL.UserBLL();
     IES.JW.Model.User _user = userbll.UserTS_Get(user);
     Pwd = Hash.GetMD5(Pwd);
     if (_user.Pwd == Pwd)
     {
         return true;
     }
     else
     {
         return false;
     }
 }