You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
997 B
36 lines
997 B
6 months ago
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
using System.Text;
|
||
|
using System.Threading.Tasks;
|
||
|
using System.Data;
|
||
|
using System.Data.SqlClient;
|
||
|
using System.Reflection;
|
||
|
using MESClassLibrary.BLL.Log;
|
||
|
using MESClassLibrary.Model;
|
||
|
namespace MESClassLibrary.DAL.BasicInfo
|
||
|
{
|
||
|
public class DefectDAL
|
||
|
{
|
||
|
public DataTable SearchInfoAll(string LineID)
|
||
|
{
|
||
|
try
|
||
|
{
|
||
|
string sql = @"SELECT * from tb_Defect where LineID=@LineID";
|
||
|
|
||
|
SqlParameter[] param = new SqlParameter[1];
|
||
|
param[0] = new SqlParameter("@LineID", SqlDbType.VarChar);
|
||
|
param[0].Value = LineID;
|
||
|
|
||
|
return SqlHelper.ExecuteDataset(SqlHelper.GetConnSting(), CommandType.Text, sql, param).Tables[0];
|
||
|
|
||
|
}
|
||
|
catch (Exception ex)
|
||
|
{
|
||
|
LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod());
|
||
|
return null;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|