OutboundSiteInteractionSystems.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using WCS.Core;
  2. using WCS.WorkEngineering.Extensions;
  3. namespace WCS.WorkEngineering.Systems
  4. {
  5. /// <summary>
  6. /// 出库站台交互
  7. /// </summary>
  8. public class OutboundSiteInteractionSystems : DeviceSystem<Station>
  9. {
  10. protected override bool ParallelDo => true;
  11. protected override bool SaveLogsToFile => true;
  12. public override void Do(Station obj)
  13. {
  14. var IsThereATask = false; //无任务
  15. #region 判断站点是否有任务
  16. //光电有货或有任务有货
  17. if (obj.Data3.Status.HasFlag(Entity.Protocol.Station.StatusEunm.PH_Status) || obj.Data3.Status.HasFlag(Entity.Protocol.Station.StatusEunm.OT_Status))
  18. {
  19. if (!obj.Data3.Status.HasFlag(Entity.Protocol.Station.StatusEunm.PH_Status))
  20. IsThereATask = true;
  21. }
  22. #endregion 判断站点是否有任务
  23. if (IsThereATask)
  24. {
  25. }
  26. else
  27. {
  28. //TODO判断当前站台是否是一楼
  29. if (true) //一楼无任务站台开始呼叫空轮出库任务
  30. {
  31. }
  32. }
  33. }
  34. public override bool Select(Device dev)
  35. {
  36. throw new NotImplementedException();
  37. }
  38. }
  39. }