Exemple #1
0
        private void frmPhanCongGiangDay_Load(object sender, EventArgs e)
        {
            try
            {
                txtMaPC.Text = PhanCongBUS.SinhMa();

                cmbGiangVien.Properties.DataSource = GiangVienBUS.DanhSachTuyChinh();
                cmbGiangVien.EditValue             = cmbGiangVien.Properties.GetDataSourceValue("MaGV", 0);

                cmbMonHoc.Properties.DataSource = MonHocBUS.DanhSachTuyChinh();
                cmbMonHoc.EditValue             = cmbMonHoc.Properties.GetDataSourceValue("MaMH", 0);

                cmbLop.Properties.DataSource = LopBUS.DanhSachTuyChinh();
                cmbLop.EditValue             = cmbLop.Properties.GetDataSourceValue("MaLop", 0);

                LoadSourceGridControl();
            }
            catch (Exception ex)
            {
                ExceptionUtil.ThrowMsgBox(ex.Message);
            }
        }