using JHReport.DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Warehouse.Models.mesModel;
using Warehouse.Models.mesMysqlModel;

namespace Warehouse.DAL.Report
{
    public class FinalTestRoomDataDal
    {
        public List<dynamic> FinalTestRoomData(string bt, string et, string workshop, string workorder)
        {
            using (var context = new mesModel())
            {
                ReportDal report = new ReportDal();
                string sql = report.FinalTestRoomDataSql(bt, et, workshop, workorder);
                var res = context.DynamicListFromSql(sql, null);
                return res.ToList();
            }
        }
    }
}