示例#1
0
        protected virtual void EditPendienteAction()
        {
            if (Pendientes_DGW.CurrentRow == null)
            {
                return;
            }

            OutputInvoiceInfo factura = Pendientes_DGW.CurrentRow.DataBoundItem as OutputInvoiceInfo;

            InvoiceEditForm form = new InvoiceEditForm(factura.Oid, this);

            form.ShowDialog(this);

            UpdateFacturasPendientes();
        }
        public override void OpenEditForm()
        {
            try
            {
                Library.Common.EntityBase.CheckEditAllowedEstado(ActiveItem.EEstado, EEstado.Abierto);
            }
            catch (iQException ex)
            {
                PgMng.ShowInfoException(ex);
                _action_result = DialogResult.Ignore;
                return;
            }

            InvoiceEditForm form = new InvoiceEditForm(ActiveOID, this);

            if (form.Entity != null)
            {
                AddForm(form);
                _entity        = form.Entity;
                _action_result = DialogResult.OK;
            }
        }
示例#3
0
        public override void OpenEditForm()
        {
            try
            {
                OutputInvoiceInfo factura = OutputInvoiceInfo.Get(ActiveItem.OidFactura, false);
                EntityBase.CheckEditAllowedEstado(factura.EEstado, EEstado.Abierto);
            }
            catch (iQException ex)
            {
                PgMng.ShowInfoException(ex);
                _action_result = DialogResult.Ignore;
                return;
            }

            InvoiceEditForm form = new InvoiceEditForm(ActiveItem.OidFactura, this);

            if (form.Entity != null)
            {
                AddForm(form);
                _action_result = DialogResult.OK;
            }
        }