BeeCloudSDKDemo.query.Page_Load C# (CSharp) Method

Page_Load() protected method

protected Page_Load ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        protected void Page_Load(object sender, EventArgs e)
        {
            string type = Request.Form["querytype"];
            if (type == "aliquery")
            {
                typeChannel = "Ali";
                Response.Write("<span style='color:#00CD00;font-size:20px'>" + "Ali" + "</span><br/>");

                try
                {
                    BCQueryBillParameter para = new BCQueryBillParameter();
                    para.channel = "ALI";
                    para.limit = 50;
                    bills = BCPay.BCPayQueryByCondition(para);
                }
                catch (Exception excption)
                {
                    Response.Write("<span style='color:#00CD00;font-size:20px'>" + excption.Message + "</span><br/>");
                }
            }
            if (type == "wxquery")
            {
                typeChannel = "WX";
                Response.Write("<span style='color:#00CD00;font-size:20px'>" + "WX" + "</span><br/>");
                try
                {
                    BCQueryBillParameter para = new BCQueryBillParameter();
                    para.channel = "WX";
                    para.limit = 50;
                    bills = BCPay.BCPayQueryByCondition(para);
                }
                catch (Exception excption)
                {
                    Response.Write("<span style='color:#00CD00;font-size:20px'>" + excption.Message + "</span><br/>");
                }
            }
            if (type == "unionquery")
            {
                typeChannel = "UN";
                Response.Write("<span style='color:#00CD00;font-size:20px'>" + "UN" + "</span><br/>");
                try
                {
                    BCQueryBillParameter para = new BCQueryBillParameter();
                    para.channel = "UN";
                    para.limit = 50;
                    bills = BCPay.BCPayQueryByCondition(para);
                }
                catch (Exception excption)
                {
                    Response.Write("<span style='color:#00CD00;font-size:20px'>" + excption.Message + "</span><br/>");
                }
            }
            if (type == "jdquery")
            {
                typeChannel = "JD";
                Response.Write("<span style='color:#00CD00;font-size:20px'>" + "JD" + "</span><br/>");
                try
                {
                    BCQueryBillParameter para = new BCQueryBillParameter();
                    para.channel = "JD";
                    para.limit = 50;
                    bills = BCPay.BCPayQueryByCondition(para);
                }
                catch (Exception excption)
                {
                    Response.Write("<span style='color:#00CD00;font-size:20px'>" + excption.Message + "</span><br/>");
                }
            }
            if (type == "ybquery")
            {
                typeChannel = "YEE";
                Response.Write("<span style='color:#00CD00;font-size:20px'>" + "YEE" + "</span><br/>");
                try
                {
                    BCQueryBillParameter para = new BCQueryBillParameter();
                    para.channel = "YEE";
                    para.limit = 50;
                    bills = BCPay.BCPayQueryByCondition(para);
                }
                catch (Exception excption)
                {
                    Response.Write("<span style='color:#00CD00;font-size:20px'>" + excption.Message + "</span><br/>");
                }
            }
            if (type == "kqquery")
            {
                typeChannel = "KUAIQIAN";
                Response.Write("<span style='color:#00CD00;font-size:20px'>" + "KUAIQIAN" + "</span><br/>");
                try
                {
                    BCQueryBillParameter para = new BCQueryBillParameter();
                    para.channel = "KUAIQIAN";
                    para.limit = 50;
                    bills = BCPay.BCPayQueryByCondition(para);
                }
                catch (Exception excption)
                {
                    Response.Write("<span style='color:#00CD00;font-size:20px'>" + excption.Message + "</span><br/>");
                }
            }
            if (type == "beepay")
            {
                typeChannel = "BC_GATEWAY";
                Response.Write("<span style='color:#00CD00;font-size:20px'>" + "BC_GATEWAY" + "</span><br/>");
                try
                {
                    BCQueryBillParameter para = new BCQueryBillParameter();
                    para.channel = "BC_GATEWAY";
                    para.limit = 50;
                    bills = BCPay.BCPayQueryByCondition(para);
                }
                catch (Exception excption)
                {
                    Response.Write("<span style='color:#00CD00;font-size:20px'>" + excption.Message + "</span><br/>");
                }
            }
            this.bind();
        }