一楼入库.cs 2.0 KB

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