|
|
|
|
@ -3935,6 +3935,27 @@ namespace Khd.Core.Wpf.Form
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var removeTaskManualList = dbContext.WcsTaskManual.Where(x => x.taskType == 30 ).ToList();
|
|
|
|
|
if (removeTaskManualList.Count > 0)
|
|
|
|
|
{
|
|
|
|
|
StringBuilder stringContainers = new StringBuilder();
|
|
|
|
|
stringContainers.AppendLine("以下料箱有未完成的出库任务:");
|
|
|
|
|
removeTaskManualList.ForEach(x => stringContainers.AppendLine($"料箱号{x.containerNo}\n"));
|
|
|
|
|
stringContainers.AppendLine("是否删除任务继续出库?");
|
|
|
|
|
MessageBoxResult isContinueCreateResult = HandyControl.Controls.MessageBox.Show(stringContainers.ToString(), "提示", MessageBoxButton.YesNo);
|
|
|
|
|
if (isContinueCreateResult == MessageBoxResult.Yes)
|
|
|
|
|
{
|
|
|
|
|
dbContext.RemoveRange(removeTaskManualList);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -3962,9 +3983,9 @@ namespace Khd.Core.Wpf.Form
|
|
|
|
|
fromFloorNo = 5,
|
|
|
|
|
useFlag = 1
|
|
|
|
|
});
|
|
|
|
|
item.ContainerStatus = "2";
|
|
|
|
|
item.locationStatus = "6";
|
|
|
|
|
dbContext.Update(item);
|
|
|
|
|
// item.ContainerStatus = "2";
|
|
|
|
|
//item.locationStatus = "6";
|
|
|
|
|
// dbContext.Update(item);
|
|
|
|
|
}
|
|
|
|
|
if (addList.Count < 6)
|
|
|
|
|
{
|
|
|
|
|
|