湿拉满轮帘线芯股第一次扫码.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. using System.ComponentModel;
  2. using WCS.Core;
  3. using WCS.WorkEngineering.Protocol.BCR;
  4. using WCS.WorkEngineering.Protocol.Station;
  5. using WCS.WorkEngineering.WebApi.Controllers;
  6. using WCS.WorkEngineering.Worlds;
  7. using DeviceFlags = WCS.WorkEngineering.Extensions.DeviceFlags;
  8. namespace WCS.WorkEngineering.Systems
  9. {
  10. /// <summary>
  11. /// 湿拉满轮帘线芯股第一次扫码
  12. /// </summary>
  13. [BelongTo(typeof(MainWorld))]
  14. [Description("湿拉满轮帘线芯股第一次扫码")]
  15. public class 湿拉满轮帘线芯股第一次扫码 : DeviceSystem<Device<IStation520, IStation521, IStation523, IBCR83>>
  16. {
  17. protected override bool ParallelDo => true;
  18. protected override bool SaveLogsToFile => true;
  19. public override void Do(Device<IStation520, IStation521, IStation523, IBCR83> obj)
  20. {
  21. var bcrCodeList = obj.Data4.GetBcrCodeList();
  22. //获取当前站台对应的编码信息
  23. WmsApi.EnteMainLine(bcrCodeList);
  24. }
  25. public override bool Select(Device dev)
  26. {
  27. return dev.HasFlag(DeviceFlags.满轮主线第一次扫码);
  28. }
  29. }
  30. }