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.
25 lines
728 B
25 lines
728 B
using JHReport.DAL;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Net.Http;
|
|
using System.Web.Http;
|
|
using Warehouse.Models.mesModel;
|
|
|
|
namespace Warehouse.DAL.Report
|
|
{
|
|
public class SuppliesConsumedDal : ApiController
|
|
{
|
|
public List<dynamic> SuppliesConsumed(string sale_order, string workorder, string workshop)
|
|
{
|
|
using (var context = new mesModel())
|
|
{
|
|
ReportDal report = new ReportDal();
|
|
string sql = report.SuppliesConsumedSql(sale_order, workorder, workshop);
|
|
var res = context.DynamicListFromSql(sql, null);
|
|
return res.ToList();
|
|
}
|
|
}
|
|
}
|
|
}
|