成品提升机.cs 760 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using WCS.Core;
  7. using WCS.Entity.Protocol.Station;
  8. namespace WCS.WorkEngineering.Systems
  9. {
  10. public class 成品提升机 : DeviceSystem<Device<IStation520, IStation521>>
  11. {
  12. protected override bool ParallelDo => true;
  13. public override void Do(Device<IStation520, IStation521> obj)
  14. {
  15. if(obj.Data.VoucherNo!=obj.Data2.VoucherNo)
  16. {
  17. return;
  18. }
  19. if (obj.Data2.Request != 0)
  20. return;
  21. }
  22. public override bool Select(Device dev)
  23. {
  24. return "5001,5011,5022".Split(',').Contains(dev.Code);
  25. }
  26. }
  27. }