示例#1
0
        private void btnOk_Click(object sender, EventArgs e)
        {
            DanhSachGVBUL    cls = new DanhSachGVBUL();
            PhanCongGiangDay x   = new PhanCongGiangDay();

            x.MaLop                     = cboTenLop.SelectedValue.ToString();
            dgvDSGV.DataSource          = cls.HienThiDS(x);
            dgvDSGV.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
        }
示例#2
0
        private void btnPhancong_Click(object sender, EventArgs e)
        {
            GiangDayPCDABLL  pcc = new GiangDayPCDABLL();
            PhanCongGiangDay x   = new PhanCongGiangDay();

            x.MaLop        = cboLop.SelectedValue.ToString();
            x.MaMon        = cboMon.SelectedValue.ToString();
            x.MaCanBoGV    = cboGiaovien.SelectedValue.ToString();
            x.NgayPhanCong = dateTimePicker1.Value;
            pcc.Phancong(x);
            PhanCongGD_Load(sender, e);
        }