Пример #1
0
 public ThemGiangDay()
 {
     InitializeComponent();
     comboBoxLop.DataSource      = GiangDayBUS.GetDanhSachLop();
     comboBoxGiaoVien.DataSource = GiangDayBUS.GetDanhSachGiaoVienCaTruong();
     uploaddata();
 }
 public DanhSachGiangDay()
 {
     InitializeComponent();
     dataGridViewDS_HS.DataSource = GiangDayBUS.LoadGiangDay();
     comboBoxLop.DataSource       = GiangDayBUS.GetDanhSachLop();
     comboBoxGiaoVien.DataSource  = GiangDayBUS.GetDanhSachGiaoVien();
     textBoxTongSo.Text           = DataProvider.Instance.ExecuteScalar("select count(*) tongso from GIANGDAY").ToString();
 }
Пример #3
0
 public ThemGiangDay()
 {
     InitializeComponent();
     comboBoxLop.DataSource         = GiangDayBUS.GetDanhSachLop();
     comboBoxGiaoVien.DisplayMember = "TenGV";
     comboBoxGiaoVien.ValueMember   = "MaGV";
     comboBoxGiaoVien.DataSource    = GiangDayBUS.GetDanhSachGiaoVienCaTruong();
     uploaddata();
 }
        public ThongTinGiangDay(string maGV, string maLop, int soTiet, string diaDiem, string thu, string tiet)
        {
            InitializeComponent();

            comboBoxGiaoVien.DataSource = GiangDayBUS.GetDanhSachGiaoVienCaTruong();
            comboBoxLop.DataSource      = GiangDayBUS.GetDanhSachLop();

            comboBoxGiaoVien.SelectedItem = maGV;
            comboBoxLop.SelectedItem      = maLop;
            textBoxSoTiet.Text            = soTiet.ToString();
            textBoxDiaDiem.Text           = diaDiem;
            textBoxThu.Text  = thu;
            textBoxTiet.Text = tiet;
            textBoxMon.Text  = DataProvider.Instance.ExecuteScalar("gettenmonhoc '" + maGV + "'").ToString();

            maGVTam  = maGV;
            maLopTam = maLop;
        }
Пример #5
0
 private void comboBoxLop_Click(object sender, EventArgs e)
 {
     comboBoxLop.DataSource = GiangDayBUS.GetDanhSachLop();
 }