using System;

namespace ChuPiao.Common.Models
{
    /// <summary>
    /// 撤单订单实体类接口
    /// </summary>
    public interface ICancelOrderEntity
    {
        /// <summary>
        /// 彩种ID
        /// </summary>
        int LotId { get; set; }

        /// <summary>
        /// 主键ID
        /// </summary>
        int Id { get; set; }

        /// <summary>
        /// 期号
        /// </summary>
        string Expect { get; set; }

        /// <summary>
        /// 用户订单号
        /// </summary>
        string OrderSn { get; set; }

        /// <summary>
        /// 是否有效（0--无效；1--有效，默认为1）
        /// </summary>
        bool Enabled { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        DateTime AddTime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        string Remark { get; set; }
    }

    /// <summary>
    /// 撤单订单实体类
    /// </summary>
    public class CancelOrderEntity : ICancelOrderEntity
    {
        #region Implementation of ICancelOrderEntity

        private DateTime _addTime = DateTime.Now;
        private bool _enabled = true;
        private string _expect = string.Empty;
        private int _id;
        private int _lotId;

        private string _orderSn = string.Empty;

        private string _remark = string.Empty;

        /// <summary>
        /// 彩种ID
        /// </summary>
        public int LotId
        {
            get { return _lotId; }
            set { _lotId = value; }
        }

        /// <summary>
        /// 主键ID
        /// </summary>
        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }

        /// <summary>
        /// 期号
        /// </summary>
        public string Expect
        {
            get { return _expect; }
            set { _expect = value; }
        }

        /// <summary>
        /// 用户订单号
        /// </summary>
        public string OrderSn
        {
            get { return _orderSn; }
            set { _orderSn = value; }
        }

        /// <summary>
        /// 是否有效（0--无效；1--有效，默认为1）
        /// </summary>
        public bool Enabled
        {
            get { return _enabled; }
            set { _enabled = value; }
        }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime AddTime
        {
            get { return _addTime; }
            set { _addTime = value; }
        }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark
        {
            get { return _remark; }
            set { _remark = value; }
        }

        #endregion
    }
}