徐孝锋 8 ヶ月 前
コミット
0da4d48f9a

+ 12 - 0
TeamAAS-VM/ViewModels/Product/AutoCorrectLockPointViewModel.cs

@@ -407,6 +407,9 @@ namespace TeamAAS_VP.ViewModels.Product
             }
 
             private float _PreX;
+            /// <summary>
+            /// 校准前的坐标
+            /// </summary>
             public float PreX
             {
                 get { return _PreX; }
@@ -414,6 +417,9 @@ namespace TeamAAS_VP.ViewModels.Product
             }
 
             private float _PreY;
+            /// <summary>
+            /// 校准前的坐标
+            /// </summary>
             public float PreY
             {
                 get { return _PreY; }
@@ -421,6 +427,9 @@ namespace TeamAAS_VP.ViewModels.Product
             }
 
             private float _PostX;
+            /// <summary>
+            /// 校准后的坐标
+            /// </summary>
             public float PostX
             {
                 get { return _PostX; }
@@ -428,6 +437,9 @@ namespace TeamAAS_VP.ViewModels.Product
             }
 
             private float _PostY;
+            /// <summary>
+            /// 校准后的坐标
+            /// </summary>
             public float PostY
             {
                 get { return _PostY; }

+ 6 - 0
TeamAAS-VM/ViewModels/Product/PlcPointParamsViewModel.cs

@@ -991,6 +991,12 @@ namespace TeamAAS_VP.ViewModels.Product
                     if (result1 == ButtonResult.OK)
                     {
                         var param = rst.Parameters.GetValue<ObservableCollection<PointEx>>("CorrectPoints");
+                        for (int i = 0; i < SelectProduct.ScrewPoints.Count; i++)
+                        {
+                            SelectProduct.ScrewPoints[i].X_Position = param[i].PostX;
+                            SelectProduct.ScrewPoints[i].Y_Position = param[i].PostY;
+                        }
+
                         _eventAggregator.GetEvent<SnackbarMessageNotification>().Publish(new MessageParameter() { Msg = "完成!", Duration = 1 });
                     }