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.
37 lines
1.1 KiB
37 lines
1.1 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using Warehouse.Models.mesModel;
|
|
using Warehouse.Models.mesMysqlModel;
|
|
using JHReport.DAL;
|
|
|
|
namespace Warehouse.DAL.Report
|
|
{
|
|
public class InventoryJYDal
|
|
{
|
|
public List<dynamic> InventoryJY(string locationname,string name)
|
|
{
|
|
using (var context = new mesModel())
|
|
{
|
|
ReportDal report = new ReportDal();
|
|
string sql =report.InventoryJYSql(locationname,name);
|
|
var res = context.DynamicListFromSql(sql, null);
|
|
return res.ToList();
|
|
}
|
|
}
|
|
|
|
//详细
|
|
public List<dynamic> InventoryDetailedJY(string locationname, string name)
|
|
{
|
|
using (var context = new mesModel())
|
|
{
|
|
ReportDal report = new ReportDal();
|
|
string sql = report.InventoryDetailedbJYSql(locationname, name);
|
|
var res = context.DynamicListFromSql(sql, null);
|
|
return res.ToList();
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|