コード例 #1
0
        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);
            }
        }