SystemVariable.cs
5.79 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
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>
/// 未查询到符合条件的数据
/// </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;
/// <summary>
/// 料点字典集合
/// </summary>
public static List<base_location> locationList = new List<base_location>();
/// <summary>
/// false 不写入数据库日志
/// </summary>
public static Dictionary<string, Tuple<string, bool>> apiList = new Dictionary<string, Tuple<string, bool>>();
public static void InitApiList()
{
apiList.Add("/api/Upstream/Mes/V1/SendUser", new Tuple<string, bool>(EnumLog.API人员接口.ToString(), true));
apiList.Add("/api/Upstream/Mes/V1/SendMaterial", new Tuple<string, bool>(EnumLog.API物料主数据接口.ToString(), true));
apiList.Add("/api/Upstream/Mes/V1/SendProcessRoute", new Tuple<string, bool>(EnumLog.API工艺路线接口.ToString(), true));
apiList.Add("/api/Upstream/Mes/V1/SendSupplier", new Tuple<string, bool>(EnumLog.API供应商接口.ToString(), true));
apiList.Add("/api/Upstream/Mes/V1/SendWorkOrder", new Tuple<string, bool>(EnumLog.API生产订单接口.ToString(), true));
apiList.Add("/api/Upstream/Mes/V1/SendCalendar", new Tuple<string, bool>(EnumLog.API工作日历接口.ToString(), true));
apiList.Add("/api/Upstream/Mes/V1/SendCheck", new Tuple<string, bool>(EnumLog.API质量问题状态接口.ToString(), true));
apiList.Add("/api/Upstream/Mes/V1/ProcessRouteUpMom", new Tuple<string, bool>(EnumLog.API工序执行信息反馈接口.ToString(), true));
apiList.Add("/api/Upstream/Mes/V1/AndonUpMom", new Tuple<string, bool>(EnumLog.APIANDON报警接口.ToString(), true));
apiList.Add("/api/Upstream/Mes/V1/GetMomToken", new Tuple<string, bool>(EnumLog.API获取MOM请求Token接口.ToString(), true));
apiList.Add("/api/System/Mes/V1/base/AppCheckVerByAppNameAndVer", new Tuple<string, bool>(EnumLog.API检查APP更新接口.ToString(), false));
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));
apiList.Add("/api/System/Mes/V1/AppCheckToken", new Tuple<string, bool>(EnumLog.API判断token是否存在or过期接口.ToString(), false));
apiList.Add("/api/System/Mes/V1/GetPDAModules", new Tuple<string, bool>(EnumLog.API获取PDA用户可访问的模块列表接口.ToString(), true));
apiList.Add("/api/System/Mes/V1/Login/OtherLogin", new Tuple<string, bool>(EnumLog.API第三方登入接口.ToString(), true));
apiList.Add("/api/System/Mes/V1/GetState", new Tuple<string, bool>(EnumLog.API枚举对象.ToString(), false));
apiList.Add("/api/PDA/Mes/V1/GetMaterialByPDABarCode", new Tuple<string, bool>(EnumLog.API物料追溯查询接口.ToString(), true));
}
}
/// <summary>
/// 系统变量 工作中心 和 base_work_center 保持一致
/// </summary>
public class SystemWorkCenterVariable
{
/// <summary>
/// 套料
/// </summary>
public readonly static string Nesting = "Nesting";
/// <summary>
/// 坡口
/// </summary>
public readonly static string Bevel = "Bevel";
/// <summary>
/// 切割坡口
/// </summary>
public readonly static string CutBevel = "CutBevel";
/// <summary>
/// 打磨
/// </summary>
public readonly static string Polish = "Polish";
/// <summary>
/// 焊接
/// </summary>
public readonly static string Weld = "Weld";
/// <summary>
/// 组焊 组对
/// </summary>
public readonly static string FitUpAndWeld = "FitUpAndWeld";
/// <summary>
/// 上料
/// </summary>
public readonly static string LoadMaterial = "LoadMaterial";
}
}