using SqlSugar;
using System;
using System.Runtime.Serialization;

namespace WCS.Entity.Protocol.Station
{
    /// <summary>
    ///  521
    /// </summary>
    [DataContract]
    [SugarTable("FJ_Station521")]
    public class WCS_Station521 : IStation521
    {
        /// <inheritdoc/>
        [DataMember(Order = 0)]
        public int TaskNumber { get; set; }

        /// <inheritdoc/>
        [DataMember(Order = 1)]
        public short GoodsStart { get; set; }

        /// <inheritdoc/>
        [DataMember(Order = 2)]
        public short GoodsEnd { get; set; }

        /// <inheritdoc/>
        [DataMember(Order = 3)]
        public StationMode Mode { get; set; }

        /// <inheritdoc/>
        [DataMember(Order = 4)]
        public short CmdType { get; set; }

        /// <inheritdoc/>
        [DataMember(Order = 5)]
        public short VoucherNo { get; set; }

        /// <inheritdoc/>
        [DataMember(Order = 6)]
        public short Request { get; set; }

        [DataMember(Order = 7)]
        [TimeDbSplitField(DateType.Day)]
        public new DateTime Frame { get; set; }

        [DataMember(Order = 8)]
        [SugarColumn(ColumnDataType = "symbol")]
        public new string Code { get; set; }
    }
}
