Blame view

sys/Hh.Mes.POJO/SystemVariable.cs 2.9 KB
赖素文 authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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>
26
        /// 默认操作人 禁止修改
赖素文 authored
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
        /// </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 = "服务器业务数据处理成功!";
56
赖素文 authored
57
58
59
        public static DateTime StartTime;

        /// <summary>
60
        /// iot需要排除 设备类型
赖素文 authored
61
        /// </summary>
62
        private static List<string> EquipmentTypeList = new List<string> { "StationMonitor", "Hoist", "RGVStation" };
63
        public static string IotNotContainDevice = string.Join("', '", EquipmentTypeList);
64
65
        /// <summary>
66
67
68
69
70
        /// 所有AGV类型,AGV相关异常报表查询筛选使用
        /// </summary>
        private static List<string> AGVEquipmentTypeList = new List<string> { "AGVForklift" };
        public static string IotAGVContainDevice = string.Join("','", AGVEquipmentTypeList);
71
赖素文 authored
72
73
74
75
76
77
78
        /// <summary>
        ///  false 不写入数据库日志
        /// </summary>
        public static Dictionary<string, Tuple<string, bool>> apiList = new Dictionary<string, Tuple<string, bool>>();

        public static void InitApiList()
        {
79
            //apiList.Add("/api/System/Mes/V1/Login/Logout", new Tuple<string, bool>(EnumLog.API退出登入接口.ToString(), false));
80
81
            //apiList.Add("/api/System/Mes/V1/Login", new Tuple<string, bool>(EnumLog.API登入接口.ToString(), false));
HuXiYu authored
82
赖素文 authored
83
84
85
86
87
        }
    }
}
88
89
90
91
92