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.
45 lines
1.4 KiB
45 lines
1.4 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Net.Http;
|
|
using System.Web.Http;
|
|
using Warehouse.DAL.YL;
|
|
|
|
namespace Warehouse.WebApi.YL
|
|
{
|
|
public class WIPStatisticsController : ApiController
|
|
{
|
|
|
|
WIPStatisticsDal DT = new WIPStatisticsDal();
|
|
|
|
[Route("api/WIPStatistics/StationNbrAndGoing")]
|
|
[HttpPost]
|
|
public IHttpActionResult QueryInfo(dynamic para)
|
|
{
|
|
string workorder = para.workorder;
|
|
string workshop = para.workshop;
|
|
//string wks_id = para.wks_id;
|
|
string behintime = para.behintime;
|
|
string endtime = para.endtime;
|
|
string saleorder = para.saleorder;
|
|
|
|
var res = DT.StationNbrAndGoing(behintime, endtime, workshop, workorder, saleorder);
|
|
return Json(res);
|
|
//return Json<dynamic>(new { AA = "aa", BB = "cc" });
|
|
}
|
|
[Route("api/WIPStatistics/Produinc")]
|
|
[HttpPost]
|
|
public IHttpActionResult Produinc(dynamic para)
|
|
{
|
|
string workorder = para.workorder;
|
|
string workshop = para.workshop;
|
|
string saleorder = para.saleorder;
|
|
string bt = para.bt;
|
|
string et = para.et;
|
|
string field = para.field;
|
|
var res = DT.Produinc(workshop, workorder, saleorder,bt, et, field);
|
|
return Json(res);
|
|
}
|
|
}
|
|
}
|