BOPP入库.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. ///BOPP扫码入库
  10. /// </summary>
  11. [WorkTitle(typeof(BOPPHandler), "BOPP扫码入库")]
  12. public class BOPP扫码入库 : DeviceWork<Device<IStation520, IStation521, IStation523>>
  13. {
  14. protected override void Do(Device<IStation520, IStation521, IStation523> obj)
  15. {
  16. }
  17. protected override bool SelectDevice(WCS_DEVICE dev)
  18. {
  19. return dev.CODE == "G1157";
  20. }
  21. }
  22. /// <summary>
  23. /// BOPP巷道分配
  24. /// </summary>
  25. [WorkTitle(typeof(BOPPHandler), "BOPP巷道分配")]
  26. public class BOPP巷道分配 : DeviceWork<Device<IStation520, IStation521, IStation523>>
  27. {
  28. protected override void Do(Device<IStation520, IStation521, IStation523> obj)
  29. {
  30. }
  31. protected override bool SelectDevice(WCS_DEVICE dev)
  32. {
  33. return dev.CODE == "G23";
  34. }
  35. }
  36. /// <summary>
  37. /// 涂布入库旋转台二次分配巷道
  38. /// </summary>
  39. [WorkTitle(typeof(BOPPHandler), "BOPP入库旋转台二次分配巷道")]
  40. public class BOPP入库旋转台二次分配巷道 : DeviceWork<Device<IStation520, IStation521, IStation523>>
  41. {
  42. protected override void Do(Device<IStation520, IStation521, IStation523> obj)
  43. {
  44. }
  45. protected override bool SelectDevice(WCS_DEVICE dev)
  46. {
  47. return devCodes.Contains(dev.CODE);
  48. }
  49. private List<string> devCodes = new List<string>() { "G1190", "G1199", "G1208", "G1217", "G1225" };
  50. }
  51. }