protected override void UpdateFacturaAction()
        {
            InputInvoiceLine item    = Datos_Lineas.Current as InputInvoiceLine;
            ProductInfo      product = ProductInfo.Get(item.OidProducto, false, true);

            item.BalanceQuantity(_entity, product);
            _entity.CalculateTotal();

            ControlsMng.UpdateBinding(Datos_Lineas);
        }
        protected override void ShowAlbaranAction()
        {
            InputInvoiceLine concepto = Datos_Lineas.Current as InputInvoiceLine;

            if (concepto != null)
            {
                InputDeliveryLineInfo c_albaran = InputDeliveryLineInfo.Get(concepto.OidConceptoAlbaran, false);
                InputDeliveryViewForm form      = new InputDeliveryViewForm(c_albaran.OidAlbaran, ETipoAcreedor.Todos, this);
                form.ShowDialog(this);
            }
        }
        protected override void SelectExpedienteLineaAction()
        {
            if (Datos_Lineas.Current == null)
            {
                return;
            }

            InputInvoiceLine item = Datos_Lineas.Current as InputInvoiceLine;

            ExpedienteSelectForm form = new ExpedienteSelectForm(this);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                ExpedientInfo source = (ExpedientInfo)form.Selected;

                item.OidExpediente = source.Oid;
                item.Expediente    = source.Codigo;

                RefreshLineas();

                //AddCacheItem(source);
            }
        }