public override void RefreshSecondaryData()
        {
            if (_entity.OidSerie != 0)
            {
                SetSerie(SerieInfo.Get(_entity.OidSerie, false), false);
            }
            PgMng.Grow();

            if (_entity.OidAcreedor != 0)
            {
                SetAcreedor(ProviderBaseInfo.Get(_entity.OidAcreedor, _entity.ETipoAcreedor, false));
            }
            PgMng.Grow();

            if (_entity.OidAlmacen != 0)
            {
                SetAlmacen(StoreInfo.Get(_entity.OidAlmacen, false));
            }
            PgMng.Grow();

            if (_entity.OidExpediente != 0)
            {
                SetExpediente(ExpedientInfo.Get(_entity.OidExpediente, false));
            }
            PgMng.Grow();

            if (_acreedor != null)
            {
                ProductList.GetList(_acreedor, _serie, false, true);
            }
        }
Beispiel #2
0
        public override void RefreshSecondaryData()
        {
            if (_entity.OidSerie != 0)
            {
                SetSerie(SerieInfo.Get(_entity.OidSerie, false), false);
            }
            PgMng.Grow();

            if (_entity.OidAcreedor != 0)
            {
                SetProvider(ProviderBaseInfo.Get(_entity.OidAcreedor, _entity.ETipoAcreedor, false));
            }
            PgMng.Grow();

            if (_entity.OidAlmacen != 0)
            {
                SetStore(StoreInfo.Get(_entity.OidAlmacen, false));
            }
            PgMng.Grow();

            if (_entity.OidExpediente != 0)
            {
                SetExpedient(ExpedientInfo.Get(_entity.OidExpediente, false), false);
            }
            PgMng.Grow();

            base.RefreshSecondaryData();
        }
        public override void RefreshSecondaryData()
        {
            if (_entity.OidCliente != 0)
            {
                SetCliente(ClienteInfo.Get(_entity.OidCliente, false));
            }
            PgMng.Grow();

            if (_entity.OidSerie != 0)
            {
                SetSerie(SerieInfo.Get(_entity.OidSerie, false), false);
            }
            PgMng.Grow();

            if (_entity.OidAlmacen != 0)
            {
                SetAlmacen(StoreInfo.Get(_entity.OidAlmacen, false, true));
            }
            PgMng.Grow();

            if (_entity.OidExpediente != 0)
            {
                SetExpediente(ExpedientInfo.Get(_entity.OidExpediente, false, true));
            }
            PgMng.Grow();
        }
Beispiel #4
0
        public override void RefreshSecondaryData()
        {
            if (_delivery.OidAlmacen != 0)
            {
                _delivery_store = StoreInfo.Get(_delivery.OidAlmacen, false, true);
            }
            PgMng.Grow();

            if (_delivery.OidExpediente != 0)
            {
                _delivery_expedient = ExpedientInfo.Get(_delivery.OidExpediente, false, true);
            }
            PgMng.Grow();
        }
Beispiel #5
0
        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));
            }
        }
        public override void RefreshSecondaryData()
        {
            if (_entity.OidSerie != 0)
            {
                SetSerie(SerieInfo.Get(_entity.OidSerie, false), false);
            }
            PgMng.Grow();

            if (_entity.OidAlmacen != 0)
            {
                SetAlmacen(StoreInfo.Get(_entity.OidAlmacen, false));
            }
            PgMng.Grow();

            switch (_entity.EHolderType)
            {
            case ETipoEntidad.WorkReport:
            {
                if (_work_report == null)
                {
                    _work_report = WorkReportInfo.GetByResource(_entity.Oid, ETipoEntidad.OutputDelivery, false);
                }
                SetWorkReport(_work_report);
            }
            break;

            case ETipoEntidad.Cliente:
            {
                if (_entity.OidHolder != 0)
                {
                    SetCliente(ClienteInfo.Get(_entity.OidHolder, false));
                }
                PgMng.Grow();

                if (_entity.OidExpediente != 0)
                {
                    SetExpediente(ExpedientInfo.Get(_entity.OidExpediente, false));
                }
                PgMng.Grow();
            }
            break;
            }

            base.RefreshSecondaryData();
        }
        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);
        }