using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using System.Data.SqlClient; using System.Reflection; using MESClassLibrary.BLL.Log; namespace MESClassLibrary.DAL.BasicInfo { public class ModelInfoDAL { public DataTable SearchInfo(string ModelNo) { try { string sql = @"select * from tb_ModelInfo where ModelNo=@ModelNo"; SqlParameter[] param = new SqlParameter[1]; param[0] = new SqlParameter("@ModelNo", SqlDbType.VarChar); param[0].Value = ModelNo; return SqlHelper.ExecuteDataset(SqlHelper.GetConnSting(), CommandType.Text, sql, param).Tables[0]; } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return null; } } } }