一楼出库.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using System.Collections.Generic;
  2. using WCS.Core;
  3. using WCS.Entity;
  4. using WCS.Entity.Protocol;
  5. using WCS.Service.Handlers;
  6. namespace WCS.Service.Works.Station
  7. {
  8. [WorkTitle(typeof(ProductHandler), "一楼出库堆垛机放货完成后分配下一个地址")]
  9. public class 一楼出库 : DeviceWork<Device<IStation520, IStation521, IStation523>>
  10. {
  11. protected override void Do(Device<IStation520, IStation521, IStation523> obj)
  12. {
  13. }
  14. protected override bool SelectDevice(WCS_DEVICE dev)
  15. {
  16. return devCodes.Contains(dev.CODE);
  17. }
  18. //月台堆垛机放货设备组
  19. private List<string> devCodes = new List<string>() { "G1473", "G1474", "G1493", "G1491", "G1520", "G1522", "G1545", "G1451" };
  20. }
  21. [WorkTitle(typeof(ProductHandler), "月台出货口完成任务")]
  22. public class 月台完成任务 : DeviceWork<Device<IStation520, IStation521, IStation523>>
  23. {
  24. protected override void Do(Device<IStation520, IStation521, IStation523> obj)
  25. {
  26. }
  27. protected override bool SelectDevice(WCS_DEVICE dev)
  28. {
  29. return devCodes.Contains(dev.CODE);
  30. }
  31. private List<string> devCodes = new List<string>() { "G1469", "G1561", "G1538", "G1574", "G1509" };
  32. }
  33. [WorkTitle(typeof(ProductHandler), "转圈交互点分配目标地址")]
  34. public class 转圈交互点分配目标地址 : DeviceWork<Device<IStation520, IStation521, IStation523>>
  35. {
  36. protected override void Do(Device<IStation520, IStation521, IStation523> obj)
  37. {
  38. }
  39. protected override bool SelectDevice(WCS_DEVICE dev)
  40. {
  41. return dev.CODE == "G1589";
  42. }
  43. }
  44. }