|
|
|
@ -1255,6 +1255,9 @@ namespace Aucma.Core.SheetMetal.ViewModels
|
|
|
|
|
MessageBox.Show("请选中要执行下发的计划!");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//获取当前计划的id
|
|
|
|
|
string Id = SelectedCells.ID;
|
|
|
|
|
if (string.IsNullOrEmpty(Id))
|
|
|
|
@ -1266,12 +1269,12 @@ namespace Aucma.Core.SheetMetal.ViewModels
|
|
|
|
|
var taskExecutionPlanInfo = await _taskExecutionPlanInfoServices.FirstAsync(d => d.ObjId == objId);
|
|
|
|
|
if (taskExecutionPlanInfo != null)
|
|
|
|
|
{
|
|
|
|
|
taskExecutionPlanInfo.ExecuteStatus = 1;
|
|
|
|
|
taskExecutionPlanInfo.ExecuteStatus = 2;
|
|
|
|
|
bool result = await _taskExecutionPlanInfoServices.UpdateAsync(taskExecutionPlanInfo);
|
|
|
|
|
if (result)
|
|
|
|
|
{
|
|
|
|
|
await _taskExecutionPlanInfoServices.PlanMoveDown(objId.ToString(), stationCode);
|
|
|
|
|
MessageBox.Show($"暂停计划成功,任务号:[{SelectedCells.TaskCode}]");
|
|
|
|
|
//await _taskExecutionPlanInfoServices.PlanMoveDown(objId.ToString(), stationCode);
|
|
|
|
|
MessageBox.Show($"下发计划成功,任务号:[{SelectedCells.TaskCode}]");
|
|
|
|
|
await LoadData();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|