SystemVariable.cs
2.9 KB
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
26
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
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));
}
}
}