using Fleck; using PlcTool.Siemens; using SqlSugar; using System.Diagnostics.CodeAnalysis; using WcsMain.Business.CommonAction; using WcsMain.ElTag.Atop; using WcsMain.Tcp.Client; namespace WcsMain.Common; /// /// 公用工具类 /// public class CommonTool { #region 数据库连接 /// /// 数据库连接 /// [NotNull] public static ISqlSugarClient? DbServe { get; set; } #endregion #region PLC 连接 /// /// PLC连接 /// public static SiemensS7? Siemens { get; set; } #endregion #region PLC 的 TCP 连接 /// /// TCP 连接的PLC通讯 /// [NotNull] public static PlcTcpClient? PlcTcpClient { get; set; } #endregion #region 电子标签的 TCP 连接 /// /// 电子标签的 TCP 连接 /// [NotNull] public static OprTcpClient? OprTcpClient { get; set; } #endregion #region WMS 接口 // 请查看 Plugins 文件夹 WmsWebApiPost #endregion public static WebSocketServer? Websocket; public static readonly LedUsing LedUsing = new(256, 96, 1); }