protected override void AddLineaAction() { if (_entity.OidSerie == 0) { PgMng.ShowInfoException(Resources.Messages.NO_SERIE_SELECTED); return; } if (_entity.OidCliente == 0) { PgMng.ShowInfoException(Resources.Messages.NO_CLIENT_SELECTED); return; } _cliente = Datos_Cliente.Current as ClienteInfo; LineaPedidoAddForm form = new LineaPedidoAddForm(ETipoProducto.Almacen, _entity, _serie, _cliente, this); if (form.ShowDialog(this) == DialogResult.OK) { _entity.CalculateTotal(); if (_entity.Lineas.Count > 0) { Serie_BT.Enabled = false; } ControlsMng.UpdateBinding(Datos_Lineas); HideComponentes(); AddCacheItem(form.Entity); } }
protected override void AddLineaLibreAction() { if (_entity.OidSerie == 0) { PgMng.ShowInfoException(Resources.Messages.NO_SERIE_SELECTED); return; } if (_entity.OidCliente == 0) { PgMng.ShowInfoException(Resources.Messages.NO_CLIENT_SELECTED); return; } _cliente = Datos_Cliente.Current as ClienteInfo; LineaPedidoAddForm form = new LineaPedidoAddForm(ETipoProducto.Libres, _entity, _serie, _cliente, this); if (form.ShowDialog(this) == DialogResult.OK) { _entity.CalculateTotal(); } }