Hidistro.UI.SaleSystem.CodeBehind/VRequestReturn.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace Hidistro.UI.SaleSystem.CodeBehind
{
using Hidistro.Core;
using Hidistro.Entities.Orders;
using Hidistro.SaleSystem.Vshop;
using Hidistro.UI.Common.Controls;
using System;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
[ParseChildren(true)]
public class VRequestReturn : VshopTemplatedWebControl
{
private HtmlInputHidden hidorderid;
private HtmlInputHidden hidOrderStatus;
private HtmlInputHidden hidproductid;
private HtmlInputHidden hidskuid;
private Literal litimage;
private Literal litItemAdjustedPrice;
private Literal litname;
private Literal litQuantity;
private string orderId;
private string ProductId;
private VshopTemplatedRepeater rptOrderProducts;
private string SKuId;
protected override void AttachChildControls()
{
this.hidOrderStatus = (HtmlInputHidden) this.FindControl("OrderStatus");
this.hidskuid = (HtmlInputHidden) this.FindControl("skuid");
this.hidorderid = (HtmlInputHidden) this.FindControl("orderid");
this.hidproductid = (HtmlInputHidden) this.FindControl("productid");
this.orderId = this.Page.Request.QueryString["orderId"].Trim();
this.SKuId = Globals.RequestQueryStr("skuid").Trim();
this.hidorderid.Value = this.orderId;
this.hidskuid.Value = this.SKuId;
this.litimage = (Literal) this.FindControl("litimage");
this.litname = (Literal) this.FindControl("litname");
this.litItemAdjustedPrice = (Literal) this.FindControl("litItemAdjustedPrice");
this.litQuantity = (Literal) this.FindControl("litQuantity");
this.rptOrderProducts = (VshopTemplatedRepeater) this.FindControl("rptOrderProducts");
OrderInfo orderInfo = ShoppingProcessor.GetOrderInfo(this.orderId);
this.hidOrderStatus.Value = ((int) orderInfo.OrderStatus).ToString();
if (orderInfo == null)
{
base.GotoResourceNotFound("此订单已不存在");
}
bool flag = false;
foreach (LineItemInfo info2 in orderInfo.LineItems.Values)
{
if (info2.SkuId.ToString() == this.SKuId)
{
this.litimage.Text = "<image src=\"" + info2.ThumbnailsUrl + "\"></image>";
this.litname.Text = info2.ItemDescription;
this.litItemAdjustedPrice.Text = info2.ItemAdjustedPrice.ToString("0.00");
this.litQuantity.Text = info2.Quantity.ToString();
this.hidproductid.Value = info2.ProductId.ToString();
flag = true;
break;
后面还有 20 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
