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.
43 lines
1.5 KiB
43 lines
1.5 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Net.Http;
|
|
using System.Web.Http;
|
|
using Warehouse.DAL.WOFinsihStatus;
|
|
|
|
namespace Warehouse.WebApi
|
|
{
|
|
//工单达成情况
|
|
[RoutePrefix("api/WOFinishStatus")]
|
|
public class WOFinsihStatusController : ApiController
|
|
{
|
|
WOFinsihStatus scp = new WOFinsihStatus();
|
|
[Route("QueryInfo")]
|
|
[HttpPost]
|
|
public IHttpActionResult QueryInfo(dynamic para)
|
|
{
|
|
var res = scp.QueryInfo(Convert.ToString(para.wo)
|
|
, Convert.ToString(para.sales)
|
|
, Convert.ToString(para.customer)
|
|
, Convert.ToString(para.bt)
|
|
, Convert.ToString(para.et));
|
|
if (res.Count > 0)
|
|
{
|
|
foreach (var item in res)
|
|
{
|
|
string a = "s"; a.Split('|');
|
|
string[] grade = item.gradeqty.Split('|');
|
|
item.A = grade[0];
|
|
item.B = grade[1];
|
|
item.C = grade[2];
|
|
string[] power = item.testpower.Split('|');
|
|
item.max = power[0];
|
|
item.min = power[1];
|
|
item.avg = power[2];
|
|
}
|
|
}
|
|
return Json(res);
|
|
}
|
|
}
|
|
}
|