Exemplo n.º 1
0
        private void tnoLoadTeachCourseList(string tname)//指定教师开课信息表数据源
        {
            TeacherBLL       miBll = new TeacherBLL();
            TeacherCourseBLL mibll = new TeacherCourseBLL();

            dataGridView4.DataSource = mibll.tnoGetList(miBll.tnameGetTno(tname));
        }
Exemplo n.º 2
0
 private void Weekday_Period_LoadList()//通过星期和时间段的选择,跟新表的数据源
 {
     if (xq.Text != "" && jysj.Text != "")
     {
         TeacherCourseBLL   teacherCourseBLL   = new TeacherCourseBLL();
         BorrowClassRoomBLL borrowClassRoomBLL = new BorrowClassRoomBLL();
         ClassRoomBLL       classRoomBLL       = new ClassRoomBLL();
         List <string>      clnolist           = borrowClassRoomBLL.Weekday_Period_GetClnoList(xq.Text, jysj.Text);
         foreach (string clno in teacherCourseBLL.Weekday_Period_GetClnoList(xq.Text, jysj.Text))
         {
             clnolist.Add(clno);
         }
         dataGridView3.DataSource = classRoomBLL.GetListExptClno(clnolist);
         jyjs.DataSource          = classRoomBLL.GetClnoListExptClno(clnolist);
     }
 }