49 lines
1.0 KiB
C#
49 lines
1.0 KiB
C#
using Autofac;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using WcsMain.AppEntity.SystemData;
|
|
using WcsMain.DataBase.TableEntity;
|
|
|
|
namespace WcsMain.Common;
|
|
|
|
/// <summary>
|
|
/// 共享数据
|
|
/// </summary>
|
|
public static class CommonData
|
|
{
|
|
/// <summary>
|
|
/// IOC
|
|
/// </summary>
|
|
[NotNull]
|
|
public static IContainer? Container { get; set; }
|
|
|
|
/// <summary>
|
|
/// 系统设置项,加载于 appsettings.json
|
|
/// </summary>
|
|
[NotNull]
|
|
public static AppSettingJsonEntity? Settings { get; set; }
|
|
|
|
/// <summary>
|
|
/// 数据库的 Config 配置
|
|
/// </summary>
|
|
[NotNull]
|
|
public static AppConfigEntity? AppConfig { get; set; }
|
|
|
|
/// <summary>
|
|
/// 堆垛机数据
|
|
/// </summary>
|
|
[NotNull]
|
|
public static List<AppStacker>? AppStackers { get; set; }
|
|
|
|
/// <summary>
|
|
/// 点位信息
|
|
/// </summary>
|
|
[NotNull]
|
|
public static List<AppLocation>? AppLocations { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
/// 指示是否连接PLC
|
|
/// </summary>
|
|
public static bool IsConnectPlc { get; set; } = false;
|
|
} |