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

📄 selectpayplatform.cs

📁 动易SiteFactory&#8482 网上商店系统1.0源代码
💻 CS
字号:
namespace PowerEasy.WebSite.Shop
{
    using PowerEasy.Accessories;
    using PowerEasy.Components;
    using PowerEasy.Model.Shop;
    using PowerEasy.Shop;
    using PowerEasy.Web.UI;
    using System;
    using System.Web;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;

    public class SelectPayPlatform : DynamicPage
    {
        protected Button BtnSubmit;
        protected DropDownList DropPayPlatform;
        protected HtmlForm form1;
        protected Label LblMoneyReceipt;
        protected Label LblMoneyTotal;
        protected Label LblNeedPay;
        protected Label LblOrderNum;
        private int m_OrderId;
        protected PlaceHolder PlhMoney;
        protected PlaceHolder PlhOrderInfo;
        protected TextBox TxtvMoney;

        protected void BtnSubmit_Click(object sender, EventArgs e)
        {
            base.Response.Redirect(string.Concat(new object[] { "PayOnline.aspx?PayPlatformID=", this.DropPayPlatform.SelectedValue, "&vMoney=", this.TxtvMoney.Text, "&OrderID=", this.m_OrderId }));
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            this.m_OrderId = BasePage.RequestInt32("OrderID");
            if (!this.Page.IsPostBack)
            {
                if (this.m_OrderId > 0)
                {
                    OrderInfo orderById = Order.GetOrderById(this.m_OrderId);
                    this.PlhOrderInfo.Visible = true;
                    this.PlhMoney.Visible = false;
                    this.LblOrderNum.Text = orderById.OrderNum;
                    this.LblMoneyTotal.Text = orderById.MoneyTotal.ToString("0.00");
                    this.LblMoneyReceipt.Text = orderById.MoneyReceipt.ToString("0.00");
                    this.LblNeedPay.Text = (orderById.MoneyTotal - orderById.MoneyReceipt).ToString("0.00");
                }
                else if (string.IsNullOrEmpty(PEContext.Current.User.UserName))
                {
                    base.Response.Redirect("../User/Login.aspx?ReturnUrl=" + HttpUtility.UrlEncode("../PayOnline/SelectPayPlatform.aspx"));
                }
                this.DropPayPlatform.DataSource = PayPlatform.GetListOfEnabled();
                this.DropPayPlatform.DataBind();
            }
        }
    }
}

⌨️ 快捷键说明

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