Exemplo n.º 1
0
        protected override void EditPagoAction()
        {
            bool locked = false;

            if (Pago == null)
            {
                PgMng.ShowInfoException(Face.Resources.Messages.NO_SELECTED);
                return;
            }

            if (Pago.EEstado == moleQule.Base.EEstado.Anulado)
            {
                PgMng.ShowInfoException(Face.Resources.Messages.ITEM_ANULADO_NO_EDIT);
                return;
            }

            InvoicePaymentEditForm form = new InvoicePaymentEditForm(this, _entity, Pago, locked);

            form.MedioPago_BT.Enabled = false;
            form.ShowDialog(this);

            RefreshAction();

            Refresh();
        }
Exemplo n.º 2
0
        protected override void ViewPagoAction()
        {
            if (Pago == null)
            {
                PgMng.ShowInfoException(Face.Resources.Messages.NO_SELECTED);
                return;
            }

            InvoicePaymentEditForm form = new InvoicePaymentEditForm(this, _entity, Pago, false);

            form.SetReadOnly();
            form.ShowDialog(this);
        }