コード例 #1
0
 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;
     }
 }
コード例 #3
0
 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);
     }
 }
コード例 #4
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);
            }
        }