涂布出库.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. using System.Collections.Generic;
  2. using WCS.Core;
  3. using WCS.Entity;
  4. using WCS.Entity.Protocol;
  5. using WCS.Service.Extensions;
  6. using WCS.Service.Handlers;
  7. namespace WCS.Service.Works.Station
  8. {
  9. /// <summary>
  10. /// 涂布堆垛机放货分配目标地址
  11. /// </summary>
  12. [WorkTitle(typeof(CoatingHandler), "涂布堆垛机放货分配目标地址")]
  13. public class 涂布堆垛机放货分配目标地址 : DeviceWork<Device<IStation520, IStation521, IStation523>>
  14. {
  15. protected override void Do(Device<IStation520, IStation521, IStation523> obj)
  16. {
  17. }
  18. protected override bool SelectDevice(WCS_DEVICE dev)
  19. {
  20. return devCodes.Contains(dev.CODE);
  21. }
  22. private List<string> devCodes = new List<string>() { "G1283", "G1290", "G1292", "G1299", "G1301", "G1308", "G1310" };
  23. }
  24. /// <summary>
  25. /// 涂布出库分配出库口
  26. /// </summary>
  27. [WorkTitle(typeof(CoatingHandler), "涂布出库分配出库口")]
  28. public class 涂布出库分配出库口 : DeviceWork<Device<IStation520, IStation521, IStation523>>
  29. {
  30. protected override void Do(Device<IStation520, IStation521, IStation523> obj)
  31. {
  32. }
  33. protected override bool SelectDevice(WCS_DEVICE dev)
  34. {
  35. return devCodes.Contains(dev.CODE);
  36. }
  37. private List<string> devCodes = new List<string>() { "G5", "G7", "G9", "G11" };
  38. }
  39. /// <summary>
  40. /// 涂布出库分配AGV取货点
  41. /// </summary>
  42. [WorkTitle(typeof(CoatingHandler), "涂布出库分配AGV取货点")]
  43. public class 涂布出库分配AGV取货点 : DeviceWork<Device<IStation520, IStation521, IStation523>>
  44. {
  45. protected override void Do(Device<IStation520, IStation521, IStation523> obj)
  46. {
  47. }
  48. protected override bool SelectDevice(WCS_DEVICE dev)
  49. {
  50. return dev.CODE == "G1340";
  51. }
  52. }
  53. /// <summary>
  54. /// 涂布出库返回任务长度
  55. /// </summary>
  56. [WorkTitle(typeof(CoatingHandler), "涂布出库返回任务长度")]
  57. public class 涂布出库返回任务长度 : DeviceWork<Device<IStation520, IStation521, IStation523>>
  58. {
  59. protected override void Do(Device<IStation520, IStation521, IStation523> obj)
  60. {
  61. }
  62. protected override bool SelectDevice(WCS_DEVICE dev)
  63. {
  64. return dev.CODE == "G1334";
  65. }
  66. }
  67. /// <summary>
  68. /// 涂布叫料
  69. /// </summary>
  70. [WorkTitle(typeof(CoatingHandler), "涂布叫料")]
  71. public class 涂布叫料 : DeviceWork<Device<IStation520, IStation521, IStation523>>
  72. {
  73. protected override void Do(Device<IStation520, IStation521, IStation523> obj)
  74. {
  75. }
  76. protected override bool SelectDevice(WCS_DEVICE dev)
  77. {
  78. return dev.CODE == "G1340" || dev.CODE == "G1343";
  79. }
  80. }
  81. }