private void ThemHangHoaForm_Load(object sender, EventArgs e) { HangHoaDVBUS hangHoaDVBUS = new HangHoaDVBUS(); cbxLoai.DataSource = hangHoaDVBUS.LoadDV(); cbxLoai.DisplayMember = "LoaiHangHoa"; cbxLoai.ValueMember = "IDLoaiHangHoa"; WarehouseBUS warehouseBUS = new WarehouseBUS(); cbxKho.DataSource = warehouseBUS.LoadAllData(); cbxKho.DisplayMember = "Name"; cbxKho.ValueMember = "WarehouseID"; GroupOfGoodsBUS groupOfGoodsBUS = new GroupOfGoodsBUS(); cbxphanLoai.DataSource = groupOfGoodsBUS.LoadAllData(); cbxphanLoai.DisplayMember = "GOGName"; cbxphanLoai.ValueMember = "GOGID"; SupplierBUS supplierBUS = new SupplierBUS(); cbxNhacungcap.DataSource = supplierBUS.LoadAllData(); cbxNhacungcap.DisplayMember = "Name"; cbxNhacungcap.ValueMember = "SupplierID"; UnitBUS unitBUS = new UnitBUS(); cbxDonvi.DataSource = unitBUS.LoadAllData(); cbxDonvi.DisplayMember = "Name"; cbxDonvi.ValueMember = "UnitID"; }
private void NhapHangForm_Load(object sender, EventArgs e) { SupplierBUS supplierBUS = new SupplierBUS(); cbTenNCC.DataSource = supplierBUS.LoadAllData(); cbTenNCC.DisplayMember = "Name"; cbTenNCC.ValueMember = "SupplierID"; cbTenNCC.SelectedValueChanged += CbTenNCC_SelectedValueChanged; WarehouseBUS warehouseBUS = new WarehouseBUS(); cbKhoXuat.DataSource = warehouseBUS.LoadAllData(); cbKhoXuat.ValueMember = "WarehouseID"; cbKhoXuat.DisplayMember = "Name"; }
private void BanHangForm_Load(object sender, EventArgs e) { CustomerBUS customerBUS = new CustomerBUS(); cbTenKH.DataSource = customerBUS.LoadAllData(); cbTenKH.DisplayMember = "Name"; cbTenKH.ValueMember = "CustomerID"; cbTenKH.SelectedValueChanged += CbTenNCC_SelectedValueChanged; WarehouseBUS warehouseBUS = new WarehouseBUS(); cbKhoXuat.DataSource = warehouseBUS.LoadAllData(); cbKhoXuat.ValueMember = "WarehouseID"; cbKhoXuat.DisplayMember = "Name"; }
private void KhoHangForm_Load(object sender, EventArgs e) { DataTable dataTable = warehouseBUS.LoadAllData(); GcWarehouse.DataSource = dataTable; }