Пример #1
0
        public override string EjecutarAccion()
        {
            string str = "";
            RespuestaReferbdsjv respuestaReferbdsjv = HelperIbs.ibsReferenBcria(base.Afiliado.AF_CodCliente, base.Afiliado.sAF_Rif, this.NroCuenta);

            if (respuestaReferbdsjv.referbdsjv != null)
            {
                this.aficedula = base.Afiliado.sAF_Rif;
                this.literal   = respuestaReferbdsjv.referbdsjv.SLiteral;
                DateTime fecha = Formatos.ISOToFecha(respuestaReferbdsjv.referbdsjv.SFechaInicio);
                this.fechainicio = fecha.ToString("dd/MM/yyyy");
                this._base       = respuestaReferbdsjv.referbdsjv.SBase;
                long     nAFId      = base.Afiliado.nAF_Id;
                string   sCONombres = base.Afiliado.sCO_Nombres;
                string   str1       = DateTime.Now.ToString("dd/MM/yyyy");
                DateTime now        = DateTime.Now;
                string   str2       = string.Concat(HelperGlobal.LogRefBankAdd(nAFId, sCONombres, str1, now.ToShortTimeString(), WebUtils.GetClientIP(), "", "", this.NroCuenta, "", this.Dirigido, this.fechainicio, "", "", "", "", ""));
                this.referencia = string.Concat("IBRBC", str2.PadLeft(10, '0'));
                str             = this.referencia;
            }
            else
            {
                str = "Fallo referencia";
            }
            try
            {
                HelperEnvioCorreo.BuscarCamposCorreo(base.sCod, base.Afiliado.sCO_Nombres.ToUpper(), base.Afiliado.CO_Email, new decimal(0), "", Formatos.formatoCuenta(this.NroCuenta), this.referencia, base.Afiliado.sCO_Nombres.ToUpper(), "", "", this.NroCuenta, "", "", "", "", "", "", "");
            }
            catch (Exception exception)
            {
                string message = exception.Message;
            }
            return(str);
        }
Пример #2
0
        public override string EjecutarAccion()
        {
            string              empty               = string.Empty;
            long                aFCodCliente        = base.Afiliado.AF_CodCliente;
            string              sAFRif              = base.Afiliado.sAF_Rif;
            string              cuentaOrigen        = this.CuentaOrigen;
            string              cuentaDestino       = this.CuentaDestino;
            decimal             monto               = this.Monto;
            string              tarjeta             = this.Tarjeta;
            short               codigoSeguridad     = this.CodigoSeguridad;
            RespuestaAvancedsjv respuestaAvancedsjv = HelperIbs.ibsAvanceEfectivo(aFCodCliente, sAFRif, cuentaOrigen, cuentaDestino, monto, tarjeta, codigoSeguridad.ToString(), this.FechaVencimiento);

            if (!string.IsNullOrEmpty(respuestaAvancedsjv.avancedsjv.EErrores.SVectorCod))
            {
                throw new IBException(respuestaAvancedsjv.avancedsjv.EErrores.SVectorCod);
            }
            empty = respuestaAvancedsjv.avancedsjv.SReferencia;
            if (!string.IsNullOrEmpty(empty))
            {
                this.LogAvance();
            }
            empty = string.Concat("IB", empty.Trim().PadLeft(10, '0'));
            HelperEnvioCorreo.BuscarCamposCorreo(base.sCod, base.Afiliado.sCO_Nombres, base.Afiliado.CO_Email, this.Monto, this.Tarjeta, "", empty, "", this.CuentaDestino, this.TipoTarjeta, "", "", "", "", "", "", "", "");
            return(empty);
        }
Пример #3
0
        private bool LogNotificacion()
        {
            _Notificacion = Notificacion.getNotificacion(base.Afiliado.nAF_Id);
            HelperEnvioCorreo.BuscarCamposCorreo(base.sCod, base.Afiliado.sCO_Nombres, base.Afiliado.CO_Email, new decimal(0), string.Empty, this._Notificacion.FechaInicio, string.Empty, string.Empty, string.Empty, this._Notificacion.PaisNombre, string.Empty, this._Notificacion.FechaFin, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty);
            bool flag = false;

            try
            {
                DataLog dataLog = new DataLog()
                {
                    NAF_Id            = base.Afiliado.nAF_Id,
                    SAF_NombreUsuario = (string.IsNullOrEmpty(base.Afiliado.sAF_NombreUsuario) ? string.Empty : base.Afiliado.sAF_NombreUsuario),
                    DtFecha_Trans     = DateTime.Now.Date,
                    STime_Trans       = DateTime.Now.ToLongTimeString()
                };

                if (Opcion.Equals("Notificacion"))
                {
                    dataLog.SCod_Trans = "ANOVA";
                    dataLog.SConcepto  = string.Concat("Agregar Notificación de Viaje");
                }
                else if (Opcion.Equals("Destino"))
                {
                    dataLog.SCod_Trans = "ANODA";
                    dataLog.SConcepto  = string.Concat("Agregar Destino");
                }
                else if (Opcion.Equals("EETDC"))
                {
                    throw new IBException("SE EJECUTO LA ACCION");
                }

                dataLog.SAF_IP              = (string.IsNullOrEmpty(base.Afiliado.sIP) ? string.Empty : base.Afiliado.sIP);
                dataLog.SBanco              = string.Concat("Salida: ", _Notificacion.FechaInicio);;
                dataLog.SCuenta_Origen      = string.Concat("Notificación ID: ", _Notificacion.NotificacionId);
                dataLog.SCuenta_Destino     = string.Concat("Destino ID: ", _Notificacion.DestinoId);
                dataLog.SMonto              = string.Empty;
                dataLog.STipo_Tarjeta       = string.Concat("Retorno: ", _Notificacion.FechaFin);
                dataLog.SBeneficiario       = string.Empty;
                dataLog.SCedula_Id_B        = string.Empty;
                dataLog.SSerial_Chequera    = string.Empty;
                dataLog.SCheques            = string.Empty;
                dataLog.STitular            = string.Empty;
                dataLog.ICantidad           = 0;
                dataLog.SReferencia         = string.Empty;
                dataLog.SMotivo_Suspension  = string.Empty;
                dataLog.SDir_Envio_Chequera = string.Empty;
                flag = HelperGlobal.LogTransAdd(dataLog);
            }
            catch (IBException bException)
            {
            }
            return(flag);
        }
Пример #4
0
        protected void btnContinuarSMS_Click(object sender, EventArgs e)
        {
            this.panelMSG.Visible          = false;
            this.panelConfirmacion.Visible = true;
            string str = HelperAfiliado.CrearClaveTransaccionTemporal(base.Afiliado.nAF_Id);

            HelperEnvioCorreo.EnviarCorreoClaveTemporal(string.Concat(base.Afiliado.sCO_Nombres, " ", base.Afiliado.sCO_Apellidos), base.Afiliado.CO_Email, str);
            if (!string.IsNullOrEmpty(base.Afiliado.CO_Celular))
            {
                HelperTedexis.sendSMS(base.Afiliado.CO_Celular, string.Concat("BAV informa que su Clave de Transacciones Temporal es: ", str, ". Si usted no esta realizando esta operacion llame al 0500-288.00.01"));
            }
            this.Session.Add("SMS", true);
        }
Пример #5
0
        public override string EjecutarAccion()
        {
            string empty = string.Empty;

            if (!HelperFavorito.AfiliadoFavoritosAddUpdate(this.Accion, this.AfiliadoFavorito))
            {
                if (this.AfiliadoFavorito.IsServicio)
                {
                    throw new IBException("Ya tienes Afiliado este Número de Teléfono / Contrato");
                }
                throw new IBException("Ya tienes Afiliado este Número de Cuenta / Tarjeta");
            }
            this.LogFavorito(this.AfiliadoFavorito.TipoDescripcion, this.AfiliadoFavorito.NumeroInstrumento, this.AfiliadoFavorito.BankId, this.AfiliadoFavorito.Beneficiario, this.AfiliadoFavorito.CedulaRif);
            HelperEnvioCorreo.BuscarCamposCorreo(base.sCod, base.Afiliado.sCO_Nombres, base.Afiliado.CO_Email, new decimal(0), string.Empty, string.Empty, string.Empty, this.AfiliadoFavorito.Beneficiario, this.AfiliadoFavorito.NumeroInstrumento, this.AfiliadoFavorito.TipoTarjetaCredito, this.AfiliadoFavorito.NumeroInstrumento, "", "", this.AfiliadoFavorito.TipoDescripcion, "", "", this.AfiliadoFavorito.BankId, "");
            return(empty);
        }
Пример #6
0
 protected void btnConfirmar_Click(object sender, EventArgs e)
 {
     try
     {
         this.ValidarClaves();
         //Modificado 27/08/2018 por Liliana Guerra clave a mayuscula
         //if (HelperLogons.ActualizarClaveLogin(this.Afiliado.nAF_Id, this.Afiliado.sAF_Password, this.txtPassNew.Text.Trim(), int.Parse(this.ddlDiasCaducidad.SelectedValue), this.Afiliado.sIP, this.sCod))
         if (HelperLogons.ActualizarClaveLogin(this.Afiliado.nAF_Id, this.Afiliado.sAF_Password, this.txtPassNew.Text.Trim().ToUpper(), int.Parse(this.ddlDiasCaducidad.SelectedValue), this.Afiliado.sIP, this.sCod))
         {
             this.LogCaducoClave(" Exitoso");
             this.liMensaje1.Text = "Cambio de Clave realizada Satisfactoriamente";
             this.liMensaje2.Text = "Por seguridad te recomendamos cambiar periódicamente tus claves";
             HelperEnvioCorreo.BuscarCamposCorreo(37, this.Afiliado.sCO_Nombres.ToUpper(), this.Afiliado.CO_Email, new decimal(0), "", "", "", this.Afiliado.sCO_Nombres, "", "", "", "", "", "", "", "", "", "");
         }
         else
         {
             this.LogCaducoClave(" Fallido");
             this.liMensaje1.Text = "Problemas para realizar el Cambio de Clave";
             this.liMensaje2.Text = "Por favor intenta más tarde";
         }
         this.liMensaje.Visible      = false;
         this.panelClaves.Visible    = false;
         this.panelResultado.Visible = true;
     }
     catch (PoliticaUsuarioClave.ErrorClaveException errorClaveException)
     {
         WebUtils.MessageBox(this, errorClaveException.Message);
     }
     catch (IBException bException)
     {
         WebUtils.MessageBox2005(this, bException.IBMessage);
     }
     catch (Exception exception)
     {
         WebUtils.MessageBox2005(this, exception.Message);
     }
 }
Пример #7
0
        public override string EjecutarAccion()
        {
            DateTime         now;
            decimal          monto           = this.Monto;
            EnumTipoFavorito tipoTransaccion = this.TipoTransaccion;

            // Liliana Guerra 08 Nov 2019 EXTRA EFECTIVO
            if (tipoTransaccion == EnumTipoFavorito.ExtraEfectivoTDC)
            {
                this.SCod_Trans = "EETDC";
                //this.LogDiario(0);
                RespuestaIntrfdsjv respuestaIntrfdsjv3 = HelperIbs.ibsTransfPgoBAV(base.Afiliado.AF_CodCliente, base.Afiliado.sAF_Rif, this.CtaDebitar, base.Afiliado.sAF_Rif, this.CtaAcreditar, monto, 0, DateTime.Now, TransferenciaTipoOperacion.Transferencia, string.Empty, TipoServicio.NoAplica);
                //LineaExtracredito solicitud = HelperExtracredito.solicAprobacion(CedulaBeneficiario, CtaAcreditar, CtaDebitar, montoSolic, cantCuotas, montoCuota);

                this.mensaje = string.Concat("IB", " OK");
                this.LogTransferenciasPagos();
            }

            else if (tipoTransaccion <= EnumTipoFavorito.TransferenciaOtrosBancosTerceros)
            {
                switch (tipoTransaccion)
                {
                case EnumTipoFavorito.PagoServicioElectricidadCaracas:
                {
                    this.Instrumento = this.numContrato;
                    this.SCod_Trans  = "PAEDC";
                    if (this.RdoSelected == 1)
                    {
                        this.PagoServicios(monto, TipoServicio.EDC1);
                        break;
                    }
                    else if (this.RdoSelected == 2)
                    {
                        this.PagoServicios(monto, TipoServicio.EDC2);
                        break;
                    }
                    else if (this.RdoSelected == 3)
                    {
                        this.PagoServicios(monto, TipoServicio.EDC3);
                        break;
                    }
                    else
                    {
                        break;
                    }
                }

                case EnumTipoFavorito.PagoServicioCANTV:
                {
                    this.Instrumento = this.numContrato;
                    this.SCod_Trans  = "PAGSE";
                    this.PagoServicios(monto, TipoServicio.CANTV);
                    break;
                }

                case EnumTipoFavorito.PagoServicioElectricidadCaracas | EnumTipoFavorito.PagoServicioCANTV:
                {
                    break;
                }

                case EnumTipoFavorito.PagoServicioCANTVNET:
                {
                    this.Instrumento = this.numContrato;
                    this.SCod_Trans  = "PACNN";
                    this.PagoServicios(monto, TipoServicio.CantvNET);
                    break;
                }

                case EnumTipoFavorito.PagoServicioMovilnet:
                {
                    this.Instrumento = this.numContrato;
                    this.SCod_Trans  = "PAMOV";
                    this.PagoServicios(monto, TipoServicio.Movilnet);
                    break;
                }

                default:
                {
                    EnumTipoFavorito enumTipoFavorito = tipoTransaccion;
                    if (enumTipoFavorito == EnumTipoFavorito.TransferenciaMismoTitularBAV)
                    {
                        this.SCod_Trans = "TBAMT";
                        this.LogDiario(0);
                        RespuestaIntrfdsjv respuestaIntrfdsjv3 = HelperIbs.ibsTransfPgoBAV(base.Afiliado.AF_CodCliente, base.Afiliado.sAF_Rif, this.CtaDebitar, base.Afiliado.sAF_Rif, this.CtaAcreditar, monto, 0, DateTime.Now, TransferenciaTipoOperacion.Transferencia, string.Empty, TipoServicio.NoAplica);
                        if ((respuestaIntrfdsjv3.intrfdsjv.EErrores.SVectorCod == string.Empty ? false : !respuestaIntrfdsjv3.intrfdsjv.EErrores.SVectorCod.Trim().Equals(string.Empty)))
                        {
                            throw new IBException(respuestaIntrfdsjv3.intrfdsjv.EErrores.SVectorCod.Trim(), "IBSX");
                        }
                        this.mensaje = respuestaIntrfdsjv3.intrfdsjv.SReferencia;
                        if (!string.IsNullOrEmpty(this.mensaje))
                        {
                            this.mensaje = string.Concat("IB", this.mensaje.Trim().PadLeft(10, '0'));
                            this.LogTransferenciasPagos();
                        }
                        else
                        {
                            goto Label0;
                        }
                    }
                    else if (enumTipoFavorito == EnumTipoFavorito.TransferenciaTercerosBAV)
                    {
                        this.SCod_Trans = "TBTER";
                        this.LogDiario(0);
                        RespuestaIntrfdsjv respuestaIntrfdsjv4 = HelperIbs.ibsTransfPgoBAV(base.Afiliado.AF_CodCliente, base.Afiliado.sAF_Rif, this.CtaDebitar, this.CedulaBeneficiario, this.CtaAcreditar, monto, 0, DateTime.Now, TransferenciaTipoOperacion.TransferenciaTer, string.Empty, TipoServicio.NoAplica);
                        if ((respuestaIntrfdsjv4.intrfdsjv.EErrores.SVectorCod == string.Empty ? false : !respuestaIntrfdsjv4.intrfdsjv.EErrores.SVectorCod.Trim().Equals(string.Empty)))
                        {
                            throw new IBException(respuestaIntrfdsjv4.intrfdsjv.EErrores.SVectorCod.Trim(), "IBSX");
                        }
                        this.mensaje = respuestaIntrfdsjv4.intrfdsjv.SReferencia;
                        if (!string.IsNullOrEmpty(this.mensaje))
                        {
                            this.mensaje = string.Concat("IB", this.mensaje.Trim().PadLeft(10, '0'));
                            this.LogTransferenciasPagos();
                            string   cOCelular3 = base.Afiliado.CO_Celular;
                            object[] objArray2  = new object[] { "BAV informa Transferencia por Bs. ", monto, " de su cuenta ", this.CtaDebitar.Substring(10, 10), " a la cuenta ", this.CtaAcreditar.Substring(10, 10), " en fecha ", null, null };
                            now          = DateTime.Now;
                            objArray2[7] = now.ToString("dd/MM/yyyy hh:mm:ss");
                            objArray2[8] = ". Si la desconoce llame al 0500-288.00.01";
                            HelperTedexis.sendSMS(cOCelular3, string.Concat(objArray2));
                        }
                        else
                        {
                            goto Label0;
                        }
                    }
                    else
                    {
                        EnumTipoFavorito enumTipoFavorito1 = tipoTransaccion;
                        if (enumTipoFavorito1 == EnumTipoFavorito.TransferenciaOtrosBancosMismoTitular)
                        {
                            this.SCod_Trans = "TBOMT";
                            this.LogDiario(0);
                            RespuestaInextdsjv respuestaInextdsjv2 = HelperIbs.ibsTransfPgoOtros(base.Afiliado.AF_CodCliente, base.Afiliado.sAF_Rif, DateTime.Now, monto, this.CtaDebitar, base.Afiliado.sCO_Nombres.Trim(), this.CtaAcreditar, this.Beneficiario.Trim(), TransferenciaTipoVia.TransferenciaExterna, base.Afiliado.sAF_Rif, this.CedulaBeneficiario, "220", this.SCodBco);
                            if ((respuestaInextdsjv2.inextdsjv.EErrores.SVectorCod == string.Empty ? false : !respuestaInextdsjv2.inextdsjv.EErrores.SVectorCod.Trim().Equals(string.Empty)))
                            {
                                throw new IBException(respuestaInextdsjv2.inextdsjv.EErrores.SVectorCod.Trim(), "IBSX");
                            }
                            this.mensaje = respuestaInextdsjv2.inextdsjv.SReferencia;
                            if (!string.IsNullOrEmpty(this.mensaje))
                            {
                                this.mensaje = string.Concat("IB", this.mensaje.Trim().PadLeft(10, '0'));
                                this.LogTransferenciasPagos();
                                string   str3      = base.Afiliado.CO_Celular;
                                object[] objArray3 = new object[] { "BAV informa Transferencia por Bs. ", monto, " de su cuenta ", this.CtaDebitar.Substring(10, 10), " a la cuenta ", this.CtaAcreditar.Substring(10, 10), " en fecha ", null, null };
                                now          = DateTime.Now;
                                objArray3[7] = now.ToString("dd/MM/yyyy hh:mm:ss");
                                objArray3[8] = ". Si la desconoce llame al 0500-288.00.01";
                                HelperTedexis.sendSMS(str3, string.Concat(objArray3));
                            }
                            else
                            {
                                goto Label0;
                            }
                        }
                        else if (enumTipoFavorito1 == EnumTipoFavorito.TransferenciaOtrosBancosTerceros)
                        {
                            this.SCod_Trans = "TBOTE";
                            this.LogDiario(0);
                            RespuestaInextdsjv respuestaInextdsjv3 = HelperIbs.ibsTransfPgoOtros(base.Afiliado.AF_CodCliente, base.Afiliado.sAF_Rif, DateTime.Now, monto, this.CtaDebitar, base.Afiliado.sCO_Nombres, this.CtaAcreditar, this.Beneficiario, TransferenciaTipoVia.TransferenciaExternaTer, base.Afiliado.sAF_Rif, this.CedulaBeneficiario, "220", this.SCodBco);
                            if ((respuestaInextdsjv3.inextdsjv.EErrores.SVectorCod == string.Empty ? false : !respuestaInextdsjv3.inextdsjv.EErrores.SVectorCod.Trim().Equals(string.Empty)))
                            {
                                throw new IBException(respuestaInextdsjv3.inextdsjv.EErrores.SVectorCod.Trim(), "IBSX");
                            }
                            this.mensaje = respuestaInextdsjv3.inextdsjv.SReferencia;
                            if (!string.IsNullOrEmpty(this.mensaje))
                            {
                                this.mensaje = string.Concat("IB", this.mensaje.Trim().PadLeft(10, '0'));
                                this.LogTransferenciasPagos();
                                string   cOCelular4 = base.Afiliado.CO_Celular;
                                object[] str4       = new object[] { "BAV informa Transferencia por Bs. ", monto, " de su cuenta ", this.CtaDebitar.Substring(10, 10), " a la cuenta ", this.CtaAcreditar.Substring(10, 10), " en fecha ", null, null };
                                now     = DateTime.Now;
                                str4[7] = now.ToString("dd/MM/yyyy hh:mm:ss");
                                str4[8] = ". Si la desconoce llame al 0500-288.00.01";
                                HelperTedexis.sendSMS(cOCelular4, string.Concat(str4));
                            }
                            else
                            {
                                goto Label0;
                            }
                        }
                    }
                    break;
                }
                }
            }
            else
            {
                switch (tipoTransaccion)
                {
                case EnumTipoFavorito.AdelantodeEfectivoTDC:
                {
                    this.SCod_Trans = "TAVEF";
                    this.LogDiario(1);
                    RespuestaIntrfdsjv respuestaIntrfdsjv = HelperIbs.ibsTransfPgoBAV(base.Afiliado.AF_CodCliente, base.Afiliado.sAF_Rif, this.CtaDebitar, base.Afiliado.sAF_Rif, this.CtaAcreditar, monto, 0, DateTime.Now, TransferenciaTipoOperacion.Avance, string.Empty, TipoServicio.NoAplica);
                    if ((respuestaIntrfdsjv.intrfdsjv.EErrores.SVectorCod == null ? false : !respuestaIntrfdsjv.intrfdsjv.EErrores.SVectorCod.Trim().Equals(string.Empty)))
                    {
                        throw new IBException(respuestaIntrfdsjv.intrfdsjv.EErrores.SVectorCod.Trim(), "IBSX");
                    }
                    this.mensaje = respuestaIntrfdsjv.intrfdsjv.SReferencia;
                    if (!string.IsNullOrEmpty(this.mensaje))
                    {
                        this.mensaje = string.Concat("IB", this.mensaje.Trim().PadLeft(10, '0'));
                        this.LogTransferenciasPagos();
                        break;
                    }
                    else
                    {
                        break;
                    }
                }

                case EnumTipoFavorito.PagoTarjetaCreditoMismoTitularBAV:
                {
                    this.SCod_Trans = "PTBMT";
                    this.LogDiario(0);
                    RespuestaIntrfdsjv respuestaIntrfdsjv1 = HelperIbs.ibsTransfPgoBAV(base.Afiliado.AF_CodCliente, base.Afiliado.sAF_Rif, this.CtaDebitar, base.Afiliado.sAF_Rif, this.CtaAcreditar, monto, 0, DateTime.Now, TransferenciaTipoOperacion.Pago, this.Instrumento, TipoServicio.NoAplica);
                    if ((respuestaIntrfdsjv1.intrfdsjv.EErrores.SVectorCod == string.Empty ? false : !respuestaIntrfdsjv1.intrfdsjv.EErrores.SVectorCod.Trim().Equals(string.Empty)))
                    {
                        throw new IBException(respuestaIntrfdsjv1.intrfdsjv.EErrores.SVectorCod.Trim(), "IBSX");
                    }
                    this.mensaje = respuestaIntrfdsjv1.intrfdsjv.SReferencia;
                    if (!string.IsNullOrEmpty(this.mensaje))
                    {
                        this.mensaje      = string.Concat("IB", this.mensaje.Trim().PadLeft(10, '0'));
                        this.CtaAcreditar = this.Instrumento;
                        this.LogTransferenciasPagos();
                        break;
                    }
                    else
                    {
                        break;
                    }
                }

                case EnumTipoFavorito.PagoTarjetaCreditoTercerosBAV:
                {
                    this.SCod_Trans = "PTBTE";
                    this.LogDiario(0);
                    RespuestaIntrfdsjv respuestaIntrfdsjv2 = HelperIbs.ibsTransfPgoBAV(base.Afiliado.AF_CodCliente, base.Afiliado.sAF_Rif, this.CtaDebitar, this.CedulaBeneficiario, this.CtaAcreditar, monto, 0, DateTime.Now, TransferenciaTipoOperacion.Pago, this.Instrumento, TipoServicio.NoAplica);
                    if ((respuestaIntrfdsjv2.intrfdsjv.EErrores.SVectorCod == null ? false : !respuestaIntrfdsjv2.intrfdsjv.EErrores.SVectorCod.Trim().Equals(string.Empty)))
                    {
                        throw new IBException(respuestaIntrfdsjv2.intrfdsjv.EErrores.SVectorCod.Trim(), "IBSX");
                    }
                    this.mensaje = respuestaIntrfdsjv2.intrfdsjv.SReferencia;
                    if (!string.IsNullOrEmpty(this.mensaje))
                    {
                        this.mensaje      = string.Concat("IB", this.mensaje.Trim().PadLeft(10, '0'));
                        this.CtaAcreditar = this.Instrumento;
                        this.LogTransferenciasPagos();
                        string   cOCelular = base.Afiliado.CO_Celular;
                        object[] str       = new object[] { "BAV informa PagoTDC por Bs. ", monto, " de su cuenta ", this.CtaDebitar.Substring(10, 10), " a la tarjeta ", this.CtaAcreditar.Substring(8, 8), " en fecha ", null, null };
                        now    = DateTime.Now;
                        str[7] = now.ToString("dd/MM/yyyy hh:mm:ss");
                        str[8] = ". Si la desconoce llame al 0500-288.00.01";
                        HelperTedexis.sendSMS(cOCelular, string.Concat(str));
                        break;
                    }
                    else
                    {
                        break;
                    }
                }

                default:
                {
                    if (tipoTransaccion == EnumTipoFavorito.PagoTarjetaCreditoOtrosBancosMismoTitular)
                    {
                        string str1 = string.Concat(this.SCodBco, this.CtaAcreditar);
                        if (this.CtaAcreditar.Length < 16)
                        {
                            str1 = string.Concat(this.SCodBco, this.CtaAcreditar.Substring(0, this.CtaAcreditar.Length - 9).PadLeft(7, '0'), this.CtaAcreditar.Substring(this.CtaAcreditar.Length - 9, 9));
                        }
                        this.SCod_Trans = "PTOMT";
                        this.LogDiario(0);
                        RespuestaInextdsjv respuestaInextdsjv = HelperIbs.ibsTransfPgoOtros(base.Afiliado.AF_CodCliente, base.Afiliado.sAF_Rif, DateTime.Now, monto, this.CtaDebitar, base.Afiliado.sCO_Nombres.Trim(), str1, this.Beneficiario.Trim(), TransferenciaTipoVia.PagoTDC, base.Afiliado.sAF_Rif, this.CedulaBeneficiario, "225", this.SCodBco);
                        if ((respuestaInextdsjv.inextdsjv.EErrores.SVectorCod == null ? false : !respuestaInextdsjv.inextdsjv.EErrores.SVectorCod.Trim().Equals(string.Empty)))
                        {
                            throw new IBException(respuestaInextdsjv.inextdsjv.EErrores.SVectorCod.Trim(), "IBSX");
                        }
                        this.mensaje = respuestaInextdsjv.inextdsjv.SReferencia;
                        if (!string.IsNullOrEmpty(this.mensaje))
                        {
                            this.mensaje = string.Concat("IB", this.mensaje.Trim().PadLeft(10, '0'));
                            this.LogTransferenciasPagos();
                            string   cOCelular1 = base.Afiliado.CO_Celular;
                            object[] objArray   = new object[] { "BAV informa PagoTDC por Bs. ", monto, " de su cuenta ", this.CtaDebitar.Substring(10, 10), " a la tarjeta ", str1.Substring(8, 8), " en fecha ", null, null };
                            now         = DateTime.Now;
                            objArray[7] = now.ToString("dd/MM/yyyy hh:mm:ss");
                            objArray[8] = ". Si la desconoce llame al 0500-288.00.01";
                            HelperTedexis.sendSMS(cOCelular1, string.Concat(objArray));
                            break;
                        }
                        else
                        {
                            break;
                        }
                    }
                    else if (tipoTransaccion != EnumTipoFavorito.PagoTarjetaCreditoOtrosBancosTerceros)
                    {
                        break;
                    }
                    else
                    {
                        this.SCod_Trans = "PTOTE";
                        this.LogDiario(0);
                        string str2 = string.Concat(this.SCodBco, this.CtaAcreditar);
                        if (this.CtaAcreditar.Length < 16)
                        {
                            str2 = string.Concat(this.SCodBco, this.CtaAcreditar.Substring(0, this.CtaAcreditar.Length - 9).PadLeft(7, '0'), this.CtaAcreditar.Substring(this.CtaAcreditar.Length - 9, 9));
                        }
                        RespuestaInextdsjv respuestaInextdsjv1 = HelperIbs.ibsTransfPgoOtros(base.Afiliado.AF_CodCliente, base.Afiliado.sAF_Rif, DateTime.Now, monto, this.CtaDebitar, base.Afiliado.sCO_Nombres, str2, this.Beneficiario, TransferenciaTipoVia.PagoTDC, base.Afiliado.sAF_Rif, this.CedulaBeneficiario, "225", this.SCodBco);
                        if ((respuestaInextdsjv1.inextdsjv.EErrores.SVectorCod == null ? false : !respuestaInextdsjv1.inextdsjv.EErrores.SVectorCod.Trim().Equals(string.Empty)))
                        {
                            throw new IBException(respuestaInextdsjv1.inextdsjv.EErrores.SVectorCod.Trim(), "IBSX");
                        }
                        this.mensaje = respuestaInextdsjv1.inextdsjv.SReferencia;
                        if (!string.IsNullOrEmpty(this.mensaje))
                        {
                            this.mensaje = string.Concat("IB", this.mensaje.Trim().PadLeft(10, '0'));
                            this.LogTransferenciasPagos();
                            string   cOCelular2 = base.Afiliado.CO_Celular;
                            object[] objArray1  = new object[] { "BAV informa PagoTDC por Bs. ", monto, " de su cuenta ", this.CtaDebitar.Substring(10, 10), " a la tarjeta ", str2.Substring(8, 8), " en fecha ", null, null };
                            now          = DateTime.Now;
                            objArray1[7] = now.ToString("dd/MM/yyyy hh:mm:ss");
                            objArray1[8] = ". Si la desconoce llame al 0500-288.00.01";
                            HelperTedexis.sendSMS(cOCelular2, string.Concat(objArray1));
                            break;
                        }
                        else
                        {
                            break;
                        }
                    }
                }
                }
            }
Label0:
            HelperTransaccion.AcumuladorTransVerifyUpdate(false, base.Afiliado.nAF_Id, this.Monto, this.sCod, this.SCod_Trans);
            HelperEnvioCorreo.BuscarCamposCorreo(this.sCod, base.Afiliado.sCO_Nombres, base.Afiliado.CO_Email, this.Monto, (string.IsNullOrEmpty(this.CtaAcreditar) ? string.Empty : this.CtaAcreditar), (string.IsNullOrEmpty(this.CtaAcreditar) ? string.Empty : this.CtaAcreditar), this.mensaje, (string.IsNullOrEmpty(this.Beneficiario) ? string.Empty : this.Beneficiario), (string.IsNullOrEmpty(this.CtaAcreditar) ? string.Empty : this.CtaAcreditar), (string.IsNullOrEmpty(this.TipoTarj) ? string.Empty : this.TipoTarj), (string.IsNullOrEmpty(this.CtaDebitar) ? string.Empty : this.CtaDebitar), string.Empty, string.Empty, (string.IsNullOrEmpty(this.Concepto) ? string.Empty : this.Concepto), (string.IsNullOrEmpty(this.CtaDebitar) ? string.Empty : this.CtaDebitar), (string.IsNullOrEmpty(base.Afiliado.sCO_Nombres) ? string.Empty : base.Afiliado.sCO_Nombres), (string.IsNullOrEmpty(this.NumBanco) ? string.Empty : this.NumBanco), (string.IsNullOrEmpty(this.Email) ? string.Empty : this.Email));
            return(this.mensaje);
        }
Пример #8
0
        protected void btnAceptar_Click(object sender, EventArgs e)
        {
            try
            {
                this.ValidarCampos();
                List <KeyValuePair <short, string> > preguntasRespuestas = this.PreguntasDesafio.getPreguntasRespuestas();
                Contactos contacto = new Contactos()
                {
                    sCO_Nombres      = this.lblNombreCompleto.Text,
                    sCO_Apellidos    = string.Empty,
                    nTI_id           = 10,
                    nES_id           = (long)2,
                    sCO_DocId        = this.lblCedula.Text.Substring(1, this.lblCedula.Text.Length - 1),
                    nCO_TipoDocId    = 1,
                    sCO_Email        = this.txtCorreo.Text.Trim(),
                    sCO_Telefono     = string.Empty,
                    sCO_EdificioCasa = string.Empty,
                    sCO_Calle        = string.Empty,
                    sCO_Urbanizacion = string.Empty,
                    sCO_CodigoPostal = string.Empty,
                    sCO_Ciudad       = string.Empty,
                    sCO_Estado       = string.Empty,
                    sCO_Pais         = "Venezuela",
                    sCO_Empresa      = string.Empty,
                    nCA_Id           = 2,
                    sCO_Email2       = string.Empty,
                    sCO_Telefono2    = string.Empty,
                    sCO_Celular      = this.afi.CO_Celular
                };
                this.afi.sAF_NombreUsuario = this.txtUsuario.Text.Trim();
                //Modificado 27/08/2018 por Liliana Guerra clave a mayuscula
                //this.afi.sAF_Password = CryptoUtils.EncryptMD5(this.txtClave.Trim());
                this.afi.sAF_Password        = CryptoUtils.EncryptMD5(this.txtClave.Text.Trim().ToUpper());
                this.afi.nTI_Id              = contacto.nTI_id;
                this.afi.nCO_Id              = contacto.nCO_id;
                this.afi.sAF_PreguntaDesafio = "";
                this.afi.sAF_RespuestaPD     = "";
                this.afi.nES_Id              = contacto.nES_id;
                this.afi.sIP             = WebUtils.GetClientIP(this);
                this.afi.AF_DiasPassword = int.Parse(this.ddlDiasCaducidad.SelectedValue);

                //WebUtils.MessageBox(this, this.afi+"/Fin AFI/ "+contacto+"/Fin Contactos/ "+string.Empty+"/Fin Empty/ "+string.Empty+"/Fin Empty/ "+preguntasRespuestas+"/Fin Preguntas Respuestas /");
                if (!HelperAfiliado.GuardarAfiliado(this.afi, contacto, string.Empty, string.Empty, preguntasRespuestas))
                {
                    this.liTitulo.Text   = "Problemas en la Afiliación del usuario";
                    this.liMensaje1.Text = "Ocurrió un error al realizar la Afiliación";
                    this.liMensaje2.Text = "Por favor intente mas tarde.";
                    this.liMensaje3.Text = string.Empty;
                }
                else
                {
                    string text = this.txtCorreo.Text;
                    if (text != string.Empty)
                    {
                        string empty  = string.Empty;
                        string str    = this.lblNombreCompleto.Text;
                        string empty1 = string.Empty;
                        string str1   = string.Empty;
                        string empty2 = string.Empty;
                        string str2   = string.Empty;
                        string empty3 = string.Empty;
                        string str3   = string.Empty;
                        string empty4 = string.Empty;
                        string str4   = string.Empty;
                        string empty5 = string.Empty;
                        string str5   = string.Empty;
                        string empty6 = string.Empty;
                        string str6   = string.Empty;
                        string empty7 = string.Empty;
                        string str7   = string.Empty;
                        HelperEnvioCorreo.BuscarCamposCorreo(46, str, text, new decimal(0), empty3, empty1, str1, empty2, str2, str3, empty4, str4, empty5, empty6, str6, empty7, str7, empty);

                        this.liTitulo.Text   = "Afiliación Exitosa";
                        this.liMensaje1.Text = "El proceso de Afiliación se ha realizado exitosamente";
                        this.liMensaje2.Text = "Te informamos que de ahora en adelante, debes utilizar este Usuario y Clave para ingresar a BAV en línea";
                        this.liMensaje3.Text = "Haz \"Click\" en ACEPTAR para ingresar a BAV en línea.";
                    }
                }
                this.panelAfiliacionExitosa.Visible = true;
                this.panelNuevoAfiliado.Visible     = false;
            }
            catch (IBException bException)
            {
                WebUtils.MessageBox(this, bException.IBMessage);
            }
            catch (Exception exception)
            {
                WebUtils.MessageBox(this, exception.Message);
            }
        }