EnumStatusType.cs 2.5 KB
using Hh.Mes.Common;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace Hh.Mes.POJO.EnumEntitys
{
    /** **********************定义的枚举如果需要输出到网页视图 头部新增SysPublicEnum 特性**********************/

    public enum EnumAction
    {
        /// <summary>
        /// 新增,isDelete=1
        /// </summary>
        I,
        /// <summary>
        /// 修改,isDelete=1
        /// </summary>
        U,
        /// <summary>
        /// 删除,isDelete=0
        /// </summary>
        D
    }

    public enum EnumDeleteOrAdd
    {
        新增或更新 = 1,

        删除 = 0
    }

    [SysPublicEnum]
    public enum EnumLog
    {
        API = 0,

        PDA = 20,

        中控全局错误 = 30,

        AOP全局错误 = 40,

        AOP全局WMS错误 = 45,

        AOP脚本执行超过15 = 45,

        OA人员接口 = 100,

        WCS接口调用 = 400,
    }

    /// <summary>
    /// 项目工程表-项目状态-记录项目的当前状态 
    /// </summary>
    [SysPublicEnum]
    public enum EnumProjectStatus
    {
        进行中 = 10,
        已完成 = 20,
        已取消 = 30,
    }

    /// <summary>
    /// 设备状态 
    /// </summary>
    public enum EquipmentStatus
    {
        /// <summary>
        /// 运行
        /// </summary>
        Running = 10,

        /// <summary>
        /// 空闲
        /// </summary>
        Free = 20,

        /// <summary>
        /// 故障
        /// </summary>
        Failure = 30,

        /// <summary>
        /// 故障
        /// </summary>
        Error = 60,


        /// <summary>
        /// 离线
        /// </summary>
        Offline = 40
    }

    /// <summary>
    /// 设备部件 保养状态
    /// </summary>
    [SysPublicEnum]
    public enum EnumMaintainStatus
    {
        /// <summary>
        /// 待保养
        /// </summary>
        ToBeMaintain = 10,

        /// <summary>
        /// 已保养
        /// </summary>
        Maintained = 20,

        /// <summary>
        /// 逾期
        /// </summary>
        OverTime = 100,
    }

    [SysPublicEnum]
    public enum EnumIndicatorType
    {
         = 10,
         = 20,
        公里数 = 30,
    }

    /// <summary>
    /// `设备保养提醒 推送状态
    /// </summary>
    [SysPublicEnum]
    public enum EnumMaintainPushStatus
    {
        未推送 = 0,
        已推送微信 = 10,
        已推送邮箱 = 20,
        均已推送=30
    }
}