Esempio n. 1
0
 /// <summary>
 /// 查询学生信息
 /// </summary>
 /// <param name="username">学生学号</param>
 /// <returns>除密码、IP、注册时间外的所有学生信息</returns>
 public static Student query(string username)
 {
     return(DAL_Student.queryStudent(username));
 }
Esempio n. 2
0
 /// <summary>
 /// 查询所有学生信息。
 /// </summary>
 /// <returns>DataSet</returns>
 public static DataSet qeruyAllStudent()
 {
     return(DAL_Student.queryAllStudent());
 }
Esempio n. 3
0
        /// <summary>
        /// 修改学生信息,仅修改传入内容
        /// </summary>
        /// <param name="username">用户名</param>
        /// <param name="sex">性别</param>
        /// <param name="grade">年级</param>
        /// <param name="age">年龄</param>
        /// <param name="major">专业</param>
        /// <param name="ID">索引</param>
        /// <returns></returns>
        public static bool modify(string username, string sex, string grade, string age, string major, int ID)
        {
            Student student = new Student(username, "", sex, grade, age, major, "", "");

            return(DAL_Student.modifyStudent(student));
        }
Esempio n. 4
0
 /// <summary>
 /// 修改学生信息,密码为空则不修改密码,不允许修改注册时间和注册IP
 /// </summary>
 /// <param name="student">修改后的学生信息</param>
 /// <returns></returns>
 public static bool modify(Student student)
 {
     return(DAL_Student.modifyStudent(student));
 }
Esempio n. 5
0
 /// <summary>
 /// 学生登录
 /// </summary>
 /// <param name="username">用户名</param>
 /// <param name="password">密码</param>
 /// <returns></returns>
 public static bool login(string username, string password)
 {
     return(DAL_Student.studentExits(username, password));
 }
Esempio n. 6
0
 public static bool deleteByID(int ID)
 {
     return(DAL_Student.deleteStudentByID(ID.ToString()));
 }
Esempio n. 7
0
 /// <summary>
 /// 学生注册
 /// </summary>
 /// <param name="student">要注册的学生信息</param>
 /// <returns></returns>
 public static bool register(Student student)
 {
     return(DAL_Student.insertStudent(student));
 }