Exemplo n.º 1
0
        private void 查询教师课表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormViewTeacherSchedule fvts = new FormViewTeacherSchedule();

            fvts.MdiParent = this;
            fvts.Show();
        }
Exemplo n.º 2
0
        private void dgv_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            Lesson l;

            if (e.RowIndex < Global.LessonPerMorning)
            {
                l = morningSchedule[currentClassID][e.ColumnIndex][e.RowIndex];
            }
            else if (e.RowIndex < Global.LessonPerDay + Global.LessonPerMorning)
            {
                l = schedule[currentClassID][e.ColumnIndex][e.RowIndex - Global.LessonPerMorning];
            }
            else //if (e.RowIndex<Global.LessonPerMorning+Global.LessonPerDay+Global.LessonPerNight)
            {
                l = nightSchedule[currentClassID][e.ColumnIndex][e.RowIndex - Global.LessonPerDay - Global.LessonPerMorning];
            }
            int    teacherID   = l.TeacherID;
            string teacherName = l.TeacherName;

            if (teacherID == 0)
            {
                return;
            }
            FormViewTeacherSchedule fvts = new FormViewTeacherSchedule(teacherID, teacherName);

            fvts.ShowDialog();
        }
Exemplo n.º 3
0
 private void dgv_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     Lesson l;
     if (e.RowIndex < Global.LessonPerDay)
     {
         l = schedule[currentClassID][e.ColumnIndex][e.RowIndex];
     }
     else
     {
         l = nightSchedule[currentClassID][e.ColumnIndex][e.RowIndex - Global.LessonPerDay];
     }
     int teacherID = l.TeacherID;
     string teacherName = l.TeacherName;
     if (teacherID == 0)
     {
         return;
     }
     FormViewTeacherSchedule fvts = new FormViewTeacherSchedule(teacherID,teacherName);
     fvts.ShowDialog();
 }
Exemplo n.º 4
0
 private void 查询教师课表ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     FormViewTeacherSchedule fvts = new FormViewTeacherSchedule();
         fvts.MdiParent = this;
         fvts.Show();
 }