protected override void SetBankAccountAction()
        {
            if (!ControlsMng.IsCurrentItemValid(Lines_DGW))
            {
                return;
            }

            CashLine item = ControlsMng.GetCurrentItem(Lines_DGW) as CashLine;

            if (item.Locked)
            {
                return;
            }

            if (!new ETipoLineaCaja[]
            {
                ETipoLineaCaja.EntradaPorTraspaso,
                ETipoLineaCaja.SalidaPorIngreso
            }.Contains(item.ETipoLinea))
            {
                return;
            }

            BankAccountSelectForm form = new BankAccountSelectForm(this);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                BankAccountInfo cuenta = form.Selected as BankAccountInfo;

                item.OidCuentaBancaria = cuenta.Oid;
                item.CuentaBancaria    = cuenta.Valor;
            }
        }
Exemple #2
0
        private void Cuenta_BT_Click(object sender, EventArgs e)
        {
            BankAccountSelectForm form = new BankAccountSelectForm(this);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                _cuenta        = form.Selected as BankAccountInfo;
                Cuenta_TB.Text = _cuenta.Valor;
            }
        }
        protected override void EditAccountAction()
        {
            BankAccountSelectForm form = new BankAccountSelectForm(this, BankAccountList.GetList(ETipoCuenta.CuentaCorriente, EEstado.Active, false));

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                BankAccountInfo cuenta = form.Selected as BankAccountInfo;
                Cuenta_TB.Text         = cuenta.Valor;
                _entity.CuentaBancaria = cuenta.Valor;
            }
        }
        protected virtual void SelectCuentaAction()
        {
            ETipoCuenta           tipo = _entity.ETipoMovimientoBanco == EBankLineType.Manual ? ETipoCuenta.CuentaCorriente : ETipoCuenta.FondoInversion;
            BankAccountSelectForm form = new BankAccountSelectForm(this, BankAccountList.GetList(tipo, EEstado.Active, false));

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                BankAccountInfo cuenta = form.Selected as BankAccountInfo;
                SetCuentaBancaria(cuenta);
            }
        }
        private void CuentaAsociada_BT_Click(object sender, EventArgs e)
        {
            BankAccountSelectForm form = new BankAccountSelectForm(this, BankAccountList.GetList(ETipoCuenta.CuentaCorriente, moleQule.Base.EEstado.Active, false));

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                BankAccountInfo item = form.Selected as BankAccountInfo;

                _entity.OidCuentaBAsociada = item.Oid;
                _entity.CuentaAsociada     = item.Valor;
            }
        }
        private void CuentaAjena_BT_Click(object sender, EventArgs e)
        {
            BankAccountSelectForm form = new BankAccountSelectForm(this);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                BankAccountInfo item = form.Selected as BankAccountInfo;

                _entity.OidCuentaBAsociada = item.Oid;
                _entity.CuentaAsociada     = item.Valor;
            }
        }
        protected virtual void SelectCuentaAction()
        {
            BankAccountSelectForm form = new BankAccountSelectForm(this);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                BankAccountInfo cuenta = form.Selected as BankAccountInfo;

                Cuenta_TB.Text         = cuenta.Valor;
                _entity.CuentaBancaria = cuenta.Valor;
            }
        }
        //protected override void SetImpuestoAction()
        //{
        //    ImpuestoSelectForm form = new ImpuestoSelectForm(this);
        //    if (form.ShowDialog(this) == DialogResult.OK)
        //    {
        //        ImpuestoInfo item = form.Selected as ImpuestoInfo;
        //        Entity.SetImpuesto(item);
        //        Impuesto_TB.Text = Entity.Impuesto;
        //    }
        //}

        //protected override void SetImpuestoDefectoAction()
        //{
        //    Entity.SetImpuesto(null);
        //    Impuesto_TB.Text = Entity.Impuesto;
        //}

        protected override void SetCuentaAsociadaAction()
        {
            BankAccountSelectForm form = new BankAccountSelectForm(this);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                BankAccountInfo item = form.Selected as BankAccountInfo;

                _entity.OidCuentaBAsociada = item.Oid;
                _entity.CuentaAsociada     = item.Valor;
            }
        }
Exemple #9
0
        private void Cuenta_BT_Click(object sender, EventArgs e)
        {
            BankAccountSelectForm form = new BankAccountSelectForm(this, BankAccountList.GetList(ETipoCuenta.CuentaCorriente, EEstado.Active, false));

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                BankAccountInfo cuenta = form.Selected as BankAccountInfo;

                _entity.OidCuentaBancaria = cuenta.Oid;
                _entity.CuentaBancaria    = cuenta.Valor;
                CuentaBancaria_TB.Text    = cuenta.Valor;
            }
        }
Exemple #10
0
        protected virtual void SetBankAccountAction()
        {
            BankAccountSelectForm form = new BankAccountSelectForm(this, BankAccountList.GetList(EEstado.Active, false));

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                BankAccountInfo cuenta = form.Selected as BankAccountInfo;

                _entity.OidCuentaBancaria = cuenta.Oid;
                _entity.CuentaBancaria    = cuenta.Valor;
                Cuenta_TB.Text            = _entity.CuentaBancaria;
            }
        }
        protected virtual void SetCuentaDestinoAction()
        {
            BankAccountSelectForm form = new BankAccountSelectForm(this);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                BankAccountInfo cuenta = form.Selected as BankAccountInfo;

                _entity.OidCuentaDestino = cuenta.Oid;
                _entity.CuentaDestino    = cuenta.Valor;
                CuentaDestino_TB.Text    = _entity.CuentaDestino;
            }
        }
Exemple #12
0
        protected override void SetBankAccountAction()
        {
            BankAccountSelectForm form = new BankAccountSelectForm(this);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                BankAccountInfo cuenta = form.Selected as BankAccountInfo;

                if (cuenta.ETipoCuenta == moleQule.Common.Structs.ETipoCuenta.CuentaCorriente && _entity.OidPago != 0)
                {
                    PgMng.ShowInfoException("Este préstamo tiene una factura asociada. Debe seleccionar una cuenta de Comercio Exterior");
                    return;
                }
                _entity.OidCuenta              = cuenta.Oid;
                _entity.CuentaBancaria         = cuenta.Valor;
                _entity.Entidad                = cuenta.Entidad;
                _entity.CuentaBancariaAsociada = cuenta.CuentaAsociada;
            }
        }
Exemple #13
0
        protected virtual void SetBankAccountAction()
        {
            BankAccountSelectForm form;

            if (_entity.EMedioPago == EMedioPago.ComercioExterior)
            {
                form = new BankAccountSelectForm(this, BankAccountList.GetList(ETipoCuenta.ComercioExterior, moleQule.Base.EEstado.Active, false));
            }
            else
            {
                form = new BankAccountSelectForm(this, BankAccountList.GetNoAsociadasList(moleQule.Base.EEstado.Active, false));
            }

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                BankAccountInfo cuenta = form.Selected as BankAccountInfo;

                _entity.OidCuentaBancaria = cuenta.Oid;
                _entity.CuentaBancaria    = cuenta.Valor;
                Cuenta_TB.Text            = _entity.CuentaBancaria;
            }
        }