using JHReport.DAL; using System; using System.Collections.Generic; using System.Linq; using System.Web; using Warehouse.Models.mesModel; namespace Warehouse.DAL.Report { public class CTMReportDal { public List CTMQueryData(string lot, string wo, string bt, string et, string pallet_nbr) { using (var context = new mesModel()) { ReportDal report = new ReportDal(); // string sql = report.BatchRateSql(lot, wo, bt); string sql = report.CTMReportSql(lot, wo, bt, et, pallet_nbr); var res = context.DynamicListFromSql(sql, null); return res.ToList(); } } } }