Browse Source

接口程序调整

章政 7 years ago
parent
commit
dc87478111
1 changed files with 1 additions and 8 deletions
  1. 1 8
      UAS_MesInterface/MESHelper.cs

+ 1 - 8
UAS_MesInterface/MESHelper.cs

@@ -25,12 +25,11 @@ namespace BenQGuru.eMES.DLLService
         bool SetMobileData(string iTSN, string iSN, string iSourceCode, string iMPKind, string iResult, string iErrCode, string flag, out string oErrorMessage);
         bool SetPcbaData(string iSN, string iResCode, string iOperator, string iResult, string iErrCode, out string oErrMessage);
         bool GoMo(string iMO, string iSN, string iResCode, out string oErrMessage);
-        string Test(string TEST);
     }
 
     [Guid("41EAB546-6EF4-464A-895A-9C34013A5D8C")]
     [ComSourceInterfaces(typeof(IMESHelper))]
-    [ClassInterface(ClassInterfaceType.AutoDispatch)]
+    [ClassInterface(ClassInterfaceType.None)]
     [ProgId("DllService.MESHelper")]
     public class MESHelper : IMESHelper
     {
@@ -496,7 +495,6 @@ namespace BenQGuru.eMES.DLLService
             oErrorMessage = "";
             if (iTSN == "") { oErrorMessage = "TSN不能为空"; return false; }
             if (iSN == "") { oErrorMessage = "SN不能为空"; return false; }
-            if (iSourceCode == "") { oErrorMessage = "岗位资源不能为空"; return false; }
             string[] param = new string[] { iTSN, iSN, iSourceCode, "", iResult, iErrCode, oErrorMessage };
             string[] ParamName = new string[] { "v_i_tsn", "v_i_sncode", "v_i_sourcecode", "v_i_usercode", "v_i_result", "v_i_errcode", "v_o_errmsg" };
             CallProcedure("CS_DLLSNCHANGE", ParamName, ref param);
@@ -1028,10 +1026,5 @@ namespace BenQGuru.eMES.DLLService
                 cmd.Connection.Open();
             }
         }
-
-        public string Test(string TEST)
-        {
-            return TEST;
-        }
     }
 }