dinnerorderentry.cs

来自「该源代码用 C# 写成」· CS 代码 · 共 125 行

CS
125
字号
namespace Org.InteliIM.Activities.Dinner
{
	/// <summary>
	/// 餐饮订单项
	/// </summary>
	public class DinnerOrderEntry
	{
		/// <summary>
		/// 构造函数
		/// </summary>
		public DinnerOrderEntry()
		{
			
		}
		
		private string name;
		
		/// <summary>
		/// 名称
		/// </summary>
		public string Name
		{
			get
			{
				return this.name;
			}
			set
			{
				this.name = value;
			}
		}
		
		private string hotelId;
		
		/// <summary>
		/// 宾馆编号
		/// </summary>
		public string HotelId
		{
			get
			{
				return this.hotelId;
			}
			set
			{
				this.hotelId = value;
			}
		}
		
		private string restaurantId;
		
		/// <summary>
		/// 饭店编号
		/// </summary>
		public string RestaurantId
		{
			get
			{
				if(this.restaurantId == null)
					this.restaurantId = "";
				
				return this.restaurantId;
			}
			set
			{
				this.restaurantId = value;
			}
		}
		
		private string diningRoomId;
		
		/// <summary>
		/// 餐厅编号
		/// </summary>
		public string DiningRoomId
		{
			get
			{
				if(this.diningRoomId == null)
					this.diningRoomId = "";
				
				return this.diningRoomId;
			}
			set
			{
				this.diningRoomId = value;
			}
		}
		
		private decimal price = 0;
		
		/// <summary>
		/// 单价
		/// </summary>
		public decimal Price
		{
			get
			{
				return this.price;
			}
			set
			{
				this.price = value;
			}
		}
		
		private int amount = 0;
		
		/// <summary>
		/// 数量
		/// </summary>
		public int Amount
		{
			get
			{
				return this.amount;
			}
			set
			{
				this.amount = value;
			}
		}
	}
}

⌨️ 快捷键说明

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