Browse Source

接口修改

shim 8 years ago
parent
commit
8577868f5e
1 changed files with 6 additions and 2 deletions
  1. 6 2
      UAS_MesInterface/LogicHandler.cs

+ 6 - 2
UAS_MesInterface/LogicHandler.cs

@@ -138,7 +138,9 @@ namespace UAS_MesInterface
             oCode2 = "";
             oCdoe3 = "";
             oErrorMessage = "";
-            string[] param = new string[] { iSnCode, "", oMac, oBT, oCode1, oCode2, oCdoe3, oErrorMessage };
+            string omakeCode = "";
+            GetRcardMOInfo(iSnCode,out omakeCode,out oErrorMessage);
+            string[] param = new string[] { iSnCode, omakeCode, oMac, oBT, oCode1, oCode2, oCdoe3, oErrorMessage };
             dh.CallProcedure("CS_GETADDRESSBYMAKECODE", ref param);
             oMac = param[2];
             oBT = param[3];
@@ -401,7 +403,9 @@ namespace UAS_MesInterface
         /// <returns></returns>
         public bool SetMobileData(string iSN, string iSourceCode, string iMPKind, string iResult, string iErrCode, out string oErrorMessage)
         {
-            return SetStepFinish("", iSourceCode, iSN, iMPKind, iResult, "", iErrCode, out oErrorMessage);
+            string omakecode = "";
+            GetRcardMOInfo(iSN,out omakecode,out oErrorMessage);
+            return SetStepFinish(omakecode, iSourceCode, iSN, iMPKind, iResult, "", iErrCode, out oErrorMessage);
         }
 
         private bool CS_SetFinish(string iMakeCode, string iSourceCode, string iSN, string iUserCode, string iResult, out string oErrorMessage)