123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- using System.Collections.Generic;
- using WCS.Core;
- using WCS.Entity;
- using WCS.Entity.Protocol;
- using WCS.Service.Extensions;
- using WCS.Service.Handlers;
- namespace WCS.Service.Works.Station
- {
- /// <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>() { "G1283", "G1290", "G1292", "G1299", "G1301", "G1308", "G1310" };
- }
- /// <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>() { "G5", "G7", "G9", "G11" };
- }
- /// <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 == "G1340";
- }
- }
- /// <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 == "G1334";
- }
- }
- /// <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 == "G1340" || dev.CODE == "G1343";
- }
- }
- }
|