username@email.com
2025-05-14 99ddfbcecf0fa2881eb3a91028257eef87dab6de
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CY.Model;
using CY.BLL.EC;
using CY.Infrastructure.Common;
namespace CY.WebForm.Pages.front
{
    public partial class Success : FrontBasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (CurrentUser == null)
            {
                Response.Redirect("/login.html?backurlCS=" + "/order/success/" + Request["orderId"] + ".html");
            }
            if (!IsPostBack)
            {
                if (Request["orderId"] != null)
                {
 
                    int orderId = Request["orderId"].ToString().ToInt32().Value;
                    this.hidOrderId.Value = orderId.ToString();
                    EC_OrderBasicBLL _eC_OrderBasicBLL = new EC_OrderBasicBLL();
                    EC_OrderBasic order = _eC_OrderBasicBLL.SelectModelById(orderId);
 
                    if (CurrentUser.MemberId != order.BuyerId)
                    {
                        Response.Redirect("/");
                    }
 
                    this.lblOrderCode.Text = order.SellerOrderId;
                    this.lblOrderPrice.Text = order.SumPrice.Value.ToString("0.00");
                    this.hideIsPayed.Value = order.PayState.HasValue ? order.PayState.Value.ToString() : string.Empty;
                    Utils.WriteCookie("InquiryRecord", string.Empty,-1);
                }
            }
        }
    }
}