Exemple #1
0
        protected virtual void AddFGastoAction()
        {
            InputInvoiceList       list = InputInvoiceList.GetListNoAsignadas(false);
            InputInvoiceSelectForm form = new InputInvoiceSelectForm(this, list);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                InputInvoiceInfo fac = form.Selected as InputInvoiceInfo;
                AddFacturaGastos(fac);

                UpdateExpensesList();
                Datos.ResetBindings(false);
            }
        }
        protected override void AttachFacturaNavieraActon()
        {
            if (Fomento_DGW.CurrentRow == null)
            {
                return;
            }
            if (Fomento_DGW.CurrentRow.DataBoundItem == null)
            {
                return;
            }

            LineaFomento linea = Fomento_DGW.CurrentRow.DataBoundItem as LineaFomento;

            InputInvoiceList       list = _entity.GetFacturasNaviera();
            InputInvoiceSelectForm form = new InputInvoiceSelectForm(this, list);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                InputInvoiceInfo fac = form.Selected as InputInvoiceInfo;

                _entity.ExpedientesFomento.SetValues(_entity, fac, linea);
            }
        }