using System;
using System.Collections.Generic;
using System.Text;

namespace Model
{
    /// <summary>
    /// 订单对象
    /// </summary>
    [Serializable]
    public class Order
    {
        #region 変数
        private string guid;
        private string menuid;
        private int number;
        private string loginName;
        private DateTime actionTime;
        private string mark;
        private string state;
        private MenuType menutype;
       
        #endregion

        #region 関数を作ります
        /// <summary>
        /// 订单对象构造函数
        /// </summary>
        /// <param name="guid">订单编号</param>
        /// <param name="menuid">订单的菜单编号</param>
        /// <param name="number">所预订的桌数</param>
        /// <param name="loginName">预订者的登录名</param>
        /// <param name="actionTime">活动的时间</param>
        /// <param name="mark">附加备注</param>
        /// <param name="state">状态</param>
        public Order(string guid, string menuid, int number, string loginName, DateTime actionTime, string mark,string state)
        {
            this.guid = guid;
            this.menuid = menuid;
            this.number = number;
            this.loginName = loginName;
            this.actionTime = actionTime;
            this.mark = mark;
            this.state = state;
        }
        /// <summary>
        /// 订单对象构造函数
        /// </summary>
        /// <param name="guid">订单编号</param>
        /// <param name="menuid">订单的菜单编号</param>
        /// <param name="number">所预订的桌数</param>
        /// <param name="loginName">预订者的登录名</param>
        /// <param name="actionTime">活动的时间</param>
        /// <param name="mark">附加备注</param>
        /// <param name="state">状态</param>
        /// <param name="menutype">包含的菜单对象</param>
        public Order(string guid, string menuid, int number, string loginName, DateTime actionTime, string mark, string state,MenuType menutype)
        {
            this.guid = guid;
            this.menuid = menuid;
            this.number = number;
            this.loginName = loginName;
            this.actionTime = actionTime;
            this.mark = mark;
            this.state = state;
            this.menutype = menutype;
        }
        /// <summary>
        /// 订单对象构造函数
        /// </summary>
        /// <param name="menuid">订单的菜单编号</param>
        /// <param name="number">所预订的桌数</param>
        /// <param name="loginName">预订者的登录名</param>
        /// <param name="actionTime">活动的时间</param>
        /// <param name="mark">附加备注</param>
        public Order(string menuid, int number, string loginName, DateTime actionTime, string mark)
        {
            this.menuid = menuid;
            this.number = number;
            this.loginName = loginName;
            this.actionTime = actionTime;
            this.mark = mark;
        }
        /// <summary>
        /// 订单对象构造函数
        /// </summary>
        /// <param name="menuid">订单的菜单编号</param>
        public Order(string menuid)
        {
            this.menuid = menuid;
        }

        #endregion

        #region 属性
        //public IList<Item> Items
        //{
        //    get { return items; }
        //    set { items = value; }
        //}

        /// <summary>
        /// 所包含的菜单对象
        /// </summary>
        public MenuType Menutype
        {
            get { return menutype; }
            set { menutype = value; }
        }
        /// <summary>
        /// 订单编号
        /// </summary>
        public string Guid
        {
            get { return this.guid; }
            set { this.guid = value; }
        }
        /// <summary>
        /// 订单状态
        /// </summary>
        public string State
        {
            get { return state; }
            set { state = value; }
        }

        /// <summary>
        /// 菜单编号
        /// </summary>
        public string Menuid
        {
            get { return this.menuid; }
            set { this.menuid = value; }
        }
        /// <summary>
        /// 所定的桌数
        /// </summary>
        public int Number
        {
            get {return this.number;}
            set { this.number = value; }
        }
        /// <summary>
        /// 预订者的登录名
        /// </summary>
        public string LoginName
        {
            get { return this.loginName; }
            set { this.loginName = value; }
        }

        /// <summary>
        /// 执行的时间
        /// </summary>
        public DateTime ActionTime
        {
            get { return this.actionTime; }
            set { this.actionTime = value; }
        }
        /// <summary>
        /// 备注
        /// </summary>
        public string Mark
        {
            get { return this.mark; }
            set { this.mark = value; }
        }
        #endregion 
    }
}
