Browse Source

MES接口修改

Hcsy 7 years ago
parent
commit
92bbb82c0f
2 changed files with 8 additions and 3 deletions
  1. 1 0
      .gitignore
  2. 7 3
      MES接口/LogicHandler.cs

+ 1 - 0
.gitignore

@@ -213,3 +213,4 @@ ModelManifest.xml
 *.rar
 /MES接口/MES接口.csproj
 /UAS-出货标签管理.zip
+/UAS-MES/Tool/MES_Interface.dll

+ 7 - 3
MES接口/LogicHandler.cs

@@ -25,12 +25,16 @@ namespace MES_Interface
         /// <param name="iSourceCode"></param>
         /// <param name="oErrMessage"></param>
         /// <returns></returns>
-        public bool CheckCurrentStep(string iSnCode, string iMakeCode, string iSourceCode, string iUserCode, out string oErrMessage)
+        public bool CheckCurrentStep(string iSnCode, string iMakeCode, string iSourceCode, string iUserCode,out string oMSID,out string oMacode, out string oErrMessage)
         {
             oErrMessage = "";
-            string[] param = new string[] { iSnCode, iMakeCode, iSourceCode, iUserCode, oErrMessage };
+            oMSID = "";
+            oMacode = "";
+            string[] param = new string[] { iMakeCode, iSourceCode, iSnCode, iUserCode, oMSID,oMacode,oErrMessage };
             dh.CallProcedure("CS_CHECKSTEPSNANDMACODE", ref param);
-            oErrMessage = param[4];
+            oMSID = param[4];
+            oMacode = param[5];
+            oErrMessage = param[6];
             if (oErrMessage == "" || oErrMessage == null || oErrMessage == "null")
                 return true;
             else