using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sln.Iot.Model.Entity
{
    /// <summary>
    /// 日志上报实体类
    /// </summary>
    public class MesReportEntity
    {
        /// <summary>
        /// 设备ID
        /// </summary>
        public string InterfaceID { get; set; }

        /// <summary>
        /// 设备运行状态
        /// </summary>
        public string Status { get; set; } = "0";

        /// <summary>
        /// 设备状态码
        /// </summary>
        public string StatusCode { get; set; } = "0";

        /// <summary>
        /// 良品数量
        /// </summary>
        public int PassQuantity { get; set; } = 0;

        /// <summary>
        /// 不良品数量
        /// </summary>
        public int FailQuantity { get; set; } = 0;

        /// <summary>
        /// 故障次数
        /// </summary>
        public int ErrorCount { get; set; } = 0;

        /// <summary>
        /// 故障时间
        /// </summary>
        public int ErrorTime { get; set; } = 0;

        /// <summary>
        /// 节拍时间
        /// </summary>
        public int CycleTime { get; set; } = 0;

        /// <summary>
        /// 运行时间
        /// </summary>
        public int RunningTime { get; set; } = 0;

        /// <summary>
        /// 等待时间
        /// </summary>
        public int WaitingTime { get; set; } = 10000;

        /// <summary>
        /// 投入数量
        /// </summary>
        public int InputQuantity { get; set; } = 0;

        /// <summary>
        /// 条码数据
        /// </summary>
        public string Barcode { get; set; } = "Unknow";

        /// <summary>
        /// 产品型号
        /// </summary>
        public string Cya { get; set; } = "灌胶固化线";

        /// <summary>
        /// 上次故障时间
        /// </summary>
        public DateTime LastErrorTime { get; set; }

        /// <summary>
        /// 现在是否故障
        /// </summary>
        public bool IsError { get; set; }
    }
}
