|
@@ -385,7 +385,7 @@ namespace WCS.WorkEngineering.Systems
|
|
|
obj.Data.SLayer1 = taskInfo.Layer.ToShort();
|
|
|
obj.Data.SDepth1 = taskInfo.Depth.ToShort();
|
|
|
obj.Data.ELine1 = nextAdd.ToShort();
|
|
|
- obj.Data.ECol1 = taskInfoList.Min(x => x.ProdLine);
|
|
|
+ obj.Data.ECol1 = taskInfo.WarehouseCode.Contains("S") ? taskInfoList.Max(x => x.ProdLine) : taskInfoList.Min(x => x.ProdLine);
|
|
|
obj.Data.ELayer1 = 0;
|
|
|
obj.Data.EDepth1 = 0;
|
|
|
//二工位取深度较少的值
|
|
@@ -396,7 +396,7 @@ namespace WCS.WorkEngineering.Systems
|
|
|
obj.Data.SLayer2 = taskInfo.Layer.ToShort();
|
|
|
obj.Data.SDepth2 = taskInfo.Depth.ToShort();
|
|
|
obj.Data.ELine2 = nextAdd.ToShort();
|
|
|
- obj.Data.ECol2 = taskInfoList.Max(x => x.ProdLine);
|
|
|
+ obj.Data.ECol2 = taskInfo.WarehouseCode.Contains("S") ? taskInfoList.Min(x => x.ProdLine) : taskInfoList.Max(x => x.ProdLine);
|
|
|
obj.Data.ELayer2 = 0;
|
|
|
obj.Data.EDepth2 = 0;
|
|
|
obj.Data.TaskSum = taskInfoList.Count.ToShort();
|