liulb@mesnac.com 11 months ago
parent 2bf4a384e9
commit c12b23a282

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

@ -295,8 +295,8 @@
<StackPanel > <StackPanel >
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Right" > <WrapPanel VerticalAlignment="Center" HorizontalAlignment="Right" >
<TextBlock Text="计划列表" FontSize="20" FontWeight="Bold" Foreground="White" /> <TextBlock Text="计划列表" FontSize="20" FontWeight="Bold" Foreground="White" />
<Button Content="暂停计划" Command="{Binding StopCommand}" Width="100" Height="30" Background="YellowGreen" Margin="300 0 0 0" /> <!--<Button Content="暂停计划" Command="{Binding StopCommand}" Width="100" Height="30" Background="YellowGreen" Margin="300 0 0 0" />-->
<Button Content="手动下发" Command="{Binding ManualCommand}" Width="100" Height="30" Background="OrangeRed" Margin="10 0 0 0" /> <Button Content="手动下发" Command="{Binding ManualCommand}" Width="100" Height="30" Background="OrangeRed" Margin="380 0 0 0" />
</WrapPanel> </WrapPanel>
</StackPanel> </StackPanel>

@ -329,7 +329,6 @@ namespace Aucma.Core.SheetMetalTasks
//读取设备进度,完成后再次下发新任务 //读取设备进度,完成后再次下发新任务
ReadDeviceComplate_SidePanel(obj_sidePanel); ReadDeviceComplate_SidePanel(obj_sidePanel);
} }
// }); // });
} }

Loading…
Cancel
Save