123456789101112131415161718192021 |
- using System.Collections.Generic;
- using System.Linq;
- using WCS.Core;
- using WCS.Entity;
- using WCS.Entity.Protocol;
- namespace WCS.Service.Extensions
- {
- public static class DeviceExtention
- {
- /// <summary>
- /// 双工位RGV获取需要取货的站点
- /// </summary>
- /// <param name="deviceList"></param>
- /// <returns></returns>
- public static List<WCS_DEVICE> DRGVGetValidPickupPoint(this WCS_DEVICE[] deviceList)
- {
- return deviceList.ToList().Select(v => v.Device<IStation521, IStation520, IStation523>()).Where(v => v.Data.PH_STATUS && v.Data.TASKNUM > 10000 && !v.Data2.CONFIRM);
- }
- }
- }
|