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); } } } } }