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 StationClassYieldDal { public List StationClassYield(string workshop, string station, string ytd,string time) { using (var context = new mesModel()) { ReportDal report = new ReportDal(); string sql = report.StationClassYieldSql(workshop,station,ytd,time); var res = context.DynamicListFromSql(sql, null); return res.ToList(); } } public List StationTotalCapacity(string workshop, string station, string ytd) { using (var context = new mesModel()) { ReportDal report = new ReportDal(); string sql = report.StationTotalCapacitySql(workshop, station, ytd); var res = context.DynamicListFromSql(sql, null); return res.ToList(); } } } }