MainLineScanCode.cs 886 B

1234567891011121314151617181920212223242526272829
  1. using System.ComponentModel;
  2. using WCS.Core;
  3. using WCS.Entity.Protocol.Station;
  4. using WCS.WorkEngineering.Worlds;
  5. namespace WCS.WorkEngineering.Systems
  6. {
  7. /// <summary>
  8. /// 主线扫码
  9. /// </summary>
  10. [BelongTo(typeof(SortingMainLineWorld))]
  11. [Description("主线扫码")]
  12. public class MainLineScanCode : DeviceSystem<Device<IStation520, IStation521, IStation522>>
  13. {
  14. protected override bool ParallelDo => throw new NotImplementedException();
  15. protected override bool SaveLogsToFile => throw new NotImplementedException();
  16. public override void Do(Device<IStation520, IStation521, IStation522> obj)
  17. {
  18. throw new NotImplementedException();
  19. }
  20. public override bool Select(Device dev)
  21. {
  22. return new int[] { 1701, 2101, 1717, 2117 }.Contains(int.Parse(dev.Code));
  23. }
  24. }
  25. }