Beispiel #1
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);
        }
Beispiel #2
0
 protected void btnhome_Click(object sender, EventArgs e)
 {
     if ((!base.IsPostBack ? false : base.Tipo_Seguridad == 1))
     {
         if (this.Session["SMS"] == null)
         {
             string str = HelperAfiliado.CrearClaveTransaccionTemporal(base.Afiliado.nAF_Id);
             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);
                 this.panelDatos.Visible = false;
                 this.panelHome.Visible = false;
                 this.panelValidacion.Visible = true;
             }
         }
         else
         {
             this.panelValidacion.Visible = true;
             this.panelHome.Visible = false;
             this.panelDatos.Visible = false;
         }
     }
 }