📄 buyitem.cs
字号:
using System;
using System.Collections.Generic;
using System.Web;
namespace DNNLite.DesktopModules.Shop
{
/// <summary>
///可放入购物车的物品。
/// </summary>
[Serializable()]
public class BuyItem
{
private int _ProductID;
///<summary>
///产品ID
///</summary>
public int ProductID
{
get { return _ProductID; }
set { _ProductID = value; }
}
private string _TableName;
///<summary>
///表名
///</summary>
public string TableName
{
get { return _TableName; }
set { _TableName = value; }
}
private string _Property;
///<summary>
///属性,如果是单一商品这属性为空
///</summary>
public string Property
{
get { return _Property; }
set { _Property = value; }
}
private decimal _Price_Market;
///<summary>
///原价
///</summary>
public decimal Price_Market
{
get { return _Price_Market; }
set { _Price_Market = value; }
}
private decimal _Price;
///<summary>
///系统计算出的销售价
///</summary>
public decimal Price
{
get { return _Price; }
set { _Price = value; }
}
private decimal _TruePrice;
///<summary>
///实际销售价
///</summary>
public decimal TruePrice
{
get { return _TruePrice; }
set { _TruePrice = value; }
}
private int _Amount;
///<summary>
///订购数量
///</summary>
public int Amount
{
get { return _Amount; }
set { _Amount = value; }
}
private decimal _SubTotal;
///<summary>
///订购金额
///</summary>
public decimal SubTotal
{
get { return _SubTotal; }
set { _SubTotal = value; }
}
private DateTime _BeginDate;
///<summary>
///开始计算服务期限日期
///</summary>
public DateTime BeginDate
{
get { return _BeginDate; }
set { _BeginDate = value; }
}
private int _ServiceTerm;
///<summary>
///服务期限
///</summary>
public int ServiceTerm
{
get { return _ServiceTerm; }
set { _ServiceTerm = value; }
}
private int _ServiceTermUnit;
///<summary>
///服务年限单位 0-年,1-月,2-日
///</summary>
public int ServiceTermUnit
{
get { return _ServiceTermUnit; }
set { _ServiceTermUnit = value; }
}
private string _Remark;
///<summary>
///备注
///</summary>
public string Remark
{
get { return _Remark; }
set { _Remark = value; }
}
private decimal _PresentMoney;
///<summary>
///返还的现金券
///</summary>
public decimal PresentMoney
{
get { return _PresentMoney; }
set { _PresentMoney = value; }
}
private int _PresentPoint;
///<summary>
///赠送点券
///</summary>
public int PresentPoint
{
get { return _PresentPoint; }
set { _PresentPoint = value; }
}
private int _PresentExp;
///<summary>
///赠送的积分
///</summary>
public int PresentExp
{
get { return _PresentExp; }
set { _PresentExp = value; }
}
private string _ProductCharacter;
///<summary>
///商品性质
///</summary>
public string ProductCharacter
{
get { return _ProductCharacter; }
set { _ProductCharacter = value; }
}
private string _ProductName;
///<summary>
///商品名称
///</summary>
public string ProductName
{
get { return _ProductName; }
set { _ProductName = value; }
}
private string _Unit;
///<summary>
///单位
///</summary>
public string Unit
{
get { return _Unit; }
set { _Unit = value; }
}
private float _Weight;
///<summary>
///重量
///</summary>
public float Weight
{
get { return _Weight; }
set { _Weight = value; }
}
private string _img;
/// <summary>
/// 图片
/// </summary>
public string Img
{
get { return _img; }
set { _img = value; }
}
private int _no;
/// <summary>
/// 序号
/// </summary>
public int No
{
get { return _no; }
set { _no = value; }
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -