Blame view

sys/Hh.Mes.POJO/SystemVariable.cs 3 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
56
57
58
59
60
61
62
        /// </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 = "服务器业务数据处理成功!";

        /// <summary>
        /// ECS提交的PLC检测无料框的料点编码
        /// </summary>
        public static Tuple<DateTime, List<string>> noneGoodsLocationCodes = new Tuple<DateTime, List<string>>(DateTime.Now, new List<string>());
        public static DateTime StartTime;
63
赖素文 authored
64
        /// <summary>
65
        /// iot需要排除 设备类型
赖素文 authored
66
        /// </summary>
赖素文 authored
67
        private static List<string> EquipmentTypeList = new List<string> { "StationMonitor" , "Hoist", "RGVStation" };
68
        public static string IotNotContainDevice = string.Join("', '", EquipmentTypeList);
69
70
71
72
73
        /// <summary>
        /// 料点字典集合
        /// </summary>
        public static List<base_location> locationList = new List<base_location>();
赖素文 authored
74
75
76
77
78
79
80
81

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

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