private void TaiDuLieu() { dtBaoHanh = _BaoHanhBUS.LayBangBaoHanh(); dvBaoHanh = new DataView(dtBaoHanh); dgvBaoHanh.DataSource = dvBaoHanh; dtNhanVien = _NhanVienBUS.LayBangNhanVien(); cboNV.DataSource = dtNhanVien; cboNV.DisplayMember = "TenNhanVien"; cboNV.ValueMember = "MaNhanVien"; }
private void TaiDuLieu() { dtPhieuNhap = _PhieuNhapBUS.LayBangPhieuNhap(); dvPhieuNhap = new DataView(dtPhieuNhap); dgvPhieuNhap.DataSource = dvPhieuNhap; dtNhanVien = _NhanVienBUS.LayBangNhanVien(); cboNV.DataSource = dtNhanVien; cboNV.DisplayMember = "TenNhanVien"; cboNV.ValueMember = "MaNhanVien"; if (dgvPhieuNhap.Rows.Count == 0) { foreach (DataGridViewRow dgvRow in dgvCTPhieuNhap.Rows) { dgvCTPhieuNhap.Rows.Remove(dgvRow); } } }
private void loadDataViewNV() { dt = bus.LayBangNhanVien(); dav = new DataView(dt); }