using Jc.SnowId; using SlnMesnac.Model.domain; namespace SlnMesnac.WCS.Global { public static class StaticData { public static JcSnowId SnowId = new JcSnowId(); /// /// plc配置集合 /// public static List? BaseConfigList; /// /// 机台信息集合 /// public static List WmsMachineInfos; /// /// agv状态码集合 /// public static List WcsAgvCodeMaps; /// /// 通过key获取plc地址 /// /// /// public static string GetPlcAddress(string key) { if (BaseConfigList == null) return ""; BaseConfigInfo? config = BaseConfigList.FirstOrDefault(x => x.ConfigKey == key); if (config != null) { return config.ConfigValue; } return ""; } } }