using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace RB_MES_API.Models
{
    /// <summary>
    /// 推单成功备份，避免重复推送。非沃比系统使用
    /// </summary>
    public class ReciveDataBack
    {
        [Key]
        public int FID { get; set; }
        /// <summary>
        /// 接口类型
        /// </summary>
        [DisplayName("接口类型")]
        public string FDocType { get; set; }= string.Empty;
        /// <summary>
        /// 单据编号
        /// </summary>
        [DisplayName("单据编号")]
        public string FBillNo { get; set; } = string.Empty;
        /// <summary>
        /// ERP单据编号
        /// </summary>
        [DisplayName("ERP单据编号")]
        public int FErpID { get; set; } = 0;
        /// <summary>
        /// ERP单据行号
        /// </summary>
        [DisplayName("ERP单据行号")]
        public int FSeq { get; set; } = 0;
        /// <summary>
        /// MES提供的唯一识别号
        /// </summary>
        [DisplayName("MES提供的唯一识别号")]
        public string QUEUE_ID { get; set; } = string.Empty;
        /// <summary>
        /// 推送方的全部内容
        /// </summary>
        [DisplayName("推送方的全部内容")]
        public string FJson { get; set; }= string.Empty;
        //[Timestamp]
        //public byte[] Version { get; set; }
    }
}
