/// <summary> /// 验证用户是否能登录成功 /// </summary> /// <param name="UserName"></param> /// <param name="Pwd"></param> /// <param name="users"></param> /// <returns></returns> public static bool GetUsersLogin(string SutCode, string Pwd, out Sudents sudents) { sudents = SudentsDAL.GetIdBySutCode(SutCode); if (sudents != null && sudents.Pwd == Pwd) { return(true); } return(false); }
//添加验证是否存在 public static bool IsTrue(string SutCode) { Sudents sud = SudentsDAL.GetIdBySutCode(SutCode); if (sud != null && sud.SutId != 0) { return(true); } return(false); }