12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- using System.Collections.Generic;
- using WCS.Core;
- using WCS.Entity;
- using WCS.Entity.Protocol;
- using WCS.Service.Handlers;
- namespace WCS.Service.Works.Station
- {
- /// <summary>
- ///
- /// </summary>
- [WorkTitle(typeof(ProductHandler), "扫码入库")]
- internal class 扫码入库 : DeviceWork<Device<IStation520, IStation521, IStation523>>
- {
- protected override bool SelectDevice(WCS_DEVICE dev)
- {
- return dev.CODE == "G1028";
- }
- protected override void Do(Device<IStation520, IStation521, IStation523> obj)
- {
- }
- }
- [WorkTitle(typeof(ProductHandler), "一楼分配巷道")]
- internal class 巷道分配 : DeviceWork<Device<IStation520, IStation521, IStation523>>
- {
- protected override bool SelectDevice(WCS_DEVICE dev)
- {
- return dev.CODE == "G1030";
- }
- protected override void Do(Device<IStation520, IStation521, IStation523> obj)
- {
- }
- }
- //[WorkTitle(typeof(ProductHandler), "一楼入库旋转台二次分配巷道")]
- internal 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>() { "G1038", "G1047", "1056", "1065" };
- }
- [WorkTitle(typeof(ProductHandler), "一楼RGV放货结束分配目标地址")]
- internal class 一楼RGV放货结束分配目标地址 : 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>() { "G1035", "G1044", "G1053", "G1062" };
- }
- }
|