55 lines
1.2 KiB
C#
55 lines
1.2 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>
|
|
/// 系统设置项,加载于 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>
|
|
/// 电子标签基础资料
|
|
/// </summary>
|
|
[NotNull]
|
|
public static List<AppElTagLocation>? AppElTags { get; set; }
|
|
|
|
/// <summary>
|
|
/// 输送线的站台
|
|
/// </summary>
|
|
[NotNull]
|
|
public static List<AppConveyStand>? AppConveyStands { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 指示是否连接PLC
|
|
/// </summary>
|
|
public static bool IsConnectPlc { get; set; } = false;
|
|
} |