You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.6 KiB
49 lines
1.6 KiB
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<dynamic> 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<dynamic> 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<dynamic> 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();
|
|
// }
|
|
//}
|
|
}
|
|
}
|