protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (OrderID < 1)
         {
             function.WriteErrMsg("未指定订单编号");
         }
         M_OrderList orderMod = orderBll.SelReturnModel(OrderID);
         if (orderMod == null)
         {
             function.WriteErrMsg("指定的订单不存在");
         }
         OrderID_L.Text      = orderMod.OrderNo;
         Money_T.Text        = orderMod.Ordersamount.ToString();
         Plat_RBT.DataSource = platBll.GetPayPlatListAll(0);
         Plat_RBT.DataBind();
         ListItem   item1 = new ListItem("余额支付", "Purse");
         ListItem   item2 = new ListItem("银币支付", "SilverCoin");
         ListItem   item3 = new ListItem("积分支付", "Score");
         ListItem[] items = new ListItem[] { item1, item2, item3 };
         Plat_RBT.Items.AddRange(items);
         Plat_RBT.SelectedIndex = Plat_RBT.Items.IndexOf(item1);
     }
 }
Exemple #2
0
        //绑定支付平台信息
        public void BindPlat()
        {
            //后期改为Repeater输出
            DataTable dt = platBll.GetPayPlatListAll(0);

            PayPlat_RPT.DataSource = dt;
            PayPlat_RPT.DataBind();
        }
Exemple #3
0
        public void MyBind()
        {
            DataTable dt = bll.GetPayPlatListAll();

            dt.DefaultView.RowFilter = "PayClass not in (15)";//去除支付宝网银
            dt               = dt.DefaultView.ToTable();
            EGV.DataSource   = dt;
            EGV.DataKeyNames = new string[] { "PayPlatID" };
            EGV.DataBind();
        }
Exemple #4
0
        //绑定支付平台信息
        public void BindPlat()
        {
            //后期改为Repeater输出
            DataTable dt = platBll.GetPayPlatListAll(0);

            PayPlat_RPT.DataSource = dt;
            PayPlat_RPT.DataBind();
            if (dt == null || dt.Rows.Count < 1)
            {
                function.WriteErrMsg("尚未定义支付平台");
            }
        }
Exemple #5
0
        //绑定支付平台信息
        public void BindPlat()
        {
            //后期改为Repeater输出
            DataTable dt = platBll.GetPayPlatListAll(0);

            PayPlat_RPT.DataSource = dt;
            PayPlat_RPT.DataBind();
            if (dt == null || dt.Rows.Count < 1)
            {
                function.WriteErrMsg("尚未定义支付平台");
            }
            //string image = "";
            //string ids="";
            //foreach (DataRow row in table.Rows)
            //{
            //    ListItem item = new ListItem();
            //    item.Value = row["PayPlatID"].ToString();
            //    item.Text = "";
            //    ids = item.Value+"," + ids;
            //    switch (Convert.ToInt32(row["PayClass"]))
            //    {
            //        case 1:
            //            image = "alipay,.jpg";
            //            item.Attributes.Add("id", "td_alipay_"+item.Value);
            //            break;
            //        case 2:
            //            image = "99bill,.jpg";
            //            item.Attributes.Add("id", "td_99bill_"+item.Value);
            //            break;
            //        case 3:
            //            image = "chinabank,.jpg";
            //            item.Attributes.Add("id", "td_chinabank_"+item.Value);
            //            break;
            //        case 4:
            //            image = "tenpay,.jpg";
            //            item.Attributes.Add("id", "td_tenpay_" + item.Value);
            //            break;
            //        case 5:
            //            image = "yeepay,.jpg";
            //            item.Attributes.Add("id", "td_yeepay_" + item.Value);
            //            break;
            //        case 6:
            //            image = "6,.jpg";
            //            item.Attributes.Add("id", "td_6_" + item.Value);
            //            break;
            //        case 8:
            //            image = "15173,.jpg";
            //            item.Attributes.Add("id", "td_15173_" + item.Value);
            //            break;
            //        case 9:
            //            image = "chinaunion,.jpg";
            //            item.Attributes.Add("id", "td_chinaunion_" + item.Value);
            //            break;
            //        case 10:
            //            image = "sdo,.jpg";
            //            item.Attributes.Add("id", "td_sdo_" + item.Value);
            //            break;
            //        case 12:
            //            image = "alipayJS,.jpg";
            //            item.Attributes.Add("id", "td_alipayJS_" + item.Value);
            //            break;
            //        //case 13:
            //        //    image = "chinapnr,.jpg";
            //        //    item.Attributes.Add("id", "td_chinapnr_" + item.Value);
            //        //    break;
            //        case 15://支付宝单网银
            //            M_PayPlat info = new M_PayPlat();
            //            info = platBll.SelModelByClass(M_PayPlat.Plat.Alipay_Bank);
            //            string[] bankArr = info.PayPlatinfo.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
            //            for (int i = 0; i < bankArr.Length; i++)
            //            {
            //                image = bankArr[i] + ",.jpg";
            //                ListItem newItem = new ListItem("", bankArr[i]);
            //                newItem.Attributes.Add("id", "td_" + bankArr[i] + "_" + item.Value);
            //                if(i>0)
            //                    ids = item.Value + "," + ids;
            //                //DDLPayPlat.Items.Add(newItem);
            //            }
            //            item.Value = "";
            //            break;
            //        case 14://交通银行
            //            image = "transbank,.jpg";
            //            item.Attributes.Add("id", "td_transbank_" + item.Value);
            //            break;
            //        case 16://MO宝支付
            //            image = "Mobao,"+image;
            //            item.Attributes.Add("id", "td_Mobao_" + item.Value);
            //            break;
            //        case 21://微信支付
            //            image = "wxpay,.jpg";
            //            item.Attributes.Add("id", "td_wxpay_" + item.Value);
            //            break;
            //        case 22://宝付
            //            image = "baofa,.jpg";
            //            item.Attributes.Add("id", "td_baofa_" + item.Value);
            //            break;
            //        case 23://南昌工行
            //             image = "ncicbc,.jpg";
            //            item.Attributes.Add("id", "td_ncicbc_" + item.Value);
            //            break;
            //        case 24:
            //            image = "95epay,.jpg";
            //            item.Attributes.Add("id", "td_95epay_" + item.Value);
            //            break;
            //        case 25:
            //            image = "ebatong,.jpg";
            //            item.Attributes.Add("id", "td_ebatong_"+item.Value);
            //            break;
            //        case 26:
            //            image = "CCB,.jpg";
            //            item.Attributes.Add("id", "td_CCB_"+item.Value);
            //            break;
            //        case 99://线下支付(转账,汇款)
            //            image = "offline,"+image;
            //            item.Attributes.Add("id", "td_offline_" + item.Value);
            //            break;
            //        case 100://货到付款
            //            image = "100,.jpg";
            //            item.Attributes.Add("id", "td_100_" + item.Value);
            //            break;
            //        default:
            //            item.Text = row["PayPlatName"].ToString();
            //            break;
            //    }
            //    //if (!string.IsNullOrEmpty(item.Value))
            //    //    DDLPayPlat.Items.Add(item);
            //}
            //if (!string.IsNullOrEmpty(image))
            //{
            //    function.Script(this, "createImage('/App_Themes/User/bankimg/','.jpg".Trim(',') + "','" + ids.Trim(',') + "')");
            //}
            //DDLPayPlat.SelectedIndex = 0;
        }
Exemple #6
0
        public IActionResult PayPlat()
        {
            DataTable dt = platBll.GetPayPlatListAll();

            return(View(dt));
        }