⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 st_orderproduct.cs

📁 it have big power,i hope to do it . happy everyday!
💻 CS
字号:
using System;

namespace STGROUP.ST_BookBiz
{
	/// <summary>
	/// ST_OrderProduct 的摘要说明。
	/// </summary>
	public class ST_OrderProduct
	{
		private int _ST_ProductID = 0;
		private int _ST_Quantity = 1;			// 商品默认数量为1
		private float _ST_Price = 0.00F;
		private float _ST_SoldPrice = 0.00F;
		private string _ST_ProductName = "";

		public ST_OrderProduct(int productID)
		{
			_ST_ProductID = productID;
			ST_Product st_p = new ST_Product();
			ST_ProductEntity st_product = st_p.GetProductInfoByID(productID);
			_ST_ProductName = st_product.ST_ProductName;
			_ST_Price = st_product.ST_Price;
			_ST_SoldPrice = st_product.ST_SoldPrice;
			if (_ST_Price==-1.00F)
			{
				_ST_Price = _ST_SoldPrice;
			}
			
		}

		public int ST_ProductID{get{return _ST_ProductID;}set{this._ST_ProductID=value;}}
		public int ST_Quantity{get{return _ST_Quantity;}set{_ST_Quantity = value;}}
		public float ST_Price{get{return _ST_Price;}set{this._ST_Price=value;}}
		public float ST_SoldPrice{get{return _ST_SoldPrice;}set{this._ST_SoldPrice=value;}}
		public string ST_ProductName{get{return _ST_ProductName;}set{this._ST_ProductName=value;}}
		public float Total
		{
			get{return _ST_SoldPrice * _ST_Quantity;}
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -