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.
57 lines
1.8 KiB
57 lines
1.8 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Net.Http;
|
|
using System.Web.Http;
|
|
using Warehouse.DAL.Report;
|
|
|
|
namespace Warehouse.WebApi
|
|
{
|
|
public class ComprehensiveYieldController : ApiController
|
|
{
|
|
ComprehensiveYieldDal DT = new ComprehensiveYieldDal();
|
|
[Route("api/ComprehensiveYield/ComprehensiveYield")]
|
|
[HttpPost]
|
|
public IHttpActionResult ComprehensiveYield(dynamic para)
|
|
{
|
|
string area_code = para.workshop;
|
|
//string shift = para.shift;
|
|
var res = DT.ComprehensiveYield(area_code);
|
|
return Json(res);
|
|
}
|
|
|
|
//成品率
|
|
[Route("api/ComprehensiveYieldFinalYield/ComprehensiveYieldFinalYield")]
|
|
[HttpPost]
|
|
public IHttpActionResult ComprehensiveYieldFinalYield(dynamic para)
|
|
{
|
|
string area_code = para.workshop;
|
|
//string shift = para.shift;
|
|
var res = DT.ComprehensiveYieldFinalYield(area_code);
|
|
return Json(res);
|
|
}
|
|
|
|
//叠返
|
|
[Route("api/ComprehensiveYieldFoldBack/ComprehensiveYieldFoldBack")]
|
|
[HttpPost]
|
|
public IHttpActionResult StorageComprehensiveYieldFoldBackReport(dynamic para)
|
|
{
|
|
string area_code = para.workshop;
|
|
//string shift = para.shift;
|
|
var res = DT.ComprehensiveYieldFoldBack(area_code);
|
|
return Json(res);
|
|
}
|
|
|
|
//串返
|
|
[Route("api/ComprehensiveYieldWeldBack/ComprehensiveYieldWeldBack")]
|
|
[HttpPost]
|
|
public IHttpActionResult ComprehensiveYieldWeldBack(dynamic para)
|
|
{
|
|
string area_code = para.workshop;
|
|
//string shift = para.shift;
|
|
var res = DT.ComprehensiveYieldWeldBack(area_code);
|
|
return Json(res);
|
|
}
|
|
}
|
|
}
|