|
|
@@ -25,7 +25,6 @@ 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 Add(int a, int b);
|
|
|
}
|
|
|
|
|
|
[Guid("41EAB546-6EF4-464A-895A-9C34013A5D8C")]
|
|
|
@@ -47,7 +46,7 @@ namespace BenQGuru.eMES.DLLService
|
|
|
|
|
|
public MESHelper()
|
|
|
{
|
|
|
-
|
|
|
+ connection = new OracleConnection(ConnectionStrings);
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
@@ -758,32 +757,6 @@ namespace BenQGuru.eMES.DLLService
|
|
|
return int.Parse(dt.Rows[0][0].ToString()) > 0;
|
|
|
}
|
|
|
|
|
|
- private string SQLTEST(string sql)
|
|
|
- {
|
|
|
- OracleCommand cmd = new OracleCommand();
|
|
|
- cmd.Connection = new OracleConnection(ConnectionStrings);
|
|
|
- cmd.Connection.Open();
|
|
|
- return "123123";
|
|
|
- //try
|
|
|
- //{
|
|
|
- // command = new OracleCommand(sql, connection);
|
|
|
- // Reconnect(command);
|
|
|
- // if (connection.State != ConnectionState.Open)
|
|
|
- // {
|
|
|
- // return "关闭状态";
|
|
|
- // }
|
|
|
- // else
|
|
|
- // {
|
|
|
- // return "1111";
|
|
|
- // }
|
|
|
- //}
|
|
|
- //catch (Exception)
|
|
|
- //{
|
|
|
- // return "Catch";
|
|
|
- //}
|
|
|
- //return connection.ServiceName + " " + connection.ServerVersion + " " + connection.State + " " + connection.InstanceName;
|
|
|
- }
|
|
|
-
|
|
|
/// <summary>
|
|
|
/// 直接执行SQL,同时传入SQL的类型
|
|
|
/// </summary>
|
|
|
@@ -985,10 +958,5 @@ namespace BenQGuru.eMES.DLLService
|
|
|
cmd.Connection.Open();
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- public string Add(int a, int b)
|
|
|
- {
|
|
|
- return SQLTEST("insert into AAAAA(table_name) values('1111')");
|
|
|
- }
|
|
|
}
|
|
|
}
|