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

📄 roomtype.cs

📁 这个版本(InteliIM Open Kernel Release 2)是目前最新的(首次公开)
💻 CS
字号:
#region Using Directives

using System; 

#endregion

namespace Org.InteliIM.Applications.Tourism.Lodgement
{
	/// <summary>
	/// Represents the type of a room.
	/// </summary>
	public class RoomType
	{
		/// <summary>
		/// Initializes a new instance of the RoomType class.
		/// </summary>
		public RoomType()
		{
        }

        private string id;

        /// <summary>
        /// Gets or sets the id.
        /// </summary>
        public string Id
        {
            get
            {
                if (this.id == null)
                    this.id = "0";

                return this.id;
            }
            set
            {
                this.id = value;
            }
        }

        private string name;
		
		/// <summary>
		/// Gets or sets the name.
		/// </summary>
		public string Name
		{
			get
			{
				if(this.name == null)
					this.name = "";
				
				return this.name;
			}
			set
			{
				this.name = value;
			}
		}	
		
		private float price = 0.0f;
		
		/// <summary>
		/// Gets or sets the price.
		/// </summary>
		public float Price
		{
			get
			{
				return this.price;
			}
			set
			{
				this.price = value;
			}
		}
		
		private float pricePerHour = 0.0f;
		
		/// <summary>
		/// Gets or sets the price per hour.
		/// </summary>
		public float PricePerHour
		{
			get
			{
				return this.pricePerHour;
			}
			set
			{
				this.pricePerHour = value;
			}
		}
		
		private int bedsCount = 1;
		
		/// <summary>
		/// Gets or sets the count of the beds.
		/// </summary>
		public int BedsCount
		{
			get
			{
				return this.bedsCount;
			}
			set
			{
				this.bedsCount = value;
			}
		}

        private BedType bedType;

        /// <summary>
        /// Gets or sets the bed type.
        /// </summary>
        /// <value></value>
        public BedType BedType
        {
            get
            {
                if (this.bedType == null)
                    this.bedType = new BedType();

                return this.bedType;
            }
            set
            {
                this.bedType = value;
            }
        }

        private bool canConsumeByHour = false;
		
		/// <summary>
		/// Gets or sets the canConsumeByHour.
		/// </summary>
		public bool CanConsumeByHour
		{
			get
			{
				return this.canConsumeByHour;
			}
			set
			{
				this.canConsumeByHour = value;
			}
		}
		
		private string description;
		
		/// <summary>
		/// Gets or sets the description.
		/// </summary>
		public string Description
		{
			get
			{
				if(this.description == null)
					this.description = "";
				
				return this.description;
			}
			set
			{
				this.description = value;
			}
		}
	}
}

⌨️ 快捷键说明

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