示例#1
0
 /// <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);
 }
示例#2
0
        //添加验证是否存在
        public static bool IsTrue(string SutCode)
        {
            Sudents sud = SudentsDAL.GetIdBySutCode(SutCode);

            if (sud != null && sud.SutId != 0)
            {
                return(true);
            }
            return(false);
        }
示例#3
0
 /// <summary>
 /// 根据主键查询实体
 ///</summary>
 public static Sudents GetIdBySudents(int Id)
 {
     return(SudentsDAL.GetIdBySudents(Id));
 }
示例#4
0
 /// <summary>
 /// 查询全部
 ///</summary>
 public static List <Sudents> AllData(string WhereSrc, string PXzd, string PXType)
 {
     return(SudentsDAL.AllData(WhereSrc, PXzd, PXType));
 }
示例#5
0
 /// <summary>
 /// 查询全部
 /// </summary>
 public static DataTable AllDataTable(string WhereSrc, string PXzd, string PXType)
 {
     return(SudentsDAL.AllDataTable(WhereSrc, PXzd, PXType));
 }
示例#6
0
 /// <summary>
 /// 查询条数
 ///</summary>
 public static int CountNumber(string NewWHere)
 {
     return(SudentsDAL.CountNumber(NewWHere));
 }
示例#7
0
 /// <summary>
 /// 修改
 ///</summary>
 public static int UpdateSudents(Sudents SudentsModel)
 {
     return(SudentsDAL.UpdateSudents(SudentsModel));
 }
示例#8
0
 /// <summary>
 /// 分页
 ///</summary>
 public static List <Sudents> PageSelectSudents(int pageSize, int pageIndex, string WhereSrc, string PXzd, string PXType)
 {
     pageIndex = pageIndex - 1;
     return(SudentsDAL.PageSelectSudents(pageSize, pageIndex, WhereSrc, PXzd, PXType));
 }
示例#9
0
 /// <summary>
 /// 根据主键删除
 ///</summary>
 public static int DeleteSudents(int Id)
 {
     return(SudentsDAL.DeleteSudents(Id));
 }
示例#10
0
 /// <summary>
 /// 添加
 ///</summary>
 public static int AddSudents(Sudents SudentsModel)
 {
     return(SudentsDAL.AddSudents(SudentsModel));
 }