Exemple #1
0
 internal static void ListStudentCourse()//查询已选课程
 {
     TermCourse[] studentcourse = termCourses.StudentCourses(user.ID);
     Console.WriteLine("");
     Console.WriteLine("************************");
     if (studentcourse.Length == 0)
     {
         Console.WriteLine("无!!!");
     }
     for (int i = 0; i < studentcourse.Length; i++)
     {
         Console.WriteLine("学期课程ID:{0}  课程名称:{1}  教师:{2}", studentcourse[i].ID, TermCourseBLL.QueryCName(studentcourse[i].TCourseID), TermCourseBLL.QueryTName(studentcourse[i].TTeacherID));
     }
     Console.WriteLine("************************");
     Console.WriteLine();
 }
 internal static void ListTeacherCourse()//查询在授学期课程
 {
     TermCourse[] termcourse = termCourses.TeachCourses(user.ID);
     Console.WriteLine();
     Console.WriteLine("************************");
     if (termcourse.Length == 0)
     {
         Console.WriteLine("无");
     }
     for (int i = 0; i < termcourse.Length; i++)
     {
         Console.WriteLine("学期课程ID:{0}  课程名称:{1}  教师:{2}", termcourse[i].ID, TermCourseBLL.QueryCName(termcourse[i].TCourseID), TermCourseBLL.QueryTName(termcourse[i].TTeacherID));
     }
     Console.WriteLine();
     Console.WriteLine("************************");
 }