//绑定支付平台信息 public void BindPlat() { //后期改为Repeater输出 DataTable dt = platBll.GetPayPlatListAll(0); PayPlat_RPT.DataSource = dt; PayPlat_RPT.DataBind(); }
//绑定支付平台信息 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("尚未定义支付平台"); } }
//绑定支付平台信息 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; }