|
@@ -115,9 +115,9 @@ namespace WCS.Service.Extensions
|
|
|
{
|
|
|
foreach (var item in Items)
|
|
|
{
|
|
|
- if (item.Data.VoucherNo != item.Data2.VoucherNo) throw new WarnException($"等待{item.Entity.Code}执行任务{item.Data.Tasknum},凭证号不一致");
|
|
|
- if (item.Data3.Status.HasFlag(StationStatus.运行状态位)) throw new DoException($"{item.Entity.Code}运行中");
|
|
|
- if (!item.Data2.Status.HasFlag(IstationStatus.光电状态)) throw new DoException($"[{item.Entity.Code}]无光电");
|
|
|
+ if (item.Data.VoucherNo != item.Data2.VoucherNo) throw new WarnException($"等待{item.Entity.CODE}执行任务{item.Data.Tasknum},凭证号不一致");
|
|
|
+ if (item.Data3.Status.HasFlag(StationStatus.运行状态位)) throw new DoException($"{item.Entity.CODE}运行中");
|
|
|
+ if (!item.Data2.Status.HasFlag(IstationStatus.光电状态)) throw new DoException($"[{item.Entity.CODE}]无光电");
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -501,7 +501,7 @@ namespace WCS.Service.Extensions
|
|
|
public void Put(StationDeviceGroup addr, int task1 = 0, int task2 = 0)
|
|
|
{
|
|
|
Data.TaskType_1 = RGVTaskType.放货;
|
|
|
- Data.DestPosition_1 = addr.Entity.CODE.Replace("G","").ToShort();
|
|
|
+ Data.DestPosition_1 = addr.Entity.CODE.Replace("G", "").ToShort();
|
|
|
if (task1 != 0) Data.TaskID_1 = task1;
|
|
|
if (task2 != 0) Data.TaskID_2 = task2;
|
|
|
Data.Trigger_1++;
|