EasyShop/PersonCenter/Member_PaySuccess.aspx.cs

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MyModels;
using System.Data;
using System.Data.SqlClient;
namespace EasyShop.PersonCenter
{
    public partial class Member_PaySuccess : Base_Page
    {
        protected string ordernum, luweb;
        protected void Page_Load(object sender, EventArgs e)
        {
            object uo = Request["order_no"];
            if (uo != null && !string.IsNullOrWhiteSpace(uo.ToString()))
            {
                TB_MC_Order tmo = new TB_MC_Order();
                tmo.OrderNum = uo.ToString();
                int  OrId = tmo.GetOrderID(" OrderNum='" + uo.ToString() + "'");
                int _i = -1;
                if (!int.TryParse(OrId.ToString(), out _i))
                {
                    return;
                }
                else
                {
                    Load_OrderInfo(OrId);
                }
                ordernum = OrId.ToString();
            }
        }

        void Load_OrderInfo(int orderid)
        {
            string uid = MyModels.Global.DeCryStr(Login_UserId);
            if (uid == "")
            {
                return;
            }
            MyModels.TB_MC_Order tmo=new MyModels.TB_MC_Order();
            var orderItem = tmo.IsMyOrder(uid, orderid);
            if (orderItem == null|| orderItem.State.Value<2)
            {
                return;
            }
            #region 获取价格
            TB_MC_Order tmo2 = new TB_MC_Order();
            int count = 1;
            string Price = string.Empty;
            DataSet tds = tmo2.GetDataList(" and a.Id=" + orderid + "");
                int tnum = tds.Tables[0].Rows.Count;
                for (int i = 0; i < tnum; i++)
                {
                     Price = tds.Tables[0].Rows[i]["OrderPrice"].ToString();
                    string TransportPrice = tds.Tables[0].Rows[i]["TransportPrice"].ToString();
                    string LastPayPrice = tds.Tables[0].Rows[i]["LastPayPrice"].ToString();
                    string UseTicketEndPrice = tds.Tables[0].Rows[i]["UseTicketEndPrice"].ToString();
后面还有 37 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。