BOPP入库.cs 1.5 KB

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