• 大小: 0.03M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: 购物车  

资源简介

此购物车实例主要有三大功能:1.折扣方案调整 2.商品列表 3.购物车

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Web.UI.WebControls;

public partial class Default : System.Web.UI.Page {

public ShopCartSet ShopCart {
get {
return (ShopCartSet)Session[“ShopCartSet“];
}
set {
Session[“ShopCartSet“] = value;
}
}

public List DiscountsUsing {
get {
return (List)Application[“DiscountsUsing“];
}
}

protected void Page_Load(object sender EventArgs e) {
if (!this.IsPostBack) {
this.SetDataBind();
this.SetShopCartDataBind();
this.SetDiscountDataBind();
}
}

private void SetDataBind() {
ProductBLL bllProduct = new ProductBLL();
this.gvProducts.DataSource = bllProduct.GetAllProducts();
this.gvProducts.DataBind();
}

private void SetShopCa

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1602  2009-12-23 14:58  购物车示例\购物车示例.sln

    ..A..H.     31744  2012-11-02 11:06  购物车示例\购物车示例.suo

     文件       5549  2009-12-25 18:04  购物车示例\ShopCartExample\Default.aspx

     文件       2870  2009-12-25 09:37  购物车示例\ShopCartExample\Default.aspx.cs

     文件        757  2009-12-24 12:05  购物车示例\ShopCartExample\Global.asax

     文件        660  2011-03-03 10:20  购物车示例\ShopCartExample\SetDiscounts.aspx

     文件       1626  2009-12-24 20:59  购物车示例\ShopCartExample\SetDiscounts.aspx.cs

     文件       1316  2009-12-25 09:50  购物车示例\ShopCartExample\styleSheet.css

     文件       6446  2009-12-23 14:16  购物车示例\ShopCartExample\Web.config

     文件        305  2009-12-23 15:39  购物车示例\ShopCartExample\App_Code\BLL\ProductBLL.cs

     文件        631  2009-12-24 20:40  购物车示例\ShopCartExample\App_Code\BLL\Discount\CountDiscount.cs

     文件        264  2009-12-25 09:56  购物车示例\ShopCartExample\App_Code\BLL\Discount\IDiscountable.cs

     文件        671  2009-12-24 20:41  购物车示例\ShopCartExample\App_Code\BLL\Discount\ItemPriceDiscount.cs

     文件        300  2009-12-24 20:43  购物车示例\ShopCartExample\App_Code\BLL\Discount\NewYearDiscount.cs

     文件       2548  2009-12-25 09:54  购物车示例\ShopCartExample\App_Code\DAL\DBHelper.cs

     文件        920  2009-12-24 18:23  购物车示例\ShopCartExample\App_Code\DAL\ProductDAL.cs

     文件        626  2009-12-24 18:23  购物车示例\ShopCartExample\App_Code\Models\Product.cs

     文件       1055  2009-12-24 20:57  购物车示例\ShopCartExample\App_Code\Models\ShopCartItem.cs

     文件       1725  2009-12-24 20:57  购物车示例\ShopCartExample\App_Code\Models\ShopCartSet.cs

     文件     266240  2005-01-01 03:53  购物车示例\ShopCartExample\App_Data\ShopCart.mdb

     目录          0  2011-03-18 20:54  购物车示例\ShopCartExample\App_Code\BLL\Discount

     目录          0  2011-03-18 20:54  购物车示例\ShopCartExample\App_Code\BLL

     目录          0  2011-03-18 20:54  购物车示例\ShopCartExample\App_Code\DAL

     目录          0  2011-03-18 20:54  购物车示例\ShopCartExample\App_Code\Models

     目录          0  2011-03-18 20:54  购物车示例\ShopCartExample\App_Code

     目录          0  2011-03-18 21:13  购物车示例\ShopCartExample\App_Data

     目录          0  2011-03-18 22:24  购物车示例\ShopCartExample

     目录          0  2011-03-18 20:54  购物车示例

----------- ---------  ---------- -----  ----

               327855                    28

............此处省略1个文件信息

评论

共有 条评论