protected void SelectProducto() { BatchList lista = BatchList.GetListByFamiliaNoKits(_familia.Oid, false); BatchSelectForm form = new BatchSelectForm(this, null, lista); if (form.ShowDialog(this) == DialogResult.OK) { _batch = form.Selected as BatchInfo; _expedient = (_batch.OidExpediente == 1) ? _almacen : _expedientes.GetItem(_batch.OidExpediente); Datos_Partida.DataSource = _batch; } }
protected virtual void SelectBatchAction() { BatchList list = BatchList.GetByProductStockList(_product.Oid, _provider.OidAcreedor, _provider.ETipoAcreedor, false); BatchSelectForm form = new BatchSelectForm(this, _serie, list); if (form.ShowDialog(this) == DialogResult.OK) { BatchInfo batch = form.Selected as BatchInfo; _entity.CopyFrom(_delivery, batch); SetStore(StoreInfo.Get(_entity.OidAlmacen, false, true)); SetExpedient(ExpedientInfo.Get(_entity.OidExpediente, false, true)); } }
protected override void NewREAAction() { BatchList lista = BatchList.GetList(_entity.Partidas); BatchSelectForm form = new BatchSelectForm(this, lista); if (form.ShowDialog(this) == DialogResult.OK) { BatchInfo partida = form.Selected as BatchInfo; try { _entity.ExpedientesREA.NewItem(_entity, partida); } catch (iQException ex) { PgMng.ShowInfoException(ex); } } }