Beispiel #1
0
 protected void btnContinuarSMS_Click(object sender, EventArgs e)
 {
     bool flag = false;
     try
     {
         if (this.txtClave.Text.Trim().Equals(string.Empty))
         {
             throw new Exception("Debe indicar la clave de Afiliación Temporal");
         }
         if (!HelperLogons.ValidarClaveTransacciones(base.Afiliado.nAF_Id, this.txtClave.Text.Trim(), WebUtils.GetClientIP(this), base.sCod))
         {
             throw new Exception("Clave inválida, por favor intente de nuevo");
         }
         flag = true;
     }
     catch (IBException bException1)
     {
         IBException bException = bException1;
         flag = true;
         if (bException.CodigoSistema.Equals("IBSX"))
         {
             WebUtils.MessageBootstrap(this, string.Concat("Se ha detectado un problema de ejecución, por favor verifique antes de realizar otra operación (", bException.ReturnCode, ")"), null);
         }
         else if ((!bException.CodigoSistema.Equals("SQLIB") ? false : bException.ReturnCode.Equals("4")))
         {
             WebUtils.MessageBootstrap(this, bException.IBMessage, null);
         }
         else
         {
             WebUtils.MessageBootstrap(this, bException.IBMessage, null);
         }
         return;
     }
     catch (Exception exception1)
     {
         Exception exception = exception1;
         flag = true;
         WebUtils.MessageBootstrap(this, exception.Message, null);
         return;
     }
     if (flag)
     {
         this.panelDatos.Visible = true;
         this.panelValidacion.Visible = false;
     }
 }
Beispiel #2
0
        private void ValidarCampos()
        {
            string str;

            if (base.Tipo_Seguridad == 1)
            {
                if (this.txtPassword.Text.Trim().Equals(string.Empty))
                {
                    throw new Exception("La Clave de Transacciones es requerida");
                }
                if (!HelperLogons.ValidarClaveTransacciones(base.Afiliado.nAF_Id, this.txtPassword.Text.Trim(), WebUtils.GetClientIP(this), base.sCod))
                {
                    throw new Exception("La Clave de Transacciones no es válida");
                }
                this.txtPassword.Text = string.Empty;
            }
            IObjetoGenerico objetoTransaccion = (IObjetoGenerico)this.tipotransaccion.ObjetoTransaccion;

            if (objetoTransaccion.GetType() == typeof(GTransferenciasPagos))
            {
                GTransferenciasPagos gTransferenciasPago = (GTransferenciasPagos)objetoTransaccion;
                string str1 = gTransferenciasPago.TipoTransaccion.ToString();
                if (base.sCod == 30)
                {
                    if (str1 != "PagoServicioCANTV")
                    {
                        str = (str1 == "PagoServicioCANTVNET" ? "PACNN" : "PAMOV");
                    }
                    else
                    {
                        str = "PAGSE";
                    }
                    str1 = str;
                }
                else if (str1.Equals("TransferenciaMismoTitularBAV"))
                {
                    str1 = "TBAMT";
                }
                else if (str1.Equals("TransferenciaTercerosBAV"))
                {
                    str1 = "TBTER";
                }
                else if (str1.Equals("TransferenciaOtrosBancosMismoTitular"))
                {
                    str1 = "TBOMT";
                }
                else if (str1.Equals("TransferenciaOtrosBancosTerceros"))
                {
                    str1 = "TBOTE";
                }
                else if (str1.Equals("PagoTarjetaCreditoMismoTitularBAV"))
                {
                    str1 = "PTBMT";
                }
                else if (str1.Equals("PagoTarjetaCreditoTercerosBAV"))
                {
                    str1 = "PTBTE";
                }
                else if (str1.Equals("PagoTarjetaCreditoOtrosBancosMismoTitular"))
                {
                    str1 = "PTOMT";
                }
                else if (str1.Equals("PagoTarjetaCreditoOtrosBancosTerceros"))
                {
                    str1 = "PTOTE";
                }
                else
                {
                    str1 = (!str1.Equals("PagoServicioElectricidadCaracas") ? "" : "PAEDC");
                }
                if ((str1.Equals("") ? false : HelperTransaccion.AcumuladorTransVerifyUpdate(true, base.Afiliado.nAF_Id, gTransferenciasPago.Monto, base.sCod, str1)))
                {
                    throw new Exception("El Monto supera al máximo diario");
                }
            }
        }