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; } } } }