using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Reflection; using System.Text; using MESClassLibrary.BLL.Log; namespace MESClassLibrary.DAL.TruckBox { public class RetrospectSearchDal { public DataTable SearchInfo(string barCode, string startTime, string endTime) { try { parma parms = new parma(); parms.barCode = barCode; parms.startTime = startTime; parms.endTime = endTime; return SqlHelper.ExecuteDataset(SqlHelper.GetConnSting(), CommandType.StoredProcedure, "proc_BarCodeSearch", SqlHelper.ModelToParameterList(parms).ToArray()).Tables[0]; } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(),MethodBase.GetCurrentMethod()); return null; } } public class parma { public string barCode { get; set; } public string startTime { get; set; } public string endTime { get; set; } } } }