Hidistro.UI.SaleSystem.CodeBehind/VShoppingCart.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace Hidistro.UI.SaleSystem.CodeBehind
{
using Hidistro.Entities.Sales;
using Hidistro.SaleSystem.Vshop;
using Hidistro.UI.Common.Controls;
using System;
using System.Collections.Generic;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
[ParseChildren(true)]
public class VShoppingCart : VMemberTemplatedWebControl
{
private HtmlAnchor aLink;
private List<ShoppingCartInfo> cart;
private List<ShoppingCartInfo> cartPoint;
private HtmlGenericControl divShowTotal;
private Literal litcount;
private Literal litExemption;
private Literal litStoreMoney;
private Literal litTotal;
private Literal litTotalPoint;
private decimal ReductionMoneyALL = 0M;
private VshopTemplatedRepeater rptCartPointProducts;
private VshopTemplatedRepeater rptCartProducts;
protected override void AttachChildControls()
{
this.rptCartProducts = (VshopTemplatedRepeater) this.FindControl("rptCartProducts");
this.rptCartProducts.ItemDataBound += new RepeaterItemEventHandler(this.rptCartProducts_ItemDataBound);
this.rptCartPointProducts = (VshopTemplatedRepeater) this.FindControl("rptCartPointProducts");
this.litTotal = (Literal) this.FindControl("litTotal");
this.litTotalPoint = (Literal) this.FindControl("litTotalPoint");
this.litStoreMoney = (Literal) this.FindControl("litStoreMoney");
this.litExemption = (Literal) this.FindControl("litExemption");
this.litcount = (Literal) this.FindControl("litcount");
this.divShowTotal = (HtmlGenericControl) this.FindControl("divShowTotal");
this.aLink = (HtmlAnchor) this.FindControl("aLink");
this.Page.Session["stylestatus"] = "0";
this.litExemption.Text = "0.00";
this.cart = ShoppingCartProcessor.GetShoppingCartAviti(0);
this.cartPoint = ShoppingCartProcessor.GetShoppingCartAviti(1);
if (this.cart != null)
{
this.rptCartProducts.DataSource = this.cart;
this.rptCartProducts.DataBind();
int num = 0;
for (int i = 0; i < this.cart.Count; i++)
{
num += this.cart[i].LineItems.Count;
}
this.litcount.Text = num.ToString();
}
if (this.cartPoint != null)
{
this.rptCartPointProducts.DataSource = this.cartPoint;
this.rptCartPointProducts.DataBind();
}
if ((this.cart != null) || (this.cartPoint != null))
后面还有 47 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
