using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DataLinkMesWork;
namespace MesServerFunctions
{
public class Db
{
///
/// 合力_转线_A92判断工件状态
///
///
///
///
///
///
///
///
public static bool OPA92_EngineGetOverCheckWorkType(string EngineID, out int MatchResult, out string MatchResultStr)
{
DataTable dt = new DataTable();
MatchResult = 2;// 默认是报警 程序出错
MatchResultStr = "默认是报警 程序出错";// 默认是报警 程序出错
string produceName = "合力_转线_A92判断工件状态";
SqlParameter[] thisParms = new SqlParameter[1];
thisParms[0] = new System.Data.SqlClient.SqlParameter("@轮毂总成号", EngineID);
if (DataAccess.ExecuteStoredProcedure(produceName, ref thisParms, out dt))
{
if (dt.Rows.Count > 0)
{
MatchResult = Convert.ToInt32(dt.Rows[0]["result"]);
MatchResultStr = dt.Rows[0]["msg"].ToString();
return true;
}
}
return false;
}
///
/// 合力_转线_删除记录数据 同时保存 轮毂 桥壳 关系
///
///
public static void OPA92_DeleteLineData(string EngineID_QiaoKe)
{
DataTable dt = new DataTable();
string produceName = "合力_转线_删除记录数据";
SqlParameter[] thisParms = new SqlParameter[1];
thisParms[0] = new System.Data.SqlClient.SqlParameter("@桥壳总成号", EngineID_QiaoKe);
DataAccess.ExecuteStoredProcedure(produceName, ref thisParms, out dt);
}
}
}