2024-05-14 16:30:56 +08:00
|
|
|
|
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; }
|
|
|
|
|
|
|
2024-05-29 12:56:32 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 电子标签基础资料
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[NotNull]
|
|
|
|
|
|
public static List<AppElTagBase>? AppElTags { get; set; }
|
2024-05-14 16:30:56 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 指示是否连接PLC
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public static bool IsConnectPlc { get; set; } = false;
|
|
|
|
|
|
}
|