private void button1_Click(object sender, EventArgs e)
        {
            List <TeacherKebiao> kbs = GetGerenKebiao.GetTeacherKebiao(this.teacher.JobNumber);

            this.dataGridView.DataSource = kbs;
            //string[] bt = { "课程名称", "课程号码", "教室号", "上课时间", "老师名字" };
            dataGridView.Columns[0].HeaderCell.Value = "课程名称";
            dataGridView.Columns[1].HeaderCell.Value = "课程编号";
            dataGridView.Columns[2].HeaderCell.Value = "教室号码";
            dataGridView.Columns[3].HeaderCell.Value = "上课时间";
        }
예제 #2
0
        private void buttonGerenCourseInfo_Click(object sender, EventArgs e)
        {
            List <StuKebiao> kbs = GetGerenKebiao.GetStuKebiao(this.student.stuClass);

            this.dataGridView.DataSource = kbs;
            //string[] bt = { "课程名称", "课程号码", "教室号", "上课时间", "老师名字" };
            dataGridView.Columns[0].HeaderCell.Value = "课程名称";
            dataGridView.Columns[1].HeaderCell.Value = "课程编号";
            dataGridView.Columns[2].HeaderCell.Value = "教室号码";
            dataGridView.Columns[3].HeaderCell.Value = "上课时间";
            dataGridView.Columns[4].HeaderCell.Value = "任课老师";
        }
예제 #3
0
        private void buttonGerenCourseInfo_Click(object sender, EventArgs e)
        {
            List <StuKebiao> kbs = GetGerenKebiao.GetStuKebiao(this.student.StudentID);

            this.dataGridView.DataSource = kbs;
        }