|
@@ -71,6 +71,7 @@ namespace WCS.WorkEngineering.Systems
|
|
|
Memo = obj.Entity.Code
|
|
|
};
|
|
|
errorInfo.AddBaseErrorInfo(db);
|
|
|
+ dev.Data.Mode = StationMode.Automatic;
|
|
|
return;
|
|
|
}
|
|
|
var config1 = db.Queryable<fjSysConfig>().NoLock().First(x => x.Code == $"{task.WarehouseCode}-Flow");
|
|
@@ -84,6 +85,7 @@ namespace WCS.WorkEngineering.Systems
|
|
|
});
|
|
|
if (taskInfo == null)
|
|
|
{
|
|
|
+ dev.Data.Mode = StationMode.Automatic;
|
|
|
continue;
|
|
|
}
|
|
|
var srmCode = taskInfo.WarehouseCode.WarehouseToSrm();
|
|
@@ -102,6 +104,7 @@ namespace WCS.WorkEngineering.Systems
|
|
|
Memo = obj.Entity.Code
|
|
|
};
|
|
|
errorInfo.AddBaseErrorInfo();
|
|
|
+ dev.Data.Mode = StationMode.Automatic;
|
|
|
continue;
|
|
|
}
|
|
|
|
|
@@ -134,7 +137,12 @@ namespace WCS.WorkEngineering.Systems
|
|
|
|
|
|
#endregion 计算应该去哪个分拣库
|
|
|
|
|
|
- if (taskInfo == null) continue;
|
|
|
+ if (taskInfo == null)
|
|
|
+ {
|
|
|
+ dev.Data.Mode = StationMode.Automatic;
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+
|
|
|
//开始赋值
|
|
|
obj.Data3.GetType().GetProperty($"TaskNumber{obj.Data3.NextIndex}")
|
|
|
.SetValue(obj.Data3, taskInfo.ID);
|