App_Code/car.cs

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Web.UI;
using System.Collections; //使用hashtable类必须引入该命名空间


    [Serializable]
    public class car_class
    { //定义物品类,保存物品的各种属性
        string shangpinid; //物品id
        string sp_name; //物品名称
        decimal sp_price; //物品价格
  
        int sp_quan; //物品数量
        string sp_tupian; //物品图片
        public string itemid
        {
            get { return shangpinid; }
            set { shangpinid = value; }
        }

        public string shangpinname
        {
            get { return sp_name; }
            set { sp_name = value; }
        }

        public decimal price
        {
            get { return sp_price; }
            set { sp_price = value; }
        }
        public int quantity
        {
            get { return sp_quan; }
            set { sp_quan = value; }
        }

        public string tupian
        {
            get { return sp_tupian; }
            set { sp_tupian = value; }
        }

        public car_class(string itemid, string shangpinname, decimal price, int quantity, string tupian)
        { //构造方法,初始化物品的各个属性

            shangpinid = itemid;
            sp_name = shangpinname;
            sp_price = price;
            sp_quan = quantity;
            sp_tupian = tupian;
        }
    }

    [Serializable]
    public class shoppingcart
    {
        Hashtable cart_orders = new Hashtable();
        public ICollection orders
        {
后面还有 51 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。