示例#1
0
        private void barThemMonHoc_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            dlgThemMonHoc_LopTach dlg = new dlgThemMonHoc_LopTach(grvLopGop.GetDataRow(grvLopGop.FocusedRowHandle)["XL_LopTachGopIDs"].ToString(), 0, 0, grvLopGop.GetDataRow(grvLopGop.FocusedRowHandle)["IDXL_MonHocTrongKys"].ToString(), true, grvLopGop.GetDataRow(grvLopGop.FocusedRowHandle)["IDDM_LopGocs"].ToString(), int.Parse(grvLopGop.GetDataRow(grvLopGop.FocusedRowHandle)["SoLopGop"].ToString()));

            dlg.ShowDialog();
            if (dlg.Tag.ToString() != "")
            {
                // ghi log
                GhiLog("Thêm môn học vào lớp gộp '" + grvLopGop.GetDataRow(grvLopGop.FocusedRowHandle)["TenLopTachGop"].ToString() + "'", "Thêm", this.Tag.ToString());
                frmLopGop_Load(null, null);
                ThemThanhCong();
            }
        }
示例#2
0
        private void barThemMonHoc_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            cmbLop.EditValue = int.Parse(grvLopTach.GetDataRow(grvLopTach.FocusedRowHandle)["DM_LopGopID"].ToString());
            // cmbLop_EditValueChanged(null, null);
            dlgThemMonHoc_LopTach dlg = new dlgThemMonHoc_LopTach(grvLopTach.GetDataRow(grvLopTach.FocusedRowHandle)["XL_LopTachGopIDs"].ToString(), int.Parse(cmbLop.EditValue.ToString()), int.Parse(grvLopTach.GetDataRow(grvLopTach.FocusedRowHandle)["IDXL_MonHocTrongKy"].ToString()), "", false, "", 0);

            dlg.ShowDialog();
            if (dlg.Tag.ToString() != "")
            {
                // ghi log
                GhiLog("Thêm môn học vào các lớp tách '" + grvLopTach.GetDataRow(grvLopTach.FocusedRowHandle)["TenLopTach"].ToString() + "'", "Thêm", this.Tag.ToString());
                frmLopTach_Load(null, null);
                ThemThanhCong();
            }
        }