private void frmHDN_Load(object sender, EventArgs e) { dgv.DataSource = bus_hdn.LoadHDN(); cbMaNCC.DataSource = bus_ncc.LoadMaNCC(); cbMaNCC.DisplayMember = "mancc"; cbMaNhanVien.DataSource = bus_nv.LoadMaNhanVien(); cbMaNhanVien.DisplayMember = "manhanvien"; }
private void CTHD_nhap_Load(object sender, EventArgs e) { dt = bus_sp.Load(); cbMaSP.DataSource = bus_sp.LoadMaSanPham(); cbMaSP.DisplayMember = "masanpham"; cbNhanVien.DataSource = bus_nv.LoadMaNhanVien(); cbNhanVien.DisplayMember = "manhanvien"; cbNCC.DataSource = bus_ncc.LoadMaNCC(); cbNCC.DisplayMember = "mancc"; dgvHoaDon.DataSource = bus_hdn.LoadHDN(); dgvSanPham.DataSource = bus_cthdn.LoadCTHDN(); }
private void CTHD_ban_Load(object sender, EventArgs e) { dt = bus_sp.Load(); cbMaSanPham.DataSource = dt; cbMaSanPham.DisplayMember = "masanpham"; cbMaNhanVien.DataSource = bus_nv.LoadMaNhanVien(); cbMaNhanVien.DisplayMember = "manhanvien"; dgvCTHD.DataSource = bus_cthdb.LoadCTHDB(); dgvHoaDon.DataSource = bus_hdb.LoadHDB(); }
private void frmHDB_Load(object sender, EventArgs e) { dgv.DataSource = bus_hdb.LoadHDB(); cbMaNhanVien.DataSource = bus_nv.LoadMaNhanVien(); cbMaNhanVien.DisplayMember = "manhanvien"; }