using System;
using System.Collections.Generic;
using System.Text;
//该源码首发自www.51aspx.com(５１ａｓｐｘ．ｃｏｍ)

namespace Model
{
    /// <summary>
    /// 一种菜肴的对象
    /// </summary>
    [Serializable]
    public class Item
    {
        #region 私有对象
        private long systemid;
        private string itemsName;
        private float price;
        private int type;
        private string pic;
        private string detail;
        #endregion

        #region 构造函数
        /// <summary>
        /// 菜肴对象
        /// </summary>
        /// <param name="itemsName">菜肴名称</param>
        /// <param name="price">价格</param>
        /// <param name="type">所属类型</param>
        /// <param name="pic">图片名称</param>
        /// <param name="detail">详细介绍</param>
        public Item(string itemsName, float price, int type, string pic,string detail)
        {
            this.itemsName = itemsName;
            this.price = price;
            this.type = type;
            this.pic = pic;
            this.detail = detail;
        }

        /// <summary>
        /// 菜肴对象
        /// </summary>
        /// <param name="systemid">菜肴编号</param>
        /// <param name="itemsName">菜肴名称</param>
        /// <param name="price">价格</param>
        /// <param name="type">所属种类</param>
        /// <param name="pic">图片名称</param>
        /// <param name="detail">详细介绍</param>
        public Item(long systemid, string itemsName, float price, int type, string pic, string detail)
        {
            this.systemid = systemid;
            this.itemsName = itemsName;
            this.price = price;
            this.type = type;
            this.pic = pic;
            this.detail = detail;
        }

        /// <summary>
        /// 菜肴对象
        /// </summary>
        /// <param name="systemid">菜肴编号</param>
        public Item(long systemid)
        {
            this.systemid = systemid;
        }
        /// <summary>
        /// 菜肴对象
        /// </summary>
        /// <param name="systemid">菜肴编号</param>
        /// <param name="type">类型</param>
        public Item(long systemid, int type)
        {
            this.systemid = systemid;
            this.type = type;
        }

        #endregion

        #region 属性
        /// <summary>
        /// 菜肴详细介绍
        /// </summary>
        public string Detail
        {
            get { return this.detail; }
            set { this.detail = value; }
        }
        /// <summary>
        /// 菜肴编号
        /// </summary>
        public long SystemId
        {
            get { return this.systemid; }
            set { this.systemid = value; }
        }
        /// <summary>
        /// 菜肴名称
        /// </summary>
        public string ItemName
        {
            get { return this.itemsName; }
            set { this.itemsName = value; }
        }
        /// <summary>
        /// 价格
        /// </summary>
        public float Price
        {
            get { return this.price; }
            set { this.price = value; }
        }
        /// <summary>
        /// 菜肴类型
        /// </summary>
        public int Type
        {
            get { return this.type; }
            set { this.type = value; }
        }
        /// <summary>
        /// 图片名称
        /// </summary>
        public string Pic
        {
            get { return this.pic; }
            set { this.pic = value; }
        }
        #endregion

    }
}
