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(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); } } }