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 YongzhenJinkeDal { public List Search(string bt, string et,string PalletLot) { using (var context = new mesModel()) { ReportDal report = new ReportDal(); string sql = report.YongzhenJinkeSql(bt, et, PalletLot); var res = context.DynamicListFromSql(sql, null); return res.ToList(); } } public List GetFourBoard(string type,string workshop) { using (var context = new mesModel()) { ReportDal report = new ReportDal(); string sql = @"exec wh.[dbo].[sp_get_wk2shp_prd_data] "; sql += string.IsNullOrEmpty(type) ? " @p_execItem=N''" : " @p_execItem =N'" + type + "'"; sql += string.IsNullOrEmpty(workshop) ? " ,@p_workshop=N''" : " ,@p_workshop=N'" + workshop + "'"; var res = context.DynamicListFromSql(sql, null); return res.ToList(); } } //public List Search(string bt, string et, string PalletLot) //{ // using (var context = new mesModel()) // { // ReportDal report = new ReportDal(); // string sql = report.YongzhenJinkeSql(bt, et, PalletLot); // var res = context.DynamicListFromSql(sql, null); // return res.ToList(); // } //} } }