Parcourir la source

TCL FireTV上报NTF时,需要使用MES来源的DSN.

jianfeng1.wang il y a 2 ans
Parent
commit
3ee615d57d
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      FactoryTool_CShare/Views/OperationPanel.cs

+ 4 - 4
FactoryTool_CShare/Views/OperationPanel.cs

@@ -5330,6 +5330,10 @@ namespace MOKA_Factory_Tools
                     TestResult = 2;
                 }
 
+                // 如果是TCL FireTV之类,上传到kayla前需要将原IDM的dsn置为MES的dsn。
+                if (FunctionSettingNow.UserDSNFromSmes)
+                    keyInfo.DSN.data = GetSmesDSN;
+
                 if (!ntfBLL.SetDataBuringResult(FunctionSettingNow.Line, FunctionSettingNow.Station, SN, orderNow, keyInfo.DSN, TestResult == 0 ? false : true, strLastSN, nOrderType, TestResult == 0 ? ErrMsg : ""))
                 {
                     //ntf失败,也需要提示;
@@ -5349,10 +5353,6 @@ namespace MOKA_Factory_Tools
 
                 if (TestResult != 2)
                 { // 上报抄写结果到MES系统中;
-                    // 如果是TCL FireTV之类,上传到kayla前需要将原IDM的dsn置为MES的dsn。
-                    if (FunctionSettingNow.UserDSNFromSmes)
-                        keyInfo.DSN.data = GetSmesDSN;
-
                     string strOutMsg;
                     string returnObject;
                     if (!GMethod.ReportDataBurningResultToMES(SN, keyInfo.DSN, (TestResult != 0) ? "Pass" : "Fail", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"), errorDBNow, out strOutMsg, out returnObject))