|
@@ -6,6 +6,7 @@ using ServiceCenter.SqlSugars;
|
|
|
using System.ComponentModel;
|
|
|
using WCS.Core;
|
|
|
using WCS.Entity;
|
|
|
+using WCS.Entity.Protocol.Protocol.Station;
|
|
|
using WCS.WorkEngineering.Extensions;
|
|
|
using WCS.WorkEngineering.Worlds;
|
|
|
using DeviceFlags = WCS.WorkEngineering.Extensions.DeviceFlags;
|
|
@@ -18,7 +19,7 @@ namespace WCS.WorkEngineering.Systems
|
|
|
/// </summary>
|
|
|
[BelongTo(typeof(NoInteractionWorld))]
|
|
|
[Description("无交互系统")]
|
|
|
- public class NoInteractionSystems : DeviceSystem<Station>
|
|
|
+ public class NoInteractionSystems : DeviceSystem<Device<IStation520>>
|
|
|
{
|
|
|
public NoInteractionSystems()
|
|
|
{
|
|
@@ -28,7 +29,7 @@ namespace WCS.WorkEngineering.Systems
|
|
|
|
|
|
protected override bool SaveLogsToFile => true;
|
|
|
|
|
|
- public override void Do(Station obj)
|
|
|
+ public override void Do(Device<IStation520> obj)
|
|
|
{
|
|
|
var key = $"WCS:Lock:无交互系统{obj.Entity.Code}";
|
|
|
try
|
|
@@ -192,7 +193,7 @@ namespace WCS.WorkEngineering.Systems
|
|
|
|
|
|
public override bool Select(Device dev)
|
|
|
{
|
|
|
- return dev.Code == "2532";
|
|
|
+ return dev.Code == nameof(NoInteractionSystems);
|
|
|
}
|
|
|
}
|
|
|
}
|