Browse Source

修复切换SN时,没有保存上一次的抄写状态的Bug。

sat23 3 years ago
parent
commit
0740ab2493
1 changed files with 4 additions and 3 deletions
  1. 4 3
      Views/OperationPanel.cs

+ 4 - 3
Views/OperationPanel.cs

@@ -4711,16 +4711,17 @@ namespace MOKA_Factory_Tools
                 {
                     CommonMethod.WriteProfileString("MOKAFactoryTools", "LastGSN", SN);
                     // 重置连续测试中累计失败的次数为0;
-                    CommonMethod.WriteProfileString("MOKAFactoryTools", "GFailCount", "0");
+                    CommonMethod.WriteProfileString("MOKAFactoryTools", "GFailCount", TestResult == 0 ? "1" : "0");
                     // 更新抄写状态;
-                    CommonMethod.WriteProfileString("MOKAFactoryTools", "LastGResult", "0");
+                    CommonMethod.WriteProfileString("MOKAFactoryTools", "LastGResult", TestResult != 0 ? "1" : "0");
                 }
 
                 if (strLastResult.ToString().Equals("0") && (TestResult == 1) && (nOrderType == 0) )
                 {
                     // 上次抄写是失败,这次是成功的,试产NTF要再次要求抄写一次才能上报AMTest.
-                    ErrMsg = "试产订单:请再测试一次\r\n上一次测试为FAIL,请再测试确认结果!";
+                    ErrMsg = "试产订单:请再测试一次\r\n上一次测试为FAIL,需要连续2次PASS,请再测试确认结果!";
                     Log.WriteErrorLog(ErrMsg);
+                    ShowVerifyDelegate(ErrMsg);
                     // 仍设置为失败;
                     TestResult = 2;
                 }