Exemple #1
0
 private void dgvTerm_StaffList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     selectedStaffRowIndex = e.RowIndex;
     Staffs staffScreen = new Staffs();
     staffScreen._setSchoolId = schoolId.ToString();
     staffScreen.MyGetData = new Staffs.GetString(GetValueStaff);
     staffScreen.Show();
 }
Exemple #2
0
        private void DAT_GRI_VIW_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex > -1)
            {
                switch (e.ColumnIndex)
                {
                    case 6:
                    case 7:
                    case 8:
                    case 9:
                    case 10:
                    case 11:
                        Staffs frmStaff = new Staffs();
                        frmStaff._setSchoolId = D_SCHOOL_ID.ToString();
                        frmStaff._setColumn = e.ColumnIndex.ToString();
                        frmStaff._setRow = e.RowIndex.ToString();
                        frmStaff.MyGetData = new Staffs.GetString(GetValueStaff);
                        frmStaff.Show();
                        break;

                    default:
                        //default stuff
                        break;
                }
            }
        }
Exemple #3
0
        private void btnTerm_StaffOfClassNew_Click(object sender, EventArgs e)
        {
            var staffsClassRecord = (from c in db.CpClassStaffs where c.ClassId == class_id && c.TermId == term_id select c).SingleOrDefault();
            if (staffsClassRecord != null && staffsClassRecord.StaffId6 != null) return;

            selectedStaffRowIndex = -1;
            Staffs staffScreen = new Staffs();
            staffScreen._setSchoolId = schoolId.ToString();
            staffScreen.MyGetData = new Staffs.GetString(GetValueStaff);
            staffScreen.Show();
        }