SystemVariable.cs 2.9 KB
using Hh.Mes.POJO.Entity;
using Hh.Mes.POJO.EnumEntitys;
using System;
using System.Collections.Generic;
using System.Text;

namespace Hh.Mes.Pojo.System
{
    /// <summary>
    /// 系统变量 定义一下全局的 值
    /// </summary>
    public class SystemVariable
    {

        /// <summary>
        /// 删除=0
        /// </summary>
        public static int DeleteFlag = (int)EnumDeleteOrAdd.删除;

        /// <summary>
        /// 新增或更新1
        /// </summary>
        public static int AddOrUpdateFlag = (int)EnumDeleteOrAdd.新增或更新;

        /// <summary>
        /// 默认操作人 禁止修改
        /// </summary>
        public static string DefaultCreated = "System";

        /// <summary>
        /// 默认操作人 API
        /// </summary>
        public static string DefaultCreatedApi = "API";


        /// <summary>
        /// 未查询到符合条件的数据
        /// </summary>
        public static string queryNotData = "未查询到符合条件的数据!";


        public static string excelDataOk = "Excel 数据导入成功,请在对应的模块刷新查看数据!";


        public static string excelDataError = "Excel 数据导入失败,请核对数据正确、或者刷新页面重试,反复出现请联系管理员查看logs文件!";

        /// <summary>
        /// 服务器业务数据操作失败出现异常,反复出现请联系管理员!
        /// </summary>
        public static string dataActionError = "服务器业务数据操作失败出现异常,反复出现请联系管理员!";

        /// <summary>
        /// 服务器业务数据处理成功
        /// </summary>
        public static string dataActionOk = "服务器业务数据处理成功!";
        
        public static DateTime StartTime;

        /// <summary>
        /// iot需要排除 设备类型
        /// </summary>
        private static List<string> EquipmentTypeList = new List<string> { "StationMonitor", "Hoist", "RGVStation" };
        public static string IotNotContainDevice = string.Join("', '", EquipmentTypeList);

        /// <summary>
        /// 所有AGV类型,AGV相关异常报表查询筛选使用
        /// </summary>
        private static List<string> AGVEquipmentTypeList = new List<string> { "AGVForklift" };
        public static string IotAGVContainDevice = string.Join("','", AGVEquipmentTypeList);

     
        /// <summary>
        ///  false 不写入数据库日志
        /// </summary>
        public static Dictionary<string, Tuple<string, bool>> apiList = new Dictionary<string, Tuple<string, bool>>();

        public static void InitApiList()
        {
            //apiList.Add("/api/System/Mes/V1/Login/Logout", new Tuple<string, bool>(EnumLog.API退出登入接口.ToString(), false));

            //apiList.Add("/api/System/Mes/V1/Login", new Tuple<string, bool>(EnumLog.API登入接口.ToString(), false));

        }
    }
}