protected override void SelectProductoAction() { ProductList lista; lista = ProductList.GetListBySerie(_serie.Oid, false, true); ProductSelectForm form = new ProductSelectForm(this, lista); if (form.ShowDialog(this) == DialogResult.OK) { _producto = ProductInfo.Get((form.Selected as ProductInfo).Oid, false, true); _entity.CopyFrom(_producto); AsignaPrecio(); Datos_Productos.DataSource = _producto; EnableKilos(); if (_entity.FacturacionBulto) { Pieces_NTB.Focus(); } else { Kilos_NTB.Focus(); } } }
private void Producto_BT_Click(object sender, EventArgs e) { ProductSelectForm form = new ProductSelectForm(this); if (form.ShowDialog(this) == DialogResult.OK) { _producto = form.Selected as ProductInfo; Producto_TB.Text = _producto.Nombre; } }
private void ProductoInstruccion_BT_Click(object sender, EventArgs e) { ProductSelectForm form = new ProductSelectForm(this, _productos); if (form.ShowDialog() == DialogResult.OK) { ProductInfo producto = form.Selected as ProductInfo; Entity.OidProducto = producto.Oid; ProductoInstruccion_TB.Text = producto.Nombre; } }
protected override void AddProductoAction() { ProductSelectForm form = new ProductSelectForm(this); if (form.ShowDialog(this) == DialogResult.OK) { ProductInfo item = form.Selected as ProductInfo; _entity.Productos.NewItem(_entity, item); Datos_ProductoProveedor.ResetBindings(true); } }
protected override void NuevoProductoAction() { ProductSelectForm form = new ProductSelectForm(this); if (form.ShowDialog(this) == DialogResult.OK) { ProductInfo item = form.Selected as ProductInfo; _entity.Productos.NewItem(_entity, item); ControlsMng.UpdateBinding(Datos_ProductoCliente); } }
protected override void SelectProductoAction() { ProductList lista; lista = ProductList.GetListBySerie(_serie.Oid, false, true); ProductSelectForm form = new ProductSelectForm(this, lista); if (form.ShowDialog(this) == DialogResult.OK) { _product = ProductInfo.Get((form.Selected as ProductInfo).Oid, false, true); _entity.CopyFrom(_delivery, _product); _entity.SetTaxes(_client, _product, _serie); _entity.AjustaCantidad(_product, null, 1); SetStore(StoreInfo.Get(_delivery.OidAlmacen != 0 ? _delivery.OidAlmacen : Library.Store.ModulePrincipal.GetDefaultAlmacenSetting(), false)); AsignaPrecio(); Products_BS.DataSource = _product; EnableKilos(); if (_entity.FacturacionBulto) { Pieces_NTB.Focus(); } else { Kilos_NTB.Focus(); } } ShowLineGrid(ETipoProducto.Libres); }