private void frmCTHoaDon_Load(object sender, EventArgs e) { txtMaHD.Enabled = false; txtNgayLap.Enabled = false; cboBan.Enabled = false; cboNV.Enabled = false; txtTinhTrang.Enabled = false; txtTongTien.Enabled = false; cboNV.DataSource = nv.getDSNhanVien(); cboNV.DisplayMember = "HOTEN"; cboNV.ValueMember = "MANV"; cboBan.DataSource = b.getDSBan(); cboBan.DisplayMember = "TENBAN"; cboBan.ValueMember = "MABAN"; dgvCTHD.DataSource = hd.GetCTHD(ma); txtMaHD.Text = hd.getTTHoaDon(ma).MAHD; txtNgayLap.Text = hd.getTTHoaDon(ma).NGAYLAP.ToString(); cboNV.SelectedValue = hd.getTTHoaDon(ma).MANV; cboBan.SelectedValue = hd.getTTHoaDon(ma).MABAN; txtTinhTrang.Text = hd.getTTHoaDon(ma).TINHTRANG.ToString(); txtTongTien.Text = hd.TinhTong(ma).ToString(); LoadNuoc(); dgvCTHD.MouseClick += new MouseEventHandler(dgvCTHD_MouseClick); }