1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- using System.Collections.Generic;
- using WCS.Core;
- using WCS.Entity;
- using WCS.Entity.Protocol;
- using WCS.Service.Handlers;
- namespace WCS.Service.Works.Station
- {
- /// <summary>
- /// 涂布入库AGV交互
- /// </summary>
- [WorkTitle(typeof(CoatingHandler), "涂布入库AGV交互")]
- public class 涂布入库AGV交互 : DeviceWork<Device<IStation520, IStation521, IStation523>>
- {
- protected override void Do(Device<IStation520, IStation521, IStation523> obj)
- {
- }
- protected override bool SelectDevice(WCS_DEVICE dev)
- {
- return dev.CODE == "1394" || dev.CODE == "1386";
- }
- }
- /// <summary>
- /// 涂布扫码入库
- /// </summary>
- [WorkTitle(typeof(CoatingHandler), "涂布入库")]
- 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 == "G1386" || dev.CODE == "G1394";
- }
- }
- /// <summary>
- /// 涂布入库分配巷道
- /// </summary>
- [WorkTitle(typeof(CoatingHandler), "涂布入库分配巷道")]
- 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 == "G2" || dev.CODE == "G3";
- }
- }
- /// <summary>
- /// 涂布入库旋转台二次分配巷道
- /// </summary>
- [WorkTitle(typeof(CoatingHandler), "涂布入库旋转台二次分配巷道")]
- 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>() {
- "G1404",
- "G1413",
- "G1420",
- "G1429",
- };
- }
- }
|