68 lines
1.8 KiB
C#
68 lines
1.8 KiB
C#
|
|
using Models.Models;
|
|||
|
|
using SamplePre.Common;
|
|||
|
|
using SamplePre.Communication;
|
|||
|
|
using SamplePre.Models.Ext;
|
|||
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Drawing;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
|
|||
|
|
namespace Models.Const
|
|||
|
|
{
|
|||
|
|
public class SystemConst
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 运行、成功色-绿色
|
|||
|
|
/// </summary>
|
|||
|
|
public static Color SuccessColor = Color.FromArgb(40, 167, 69); // 运行、成功色-绿色
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 待机-浅绿色
|
|||
|
|
/// </summary>
|
|||
|
|
public static Color AwaitColor = Color.FromArgb(66, 202, 171); // 待机-浅绿色
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 结束
|
|||
|
|
/// </summary>
|
|||
|
|
public static Color FinishColor = Color.FromArgb(22, 167, 169); // 运行、成功色-绿色
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 警告色-黄色
|
|||
|
|
/// </summary>
|
|||
|
|
public static Color WarningColor = Color.FromArgb(255, 193, 7); // 停止、警告色-黄色
|
|||
|
|
/// <summary>
|
|||
|
|
/// 危险色-红色
|
|||
|
|
/// </summary>
|
|||
|
|
public static Color DangerColor = Color.FromArgb(220, 53, 69); // 危险色-红色
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 主PLC对象
|
|||
|
|
/// </summary>
|
|||
|
|
public static ICommunication MasterPLC;
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 字典数据
|
|||
|
|
/// </summary>
|
|||
|
|
public static List<sys_dict> dictDatas = new List<sys_dict>();
|
|||
|
|
|
|||
|
|
|
|||
|
|
public static SysConfigData SysConfigInfo = new SysConfigData();
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 当前通信协议类型
|
|||
|
|
/// </summary>
|
|||
|
|
public static CommProtocolType ProtocolType = CommProtocolType.ModbusTcp;
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 当前登录用户信息
|
|||
|
|
/// </summary>
|
|||
|
|
public static LoginUserInfo loginUserInfo = new LoginUserInfo();
|
|||
|
|
}
|
|||
|
|
}
|