⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 myorderpay2.aspx.cs

📁 易想商城系统
💻 CS
字号:
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Text;
using System.Collections.Generic;
using System.Web.UI.MobileControls;

namespace YXShop.Web.Membercenter.Dynamic
{
    public partial class myOrderPay2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string html = YXShop.TemplateAction.TemplateDo.GetAnalysisContent(7, 42);//在线支付
            string OrderID = Request["OrderID"];
            YXShop.BLL.Orders BLL = new YXShop.BLL.Orders();
            YXShop.Model.Orders model = new YXShop.Model.Orders();
            model = BLL.GetId(OrderID);
            html = html.Replace("{$orderID$}",OrderID);
            html = html.Replace("{$orderPrice$}",Convert.ToString(model.FactPrice));
            html = html.Replace("{$payMethod$}",this.payMethod());
            Response.Write(html);
        }
        /// <summary>
        /// 返回在线支付方式
        /// </summary>
        /// <returns></returns>
        private string payMethod()
        {
            StringBuilder shtml = new StringBuilder();
            shtml.Append("<select name=\"payMethod\">");
            YXShop.BLL.TerraceManage BLL = new YXShop.BLL.TerraceManage();            
            List<YXShop.Model.TerraceManage> Lmodel = BLL.getPayOnLine();
            if (Lmodel.Count > 0)
            {
                foreach (YXShop.Model.TerraceManage model in Lmodel)
                {
                    //shtml.Append("<input type=\"radio\" name=\"PayMethod\"  value=\""+model.TM_ID+"\" />"+model.TM_name+"");
                    shtml.Append("<option value=\""+model.TM_ID+"\">"+model.TM_name+"</option>");
                }
            }
            else
            {
 
            }
            shtml.Append("</select>");
            return shtml.ToString();            
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -