12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- using System.Collections.Generic;
- using WCS.Core;
- using WCS.Entity;
- using WCS.Entity.Protocol;
- using WCS.Service.Handlers;
- namespace WCS.Service.Works.Station
- {
- /// <summary>
- ///BOPP扫码入库
- /// </summary>
- [WorkTitle(typeof(BOPPHandler), "BOPP扫码入库")]
- public class BOPP扫码入库 : DeviceWork<Device<IStation520, IStation521, IStation523>>
- {
- protected override void Do(Device<IStation520, IStation521, IStation523> obj)
- {
- }
- protected override bool SelectDevice(WCS_DEVICE dev)
- {
- return dev.CODE == "G1157";
- }
- }
- /// <summary>
- /// BOPP巷道分配
- /// </summary>
- [WorkTitle(typeof(BOPPHandler), "BOPP巷道分配")]
- public class BOPP巷道分配 : DeviceWork<Device<IStation520, IStation521, IStation523>>
- {
- protected override void Do(Device<IStation520, IStation521, IStation523> obj)
- {
- }
- protected override bool SelectDevice(WCS_DEVICE dev)
- {
- return dev.CODE == "G23";
- }
- }
- /// <summary>
- /// 涂布入库旋转台二次分配巷道
- /// </summary>
- [WorkTitle(typeof(BOPPHandler), "BOPP入库旋转台二次分配巷道")]
- public class BOPP入库旋转台二次分配巷道 : 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>() { "G1190", "G1199", "G1208", "G1217", "G1225" };
- }
- }
|