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 MaterialTraceabilityDal { public List MaterialTraceability(string lot_nbr, string orig_batch_nbr, string serial_nbr, string bt, string et, string wks_desc, string area_code) { using (var context = new mesModel()) { ReportDal report = new ReportDal(); string sql = report.MaterialTraceabilitySql(lot_nbr, orig_batch_nbr, serial_nbr, bt, et, wks_desc, area_code); var res = context.DynamicListFromSql(sql, null); return res.ToList(); } } } }