public InvoiceUIForm(OutputInvoice invoice) : base(null) { InitializeComponent(); _entity = invoice.Clone(); _entity.BeginEdit(); SetFormData(); }
public override void PrintObject() { _action_result = SaveObject() ? DialogResult.OK : DialogResult.Ignore; if (_action_result == DialogResult.OK) { base.PrintObject(); _entity.SessionCode = OutputInvoice.OpenSession(); _entity.BeginEdit(); _entity.BeginTransaction(); _entity.EEstado = EEstado.Emitido; _action_result = SaveObject() ? DialogResult.OK : DialogResult.Ignore; DialogResult = _action_result; ExecuteAction(molAction.Close); } }