protected virtual void CreateInvoiceAction() { if (_entity.EEstado != moleQule.Base.EEstado.Abierto) { return; } ExecuteAction(molAction.Save, true); if (_action_result != DialogResult.OK) { return; } InputInvoiceAddForm form = new InputInvoiceAddForm(_entity.GetInfo(), _provider, this); form.ShowDialog(this); if (form.ActionResult == DialogResult.OK) { _entity.EEstado = moleQule.Base.EEstado.Billed; _entity.NumeroFactura = form.Entity.Codigo; _entity.NumeroAcreedor = form.Entity.NumeroAcreedor; } }
public override void OpenAddForm() { InputInvoiceAddForm form = new InputInvoiceAddForm(this); AddForm(form); _entity = (form.ActionResult == DialogResult.OK) ? form.Entity : null; }