EquipmentStatus.cs 1.28 KB
using System.ComponentModel;

namespace HHECS.DAQShared.Common.Enums
{
    /// <summary>
    /// 设备状态
    /// </summary>
    /// <remarks>所有设备的通用状态</remarks>
    public enum EquipmentStatus
    {
        /// <summary>
        /// 无数据,默认值
        /// </summary>
        [Description("无数据")]
        None = 0,

        /// <summary>
        /// 离线
        /// </summary>
        /// <remarks>设备状态超过5分钟未更新视为离线</remarks>
        [Description("离线")]
        Offline,

        /// <summary>
        /// 故障
        /// </summary>
        [Description("故障")]
        Failure,

        /// <summary>
        /// 待机/空闲
        /// </summary>
        [Description("待机")]
        Free,

        /// <summary>
        /// 运行/工作
        /// </summary>
        [Description("运行")]
        Running,

        /// <summary>
        /// 保养
        /// </summary>
        /// <remarks>IOT云平台处理,这里不使用</remarks>
        [Description("保养")]
        Maintenance,

        /// <summary>
        /// 手动状态
        /// </summary>
        /// <remarks>手动状态不记录故障,此状态认为设备是空闲</remarks>
        [Description("手动")]
        Manual,
    }
}