using MESClassLibrary.BLL.Log; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Reflection; using System.Text; using System.Web; namespace MESClassLibrary.DAL.PaintDown { public class PaintDownDal { public DataTable SearchInfoByTime(string time1,string time2) { DataTable res = null; try { string sql = @" SELECT [TimeStamp] ,[Ordernumber] ,[Skid_No] ,[Setvalue_BC_Color_No] ,[Setvalue_CC_Color_No] ,Setvalue_PR_Color_No ,[Side_1_BC01] ,[Side_1_BC02] ,[Side_1_BC03] ,[Side_1_BC04] ,[Side_1_BC05] ,[Side_1_BC06] ,[Side_1_BC07] ,[Side_1_BC08] ,[Side_1_BC09] ,[Side_1_BC10] ,[Side_1_BC11] ,[Side_1_BC12] ,[Side_2_BC01] ,[Side_2_BC02] ,[Side_2_BC03] ,[Side_2_BC04] ,[Side_2_BC05] ,[Side_2_BC06] ,[Side_2_BC07] ,[Side_2_BC08] ,[Side_2_BC09] ,[Side_2_BC10] ,[Side_2_BC11] ,[Side_2_BC12] FROM [PRODUCTION_DATA].[dbo].[Paintline_Loadingdata] WHERE TimeStamp BETWEEN '"+ time1 +@"' AND '"+ time2 +@"' ORDER BY TimeStamp"; res= SqlHelper.ExecuteDataset(SqlHelper.GetConnSting1(), CommandType.Text, sql, null).Tables[0]; } catch (Exception ex) { LogErrBLL.AddInfo(ex.ToString(), MethodBase.GetCurrentMethod()); } return res; } } }