Beispiel #1
0
        private void btn_GmChange_Click(object sender, EventArgs e)
        {
            int    a = Dgv_Gm.CurrentRow.Index;
            string teacher_id;
            string teacher_name;
            string teacher_password;
            string class_id;
            string class_name;
            string class_teacher;
            string class_std;

            if (GmSelection.teacher_flag == 1)
            {
                teacher_id       = Dgv_Gm.Rows[a].Cells[0].Value.ToString();
                teacher_name     = Dgv_Gm.Rows[a].Cells[1].Value.ToString();
                teacher_password = Dgv_Gm.Rows[a].Cells[2].Value.ToString();
                GmChangeTeacher FrmgmChangeTeacher = new GmChangeTeacher(teacher_id, teacher_name, teacher_password);
                FrmgmChangeTeacher.Show();
            }
            else if (GmSelection.class_flag == 1)
            {
                class_id      = Dgv_Gm.Rows[a].Cells[0].Value.ToString();
                class_name    = Dgv_Gm.Rows[a].Cells[1].Value.ToString();
                class_teacher = Dgv_Gm.Rows[a].Cells[2].Value.ToString();
                class_std     = Dgv_Gm.Rows[a].Cells[3].Value.ToString();
                GmChangeClass Frm_gmChangeClass = new GmChangeClass(class_id, class_name, class_teacher, class_std);
                Frm_gmChangeClass.Show();
            }
            else
            {
                GmChangeAppcs Frm_gmChangeAppcs = new GmChangeAppcs();
                Frm_gmChangeAppcs.Show();
            }
        }
Beispiel #2
0
        private void btn_PimChange_Click(object sender, EventArgs e)
        {
            int a = Dgv_Pim.CurrentRow.Index;

            prs_week      = Dgv_Pim.Rows[a].Cells[0].Value.ToString();
            prs_day       = Dgv_Pim.Rows[a].Cells[1].Value.ToString();
            prs_classtime = Dgv_Pim.Rows[a].Cells[2].Value.ToString();

            GmChangeAppcs Frm_pimChange = new GmChangeAppcs();

            Frm_pimChange.Show();
        }