|
|
@@ -1340,10 +1340,10 @@ namespace TeamAAS_VP.ViewModels.Product
|
|
|
await Task.Delay(200);
|
|
|
|
|
|
//获取移动向下相机1的流程
|
|
|
- var process1 = _productService.GetCurrentProductProcedureModelById(SelectProduct.MoveDownCamera1LockPhotoProcedureId);
|
|
|
+ var process1 = _productService.GetCurrentProductProcedureModelById(Points[0].VisionProcessID);
|
|
|
if (process1 == null)
|
|
|
{
|
|
|
- _eventAggregator.GetEvent<SnackbarMessageNotification>().Publish(new MessageParameter() { Msg = $"移动向下相机1视觉流程,流程ID:{SelectProduct.MoveDownCamera1LockPhotoProcedureId} 未找到!", Duration = 1 });
|
|
|
+ _eventAggregator.GetEvent<SnackbarMessageNotification>().Publish(new MessageParameter() { Msg = $"移动向下相机1视觉流程,流程ID:{Points[0].VisionProcessID} 未找到!", Duration = 1 });
|
|
|
if (DialogHost.IsDialogOpen("RootDialog"))
|
|
|
{
|
|
|
DialogHost.Close("RootDialog");
|
|
|
@@ -1382,10 +1382,10 @@ namespace TeamAAS_VP.ViewModels.Product
|
|
|
await Task.Delay(200);
|
|
|
|
|
|
//获取移动向下相机1的流程
|
|
|
- var process2= _productService.GetCurrentProductProcedureModelById(SelectProduct.MoveDownCamera2LockPhotoProcedureId);
|
|
|
+ var process2= _productService.GetCurrentProductProcedureModelById(Points[1].VisionProcessID);
|
|
|
if (process2 == null)
|
|
|
{
|
|
|
- _eventAggregator.GetEvent<SnackbarMessageNotification>().Publish(new MessageParameter() { Msg = $"移动向下相机2视觉流程,流程ID:{SelectProduct.MoveDownCamera2LockPhotoProcedureId} 未找到!", Duration = 1 });
|
|
|
+ _eventAggregator.GetEvent<SnackbarMessageNotification>().Publish(new MessageParameter() { Msg = $"移动向下相机2视觉流程,流程ID:{Points[1].VisionProcessID} 未找到!", Duration = 1 });
|
|
|
if (DialogHost.IsDialogOpen("RootDialog"))
|
|
|
{
|
|
|
DialogHost.Close("RootDialog");
|