chore: 初始化合力驱动桥MES采集程序
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using DataLinkMesWork;
|
||||
using System.Data.OleDb;
|
||||
|
||||
//using SystemFramework;
|
||||
|
||||
namespace bizFacade
|
||||
{
|
||||
public partial class BaseDataSystemMES
|
||||
{
|
||||
///// <summary>
|
||||
///// MES_装配数据_发动机号_追踪代码
|
||||
///// 追踪代码 SqlServer和Access
|
||||
///// </summary>
|
||||
///// <param name="traceCode"></param>
|
||||
///// <param name="opName"></param>
|
||||
///// <param name="dt"></param>
|
||||
///// <returns></returns>
|
||||
//public static bool TraceTable_Select_SqlServerAndAccess(string traceCode, string opName, out DataTable dt)
|
||||
//{
|
||||
// string sql;
|
||||
// sql = "SELECT top 1 * FROM MES_装配数据_发动机号_追踪代码 "
|
||||
// + " WHERE 追踪代码 = '" + traceCode + "' and 工位号='" + opName + "' order by 操作时间 desc ";
|
||||
// if (!SQLCommon.SqlServerConnectionStatus)
|
||||
// {
|
||||
// return DataAccess.ExecuteDataTable_OleDb_Access(sql, out dt);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// return DataAccess.ExecuteDataTable(sql, out dt);
|
||||
// }
|
||||
//}
|
||||
/// <summary>
|
||||
/// MES_装配数据_发动机号_追踪代码
|
||||
/// 追踪代码 SqlServer和Access
|
||||
/// </summary>
|
||||
/// <param name="traceCode"></param>
|
||||
/// <param name="dt"></param>
|
||||
/// <returns></returns>
|
||||
public static bool TraceTable_Select_SqlServerAndAccess(string traceCode, out DataTable dt)
|
||||
{
|
||||
string sql;
|
||||
sql = "SELECT top 1 * FROM MES_装配数据_发动机号_追踪代码 "
|
||||
+ " WHERE 追踪代码 = '" + traceCode + "' order by 操作时间 desc ";
|
||||
//if (!SQLCommon.SqlServerConnectionStatus)
|
||||
//{
|
||||
// return DataAccess.ExecuteDataTable_OleDb_Access(sql, out dt);
|
||||
//}
|
||||
//else
|
||||
{
|
||||
return DataAccess.ExecuteDataTable(sql, out dt);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user