diff --git a/Aucma.Core.SheetMetal/ViewModels/IndexPageViewModel.cs b/Aucma.Core.SheetMetal/ViewModels/IndexPageViewModel.cs index dae63c3..0ec0be6 100644 --- a/Aucma.Core.SheetMetal/ViewModels/IndexPageViewModel.cs +++ b/Aucma.Core.SheetMetal/ViewModels/IndexPageViewModel.cs @@ -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(); } } diff --git a/Aucma.Core.SheetMetal/Views/IndexPageView.xaml b/Aucma.Core.SheetMetal/Views/IndexPageView.xaml index c957a05..4a5e0d0 100644 --- a/Aucma.Core.SheetMetal/Views/IndexPageView.xaml +++ b/Aucma.Core.SheetMetal/Views/IndexPageView.xaml @@ -295,8 +295,8 @@ -