コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            BrTypeMembership brTypeMembership = new BrTypeMembership();
            var correlativo = 0;

            if (Session["corregirdatos"] != null)
            {
                correlativo = int.Parse(brTypeMembership.GetTotalMemberships(Session["corregirdatos"].ToString()));
            }
            else
            {
                correlativo = int.Parse(brTypeMembership.GetTotalMemberships(User.Identity.Name.Split('¬')[1]));
            }
            correlativo--;
            Session["correlativoDoc"] = correlativo.ToString();
        }
コード例 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache);
                //Response.Cache.SetAllowResponseInBrowserHistory(false);
                //Response.Cache.SetNoStore();
                string correlativo = "";
                string userName    = "";
                //
                userName = User.Identity.Name.Split('¬')[1];
                BrTypeMembership brTypeMembership = new BrTypeMembership();
                correlativo = int.Parse(brTypeMembership.GetTotalMemberships(userName)).ToString();
                Session["correlativoDoc"] = correlativo;
                string currencyCode = Session["TypeCurrency"].ToString();

                Cronograma2(correlativo, currencyCode);
                Pagares2(correlativo, currencyCode);

                hlPagares.NavigateUrl    = this.RutaUrlPagare;
                hlCronograma.NavigateUrl = this.RutaUrlCronog;
            }
        }
コード例 #3
0
        protected void SendEmail_Click(object sender, EventArgs e)
        {
            bool   anwser = false;
            string nombre = "", dni = "", username = "", correo = "";

            //Session["datos"] = "Aaaaa|Aaaa|birthDay|M|DocumentType|88884444$NombreC|ApellidoC|1|313231c$bankName|nombreBankAccount|TypeAccount|nroAccount|nroTaxer|SocialReason|fiscalAdress|[email protected]|nroCell|nroCell2|country|State|City|Adress";
            //Session["carrito"] = "6000.00|descripcionDB|60|9750.00|3.25|10|TOP";
            //Session["cronograma"] = "6000|222";

            username = txtUserName.Text;

            if (string.IsNullOrEmpty(username))
            {
                return;
            }

            BrUser     brUser = new BrUser();
            MyMessages mm     = new MyMessages();

            var arrayperson = brUser.GetPersonalInformation(username).Split('|');

            if (arrayperson.Length < 5)
            {
                return;
            }
            correo   = arrayperson[5];
            nombre   = arrayperson[1] + " " + arrayperson[2];
            dni      = arrayperson[13];
            username = arrayperson[1].Substring(0, 1).ToUpper() + arrayperson[2].Substring(0, 1).ToUpper() + dni;
            string gender = arrayperson[4];
            string name   = arrayperson[1];

            BrAccount brAccount = new BrAccount();

            string codeMemb = brAccount.GetLastCodeMembership(username).Trim();

            if (string.IsNullOrEmpty(codeMemb))
            {
                MessageError.Text = "no tiene membresia.";
                return;
            }

            if (rbDoc.Checked)
            {
                BrTypeMembership brTypeMembership = new BrTypeMembership();
                var correlativo = int.Parse(brTypeMembership.GetTotalMemberships(username));
                correlativo--;
                if (correlativo < 0)
                {
                    correlativo = 0;
                }
                username = $"{username}{correlativo}";
                var ruta = HttpContext.Current.Server.MapPath("~/Resources/PoliticsPdf/");
                if (codeMemb == "KIT")
                {
                    anwser = this.SendEmailKit(name, gender, username, ruta, correo);
                }
                if (codeMemb == "EXP" || codeMemb == "LHT" || codeMemb == "STD" ||
                    codeMemb == "PLUS" || codeMemb == "TOP" || codeMemb == "VIT")
                {
                    anwser = this.SendEmailClub(name, gender, username, ruta, correo);
                }
                if (codeMemb == "EVOL" || codeMemb == "MVC")
                {
                    anwser = this.SendEmailVacational(name, gender, username, ruta, correo);
                }
                if (codeMemb == "SBY")
                {
                    anwser = this.SendEmailFounder(name, gender, username, ruta, correo);
                }
            }

            if (rbRece.Checked)
            {
                MyConstants mc          = new MyConstants();
                var         bankAccount = mc.BankAccount;
                var         repsonse_   = brAccount.GetFirtsPayCurrency(username).Split('|');

                var infoAfiliate = brAccount.GetSponsorInfo(username).Split('|');

                var nameAfiliate   = infoAfiliate[0];
                var correoAfiliate = infoAfiliate[1];

                var    firtsPay     = repsonse_[0];
                var    currencyCode = repsonse_[1];
                string fullname     = arrayperson[1].Trim().ToLower() + " " + arrayperson[2].Trim().ToLower();
                fullname = ToCapitalize(fullname);
                string[] sepName    = arrayperson[1].Split(' ');
                var      fName      = ToCapitalize(sepName[0]);
                var      bienvenido = "Bienvenido";
                if (arrayperson[4] == "F")
                {
                    bienvenido = "Bienvenida";
                }

                var cuerpo = "<html><head><title></title></head><body style='color:black'>";
                cuerpo += "<div style='width: 100%'>";
                cuerpo += "<div style='display:flex;'>";
                cuerpo += "<div style='width:50%;'>";
                cuerpo += " <img src='http://www.inresorts.club/Views/img/novologo.png' align='left' style='width: 98px;'>";
                cuerpo += "</div>";
                cuerpo += "<div style='width:50%;'>";
                cuerpo += "<img src='http://cieneguillariberadelrio.com/riberadelrio/img/image006.png' align='right' style='width: 120px;padding-top: 7px;'>";
                cuerpo += "</div>";
                cuerpo += "</div>";
                cuerpo += "<img style='width: 100%' src='http://www.inresorts.club/Views/img/fondo.png'>";
                cuerpo += "<h1 style='margin-top: 2px ;text-align: center;font-weight: bold;font-style: italic;'>" + bienvenido + " " + fName + "</h1>";
                cuerpo += "<h2 style='text-align: center;'>Muy pronto formarás parte de la familia inResorts. Estamos a la espera de que nos brindes tu comprobante de pago</h2>";
                cuerpo += "<center><p style='margin-left: 10%;margin-right: 10%;'>Cuando lo tengas listo, solo tienes que subirlo a nuestra pagina y enseguida lo estaremos validando</p></center> ";
                cuerpo += "";
                cuerpo += "<center><div style='width: 100%'>";
                cuerpo += "<p style='margin-left: 10%;margin-right: 10%; '> Click en el boton para validar el pago.</p>";
                cuerpo += "<a style='text-decoration: none;' href='https://inresorts.club/Views/Login.aspx?usuario=" + dni + "&fullname=" + fullname + "'>";
                cuerpo += "<center><div style='background: #0d80ea;border-radius:10px;width: 158px;height: 30px;font-size: 16px;color: white;font-weight: bold;padding: 4px;padding-top: 10px;cursor: pointer;text-align: center;margin: 23px;'>Validar pago<div></center>";
                cuerpo += "</a></div></center>";

                cuerpo += "<center><div style='width: 100%'>";
                cuerpo += "<p style='margin-left: 10%;margin-right: 10%; '></p>";
                cuerpo += "<center>Recuerde que el pago lo puede realizar mediante deposito en nuestra cuenta corriente atravez de Agente BCP, Agencia BCP O transferencia bancaria desde Banca por Internet.</center>";
                cuerpo += "</div></center>";


                cuerpo += "<center><div style='width: 100%'>";
                cuerpo += "<p style='margin-left: 10%;margin-right: 10%; '>Cuenta Bancaria </p>";
                cuerpo += $"<center>BCP: N° {bankAccount} - Valle Encantado S.A.C</center>";
                cuerpo += "</div></center>";

                cuerpo += "<center><div style='width: 50%;display: flex;border-radius: 10px;margin: 11px;'>";
                cuerpo += "<p style='margin-left: 10%;margin-right: 10%;'>Monto a depositar</p>";

                cuerpo += "<center style=' margin: 12px;'> " + firtsPay + " (" + currencyCode + ")</center>";
                cuerpo += "</div></center>";

                //cuerpo += "<center><img src='http://www.inresorts.club/Views/img/recibo.png' align='left' style='width: 100%'></center></div>";
                cuerpo += "<div style='margin-left: 9%;'>";
                cuerpo += "<p style='margin:5px'>Patrocinador: " + nameAfiliate + "</p>";
                cuerpo += "<p style='margin:5px'>Saludos Cordiales</p><p  style='margin:5px'>Equipo inResorts</p></div>";
                cuerpo += "<div style='margin: 5%; width: 70%;background-image: url('https://lh3.googleusercontent.com/NSDQDl8ytJrWSwMe0b3b9DlxubIal-RBEPIWI1a-15f9ynEGQ9eYjTnm-PVqst26f4KJThmjOEPK4lcVoaUw=w1016-h917-rw');'></ div > ";
                cuerpo += "<img style='width: 100%' src='https://preview.ibb.co/ixY7iL/fondo222.png'>";
                cuerpo += "</div>";

                cuerpo += "</body>";
                cuerpo += "</html>";

                Email email = new Email();
                anwser = email.SubmitEmail(correo, "[Ribera del Rio - Inresorts, Registro en Proceso] ", cuerpo);

                string correoOamr = "*****@*****.**";

                email.SubmitEmail(correoOamr, "[Ribera del Rio - Inresorts, Registro en Proceso] ", cuerpo);

                if (correoAfiliate != "")
                {
                    email.SubmitEmail(correoAfiliate, "[Ribera del Rio - Inresorts, Registro en Proceso] ", cuerpo);
                }
            }

            if (rbQuote.Checked)
            {
                //SendEmailAmountRestante(username, "PEN", "", "", "", "", "");
            }

            MessageError.Text  = string.Empty;
            MessageSucces.Text = string.Empty;
            if (!anwser)
            {
                MessageError.Text = "ocurred error.";
                return;
            }
            MessageSucces.Text = "correo enviado.";
        }
コード例 #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            MyConstants mc = new MyConstants();

            try
            {
                string token        = "";
                int    numberQuotes = 0;

                token        = Request["token"].ToString();
                numberQuotes = int.Parse(Request["numcuotes"].ToString());

                //pagar con wallet
                BrWallet brWallet      = new BrWallet();
                var      amountWalletc = decimal.Parse(brWallet.GetAmount(User.Identity.Name.Split('¬')[1]));

                var amountTotal = 0m;

                if (Session["MontoWallet"] != null)
                {
                    amountTotal = decimal.Parse(Session["MontoWallet"].ToString());
                }


                var amountRestan = amountTotal - amountWalletc;

                //if (amountWalletc < quota)
                //{
                //    MessageError.Text = "No tiene el monto suficiente para realizar Pago.";
                //    return;
                //}

                var methods2 = "CULQI";

                var recibe = string.Empty;



                BrPayments brPayments    = new BrPayments();
                BrUser     brUser        = new BrUser();
                string     dataKitMember = Session["cronograma"].ToString();


                string date = dataKitMember.Split('$')[1];

                var cart = Session["carrito"].ToString();

                var arrayCart = cart.Split('|');
                var codeMemb  = arrayCart[6];

                string[] datos   = Session["datos"].ToString().Split('$');
                var      dataBdd = Session["datos"].ToString();



                if (Session["datos"] == null)
                {
                    Response.Write("false¬Ha Ocurrido Un Error, no hay datos.");
                    return;
                }
                string[] arraycontacto = datos[3].Split('|');
                string[] arrayperson   = datos[0].Split('|');


                string dni = arrayperson[5];

                var newUserName     = User.Identity.Name.Split('¬')[1];
                var emailNewUser    = arraycontacto[0].Trim();
                var codeCurrencyPay = Session["TypeCurrency"].ToString();



                string[] array1          = Session["cronogramaYa"].ToString().Split('^');
                string[] datosMem        = array1[0].Split('|');
                string[] array2          = array1[1].Split('~');
                string[] cuotas          = array2[0].Split('¬');
                string   cronoActiv      = "";
                var      quotesPendiente = (cuotas.Length - 2).ToString();
                for (int i = 0; i < cuotas.Length - 1; i++)
                {
                    var fila = cuotas[i].Split('|');
                    if (fila[0].Substring(0, 7) != "Inicial")
                    {
                        cronoActiv += DateTime.Parse(fila[1]).ToString("yyyy-MM-dd");
                        //amountFinanciade = double.Parse(fila[2].Replace("S/.", ""));
                        break;
                    }
                    else
                    {
                        cronoActiv += DateTime.Parse(fila[1]).ToString("yyyy-MM-dd") + "¬";
                    }
                }

                var respDataper = brPayments.PersonGetData(newUserName);

                string respData = string.Empty;
                respData = respData + '^' + dataKitMember;

                // isRegister = brPayments.GetCalculatePaymentSchedule(respData, newUserName);
                //string data2 = Session["financedAmount"].ToString();

                string data2 = "0";
                //string codeCurrency = Session["TypeCurrency"].ToString();



                var currencyCode = Session[""].ToString();

                PayCulqi payCulqi = new PayCulqi();

                string[] culqiAnwser = payCulqi.newPayment(newUserName, emailNewUser, double.Parse(amountRestan.ToString()), token, numberQuotes, codeCurrencyPay).Split('¬');
                if (culqiAnwser[0] == "false")
                {
                    Response.Write("false¬" + culqiAnwser[1]);
                    return;
                }


                Int32 ansNmembershi = brUser.RegisterNmembership(codeMemb + '|' + newUserName, data2, 1, codeCurrencyPay);

                BrTypeMembership brTypeMemb = new BrTypeMembership();
                string           typeChange = arrayCart[4];

                //var isRegister = brPayments.GetCalculatePaymentSchedule(respData, newUserName, ansNmembershi, typeChange, 1);
                bool isRegister = false;
                if (Session["codeUpgrate"] != null)
                {
                    //si es upgrate

                    isRegister = brPayments.GetCalculatePaymentScheduleUpgrate(respData, newUserName, ansNmembershi, typeChange, 1);
                    if (!isRegister)
                    {
                        Response.Write("false¬Ha Ocurrido Un Error al Intentar Registrar el Cronograma de Pagos del Usuario");
                        return;
                    }

                    if (Session["dateup"] != null)
                    {
                        string dateup = Session["dateup"].ToString();
                        bool   an     = brPayments.PutDateUpgrate(ansNmembershi, dateup);
                    }

                    //registramos si upgrate para
                }
                else
                {
                    //si no es upgrate

                    isRegister = brPayments.GetCalculatePaymentSchedule(respData, newUserName, ansNmembershi, typeChange, 1);
                    if (!isRegister)
                    {
                        Response.Write("false¬Ha Ocurrido Un Error al Intentar Registrar el Cronograma de Pagos del Usuario");
                        return;
                    }
                    //cronograma de activacion
                    BrActivation brActivation = new BrActivation();
                    bool         registerActi = brActivation.PutCronograma(cronoActiv, newUserName, ansNmembershi);
                }

                if (Session["codeUpgrate"] != null)
                {
                    //el id de account n membership del upgrate ¬ y el nuevo
                    int  codeUpgrate = int.Parse(Session["codeUpgrate"].ToString());
                    bool upgrate     = brTypeMemb.CancelMembershipUpgrate(codeUpgrate, ansNmembershi);
                    if (!upgrate)
                    {
                        Response.Write("false¬Ha Ocurrido Un Error al Intentar Registrar el Cronograma de Pagos del Usuario");
                        return;
                    }
                    BrActivation brActivation  = new BrActivation();
                    string       fechaAnterior = Session["fechaanterior"].ToString();
                    bool         registerActi  = brActivation.PutCronogramaUpgrade(fechaAnterior, newUserName, ansNmembershi, codeUpgrate);
                }
                //validamos si tiene consumo


                if (!isRegister)
                {
                    // "Ha Ocurrido Un Error al Intentar Registrar el Cronograma de Pagos del Usuario";
                    return;
                }

                //BrActivation brActivation = new BrActivation();
                //bool registerActi = brActivation.PutCronograma(cronoActiv, newUserName, ansNmembershi);

                //obtengo el monto a pagar

                string[] username_idmen_amount_email = brUser.getAmountPay(newUserName).Split('¬');
                if (username_idmen_amount_email.Length < 4)
                {
                    // "false¬Ha Ocurrido Un Error al Intentar Obtener el monto a Pagar";
                    return;
                }
                var idMemberDetails = int.Parse(username_idmen_amount_email[1]);
                var amountPay       = double.Parse(username_idmen_amount_email[2]);
                emailNewUser                = username_idmen_amount_email[3];
                codeCurrencyPay             = username_idmen_amount_email[4];
                date                        = null;
                username_idmen_amount_email = null;
                dataKitMember               = null;
                respData                    = null;


                var namePeson = arrayperson[0].Trim() + " " + arrayperson[1].Trim();

                var dateCurrent = DateTime.Now.ToString("yyyy-MM-dd").Split('-');;

                string tranferId    = "";
                string numReceipt   = "0";
                string datecomplete = dateCurrent[2] + " de " + GetMonth(dateCurrent[1]) + " del " + dateCurrent[0];
                string nAffiliate   = "";

                string     hour       = DateTime.Now.ToString("HH:mm:ss");
                string     detalle    = amountRestan.ToString();
                MyMessages myMessages = new MyMessages();
                namePeson = myMessages.ToCapitalize(namePeson);
                //cvbc
                var imgTicket = GetRecibo(tranferId, newUserName, numReceipt, datecomplete, nAffiliate, codeMemb, namePeson, hour, detalle, quotesPendiente, " Inicial 1");


                /*=============================================================================================================================*/

                //var currencyCode = Session["CurrencyCode"].ToString();
                BrMembershipPayDetail brMembership = new BrMembershipPayDetail();
                var response = brMembership.GetQuote(idMemberDetails, User.Identity.Name.Split('¬')[1]).Split('|');

                if (decimal.Parse(response[0]) == 0)
                {
                    // "Ocurrio un error.";
                    return;
                }
                var amount = decimal.Parse(response[0]).ToString();


                if (codeCurrencyPay == "USD")
                {
                    amount = (decimal.Parse(amount) * decimal.Parse(typeChange)).ToString();
                }


                var idInfo = idMemberDetails.ToString();
                //dos es que wallet es una parte del pago de una cuota
                var typeInfo         = "2";
                var walleOperationId = "2";


                bool IsPay = brMembership.IsPayQuote(idMemberDetails.ToString());

                if (!IsPay)
                {
                    // "Tu Cuota ya esta Pagada.Verifica tu cronograma de pagos.";
                    return;
                }


                var amountWallet = decimal.Parse(brWallet.GetAmount(User.Identity.Name.Split('¬')[1]));

                //if (amountWallet < decimal.Parse(amount))
                //{
                //    MessageError.Text = "No tiene el monto suficiente para realizar Pago.";
                //    return;
                //}

                imgTicket += recibe;

                var moneyStatus = 0;

                if (amountWallet > 0)
                {
                    var imgTicketWalle = GetRecibo(idMemberDetails.ToString(), newUserName, numReceipt, datecomplete, nAffiliate, codeMemb, namePeson, hour, amountWalletc.ToString(), quotesPendiente, " Inicial 1");
                    imgTicket += $"~{imgTicketWalle}";
                    //amount | @idInfo | @typeInfo | @walletOperationId | @currencyCode | @typeChange | idmembershipDetail | imgTicket
                    string data   = $"{amountWalletc}|{idInfo}|{typeInfo}|{walleOperationId}|PEN|{typeChange}|{idMemberDetails.ToString()}|{imgTicket}";
                    bool   answer = brWallet.Put(data, User.Identity.Name.Split('¬')[1], moneyStatus);

                    //Extorno

                    if (!answer)
                    {
                        // = "Ocurrio un error.";
                        return;
                    }
                }
                //MessageSucces.Text = "Su Pago de Realizo Con Exito.";

                /*=============================================================================================================================*/

                var amountOthers = amount;
                //esta en estado pendienete
                var statusPay = 1;

                //marcar como pagado en la tabla membershipdetails

                //TODO: Agregar los detalles del pago


                bool habiliAccount = brUser.BiPayQuote(idMemberDetails, imgTicket, amountWalletc, amountRestan, "WALLET", methods2, statusPay, decimal.Parse(typeChange));

                int nAfiliate = int.Parse(brUser.GetNafiliate(idMemberDetails));

                BrTypeMembership brTypeMembership = new BrTypeMembership();
                var correlativo = int.Parse(brTypeMembership.GetTotalMemberships(User.Identity.Name.Split('¬')[1]));

                correlativo--;

                if (correlativo < 0)
                {
                    correlativo = 0;
                }

                Cronograma2(nAfiliate, codeCurrencyPay, correlativo.ToString());

                // enviar el email de confirmacion con la data y lo redirecciona al post register
                if (!habiliAccount)
                {
                    Response.Write("false¬Ha Ocurrido un Error al Intentar Habilitar Su Cuenta.Sin embargo su Pago fue Exitoso");
                    return;
                }


                var urlRedirect = "EndPaymendMbs";

                if (codeMemb == "EXP" || codeMemb == "LHT" || codeMemb == "STD" ||
                    codeMemb == "PLUS" || codeMemb == "TOP" || codeMemb == "VIT")
                {
                    urlRedirect = "EndPaymendMbs";
                }
                if (codeMemb == "EVOL" || codeMemb == "MVC")
                {
                    urlRedirect = "EndPaymendMbs";
                }
                if (codeMemb == "SBY")
                {
                    urlRedirect = "EndPaymentSby";
                }


                Response.Write($"true¬{urlRedirect}.aspx");
            }
            catch (Exception ex)
            {
                Email email = new Email();
                email.SendEmail(mc.ErrorEmail, "error-inresorts", ex.StackTrace + '¬' + DateTime.Now.ToLongDateString(), false);
                Response.Write("false¬ocurrio un error");
            }
        }
コード例 #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            bool   anwser = false;
            string ruta   = string.Empty;

            BrPayments brPayment = new BrPayments();
            //
            var _aux    = Request["action"];
            int _action = int.Parse(Request["action"].ToString());

            if (_action == 0)
            {
                var    _var = (Session["params"].ToString());
                string data = brPayment.getPayDetailByPerson(_var);
                Response.Write(data);
                return;
            }

            int    _id       = int.Parse(Request["id"]);
            string quote     = Request["quote"];
            string parameter = _action.ToString() + "|" + _id.ToString();

            BrInformacion brInformacion = new BrInformacion();

            string[] arrayData = brInformacion.GetBYIdMembershipDetail(_id).Split('|');

            string userName  = arrayData[0];
            string emailUser = arrayData[1];
            string name      = arrayData[2];
            string lastname  = arrayData[3];
            string gender    = arrayData[4];
            string codeMemb  = arrayData[5].Trim();

            auxidafi      = int.Parse(arrayData[6]);
            auxnameafi    = arrayData[7];
            auxmembership = arrayData[8];


            if (_action == 1)
            {
                BrMembershipPayDetail brMembershipPayDetail = new BrMembershipPayDetail();
                anwser = brMembershipPayDetail.EnableByInitial(parameter, quote);
                if (!anwser)
                {
                    Response.Write("false¬Ha Ocurrido un Error en cambiar el estado");
                    return;
                }

                //TODO: aqui se hace la actualizacion del rango
                anwser = brMembershipPayDetail.UpdateRange(userName);

                var isInitial = brMembershipPayDetail.GetDescriptionQuote(_id).Substring(0, 5);

                if (isInitial != "Cuota")
                {
                    ruta = HttpContext.Current.Server.MapPath("~/Resources/PoliticsPdf/");
                    int correlativo = 0;

                    BrTypeMembership brTypeMembership = new BrTypeMembership();
                    correlativo = int.Parse(brTypeMembership.GetTotalMemberships(userName));
                    correlativo--;

                    if (correlativo < 0)
                    {
                        correlativo = 0;
                    }

                    userName = userName + correlativo.ToString();

                    if (codeMemb == "KIT")
                    {
                        anwser = this.SendEmailKit(name, gender, userName, ruta, emailUser);
                    }
                    if (codeMemb == "EXP" || codeMemb == "LHT" || codeMemb == "STD" ||
                        codeMemb == "PLUS" || codeMemb == "TOP" || codeMemb == "VIT")
                    {
                        anwser = this.SendEmailClub(name, gender, userName, ruta, emailUser);
                    }
                    if (codeMemb == "EVOL" || codeMemb == "MVC")
                    {
                        anwser = this.SendEmailVacational(name, gender, userName, ruta, emailUser);
                    }
                    if (codeMemb == "SBY")
                    {
                        anwser = this.SendEmailFounder(name, gender, userName, ruta, emailUser);
                    }
                    if (!anwser)
                    {
                        Response.Write("false¬Ocurrio un error al envio de email.");
                        return;
                    }
                }
                Response.Write("true¬La Operacion se ha efectuado con exito");
                return;
            }

            //RECHAZAR
            if (_action == 3)
            {
                string messagge = "", subjet = "";
                BrMembershipPayDetail brMembershipPayDetail = new BrMembershipPayDetail();
                anwser = brMembershipPayDetail.EnableByInitial(parameter, "0");
                if (!anwser)
                {
                    Response.Write("false¬Ha Ocurrido un Error en cambiar el estado");
                    return;
                }
                messagge = "Su Recibo Fue rechazado.Por Favor subir un recibo valido.";
                subjet   = "[RIBERA DEL RIO - RECIBO RECHAZADO]";
                Email oemail = new Email();
                oemail.SendEmail(emailUser, subjet, messagge, false);
            }

            Response.Write("true¬La Operacion se ha efectuado con exito");
            return;
        }