public void QueryCourse(string filter, int flag)
 {
     if (flag == 2 || flag == 4)
     {
         Console.WriteLine("无权限");
         return;
     }
     MysqlClient.Query(flag, filter);
 }
 public void AddCourse(User user, Course course)
 {
     MysqlClient.AddRowIncource(user.Id, course);
 }
 public void AlterCourse(Course course, int type)
 {
     MysqlClient.AlterRowIncource(course, type);
 }
 public void DeleteCourse(User user, Course course)
 {
     MysqlClient.DeleteRowIncource(course.id);
 }
Example #5
0
        public void ApplyForRepre(Course course)
        {
            UserOp teacherOp = new TeacherDec(MysqlClient.getTeacher(course.getTeacher()));

            ((TeacherDec)teacherOp).SetRepre(course, (Student)this.user);
        }
 public void QueryCourse(string filter, int flag)
 {
     MysqlClient.Query(flag, filter);
 }