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 ModelProductDAL { public DataTable SearchInfo(string ModelID, string ProuctID) { try { string sql = @"select * from tb_Model_Product where ModelID=@ModelID and ProuctID=@ProuctID"; SqlParameter[] param = new SqlParameter[2]; param[0] = new SqlParameter("@ModelID", SqlDbType.VarChar); param[0].Value = ModelID; param[1] = new SqlParameter("@ProuctID", SqlDbType.VarChar); param[1].Value = ProuctID; return SqlHelper.ExecuteDataset(SqlHelper.GetConnSting(), CommandType.Text, sql, param).Tables[0]; } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); return null; } } } }