| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 | using System.Collections.Generic;using WCS.Core;using WCS.Entity;using WCS.Entity.Protocol;using WCS.Service.Handlers;namespace WCS.Service.Works.Station{    [WorkTitle(typeof(ProductHandler), "一楼出库堆垛机放货完成后分配下一个地址")]    public class 一楼出库 : DeviceWork<Device<IStation520, IStation521, IStation523>>    {        protected override void Do(Device<IStation520, IStation521, IStation523> obj)        {        }        protected override bool SelectDevice(WCS_DEVICE dev)        {            return devCodes.Contains(dev.CODE);        }        //月台堆垛机放货设备组        private List<string> devCodes = new List<string>() { "G1473", "G1474", "G1493", "G1491", "G1520", "G1522", "G1545", "G1451" };    }    [WorkTitle(typeof(ProductHandler), "月台出货口完成任务")]    public class 月台完成任务 : DeviceWork<Device<IStation520, IStation521, IStation523>>    {        protected override void Do(Device<IStation520, IStation521, IStation523> obj)        {        }        protected override bool SelectDevice(WCS_DEVICE dev)        {            return devCodes.Contains(dev.CODE);        }        private List<string> devCodes = new List<string>() { "G1469", "G1561", "G1538", "G1574", "G1509" };    }    [WorkTitle(typeof(ProductHandler), "转圈交互点分配目标地址")]    public class 转圈交互点分配目标地址 : DeviceWork<Device<IStation520, IStation521, IStation523>>    {        protected override void Do(Device<IStation520, IStation521, IStation523> obj)        {        }        protected override bool SelectDevice(WCS_DEVICE dev)        {            return dev.CODE == "G1589";        }    }}
 |