示例#1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string action = Request["action"];
            string answer = string.Empty;

            if (action == "list")
            {
                BrExtorno   brExtorno  = new BrExtorno();
                MyFunctions mf         = new MyFunctions();
                var         dataAnswer = brExtorno.GetListAdmin().Split('¬');

                answer += "<table class='table table-hover'>";
                answer += "<tr>";
                answer += "<th>#</th>";
                answer += "<th>Nombres</th>";
                answer += "<th>Date</th>";
                answer += "<th>Monto Abonado por la Persona</th>";
                answer += "<th>Monto en commissiones</th>";
                answer += "</tr>";
                for (int i = 0; i < dataAnswer.Length; i++)
                {
                    var row = dataAnswer[i].Split('|');
                    answer += "<tr>";
                    answer += $"<td>{(i + 1).ToString()}</td>";
                    answer += $"<td>{row[1]}</td>";
                    answer += $"<td>{mf.DateFormatClient(row[2])}</td>";
                    answer += $"<td>{row[3]}</td>";
                    answer += $"<td>{row[4]}</td>";
                    answer += "</tr>";
                }
                answer += "</table>";
            }
            Response.Write(answer);
        }
示例#2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string action = Request["action"];
            string answer = string.Empty;

            if (action == "verif")
            {
                string      username = Request["username"];
                MyFunctions mf       = new MyFunctions();
                BrUser      brUser   = new BrUser();
                var         data     = brUser.GetPersonalInformation(username).Split('|');
                if (data.Length > 1)
                {
                    answer = mf.ToCapitalize(data[1]) + " " + mf.ToCapitalize(data[2]);
                    //string username = Request["username"];
                    //int idNmembership = int.Parse(Request["idNmembership"]);
                    BrMembershipPayDetail payDetail = new BrMembershipPayDetail();
                    var crono = payDetail.GetFullSchedule(username, 1);
                    answer += "$" + crono;
                }
            }

            if (action == "info")
            {
            }

            if (action == "extornar")
            {
                string    username  = Request["username"];
                BrExtorno brExtorno = new BrExtorno();
                var       _response = brExtorno.ExtornarAccount(username);
            }

            Response.Write(answer);
        }