一楼入库.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. internal class 扫码入库 : Work<IStation520>
  10. {
  11. protected override bool SelectDevice(WCS_DEVICE dev)
  12. {
  13. return dev.CODE == "G1028";
  14. }
  15. protected override void Do(IStation520 obj)
  16. {
  17. }
  18. }
  19. [WorkTitle(typeof(ProductHandler), "一楼分配巷道")]
  20. internal class 巷道分配 : Work<IStation520>
  21. {
  22. protected override bool SelectDevice(WCS_DEVICE dev)
  23. {
  24. return dev.CODE == "G1030";
  25. }
  26. protected override void Do(IStation520 obj)
  27. {
  28. }
  29. }
  30. //[WorkTitle(typeof(ProductHandler), "一楼入库旋转台二次分配巷道")]
  31. internal class 一楼入库旋转台二次分配巷道 : Work<IStation520>
  32. {
  33. protected override void Do(IStation520 obj)
  34. {
  35. }
  36. protected override bool SelectDevice(WCS_DEVICE dev)
  37. {
  38. return devCodes.Contains(dev.CODE);
  39. }
  40. private List<string> devCodes = new List<string>() { "G1038", "G1047", "1056", "1065" };
  41. }
  42. [WorkTitle(typeof(ProductHandler), "一楼RGV放货结束分配目标地址")]
  43. internal class 一楼RGV放货结束分配目标地址 : Work<IStation520>
  44. {
  45. protected override void Do(IStation520 obj)
  46. {
  47. }
  48. protected override bool SelectDevice(WCS_DEVICE dev)
  49. {
  50. return devCodes.Contains(dev.CODE);
  51. }
  52. private List<string> devCodes = new List<string>() { "G1035", "G1044", "G1053", "G1062" };
  53. }
  54. }