dinnerorderentry.cs
来自「这个版本(InteliIM Open Kernel Release 2)是目前最」· CS 代码 · 共 145 行
CS
145 行
namespace Org.InteliIM.Applications.Tourism.Dinner
{
/// <summary>
/// The dinner order entry.
/// </summary>
public class DinnerOrderEntry: IDiscountable
{
/// <summary>
/// Initializes a new instance of the DinnerOrderEntry class.
/// </summary>
public DinnerOrderEntry()
{
}
private string name;
/// <summary>
/// Gets or sets the name.
/// </summary>
public string Name
{
get
{
return this.name;
}
set
{
this.name = value;
}
}
private string hotelId;
/// <summary>
/// Gets or sets the hotel's id.
/// </summary>
public string HotelId
{
get
{
return this.hotelId;
}
set
{
this.hotelId = value;
}
}
private string restaurantId;
/// <summary>
/// Gets or sets the restaurent's id.
/// </summary>
public string RestaurantId
{
get
{
if(this.restaurantId == null)
this.restaurantId = "";
return this.restaurantId;
}
set
{
this.restaurantId = value;
}
}
private string diningRoomId;
/// <summary>
/// Gets or sets the dining room's id.
/// </summary>
public string DiningRoomId
{
get
{
if(this.diningRoomId == null)
this.diningRoomId = "";
return this.diningRoomId;
}
set
{
this.diningRoomId = value;
}
}
private decimal price = 0;
/// <summary>
/// Gets or sets the price.
/// </summary>
public decimal Price
{
get
{
return this.price;
}
set
{
this.price = value;
}
}
private int amount = 0;
/// <summary>
/// Gets or sets the amount.
/// </summary>
public int Amount
{
get
{
return this.amount;
}
set
{
this.amount = value;
}
}
private float discountRatio = 1.0f;
/// <summary>
/// Gets or sets the discount ratio.
/// </summary>
/// <value></value>
public float DiscountRatio
{
get
{
return this.discountRatio;
}
set
{
this.discountRatio = value;
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?