private void LayNguonChoLop() { try { cmbLop.Properties.DataSource = LopBUS.DanhSachTuyChinh(); } catch (Exception ex) { throw ex; } }
private void Set_cmbGiangVien() { try { cmbLop.Properties.DataSource = LopBUS.DanhSachTuyChinh(); cmbLop.EditValue = cmbLop.Properties.GetDataSourceValue("MaLop", 0); } catch (Exception ex) { throw ex; } }
private void frmThemKhachHang_Load(object sender, EventArgs e) { try { cmbLop.Properties.DataSource = LopBUS.DanhSachTuyChinh(); cmbLop.EditValue = cmbLop.Properties.GetDataSourceValue("MaLop", 0); dateNgaySinh.DateTime = DateTime.Now.AddYears(-18); TaoMa(); } catch (Exception ex) { ExceptionUtil.ThrowMsgBox(ex.Message); } }
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); } }