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.
40 lines
1.1 KiB
40 lines
1.1 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Net.Http;
|
|
using System.Text.RegularExpressions;
|
|
using System.Web.Http;
|
|
using Warehouse.DAL.Report;
|
|
|
|
namespace Warehouse.WebApi
|
|
{
|
|
[RoutePrefix("api/MaterialLot")]
|
|
public class MaterialLotController : ApiController
|
|
{
|
|
MaterialLot mat = new MaterialLot();
|
|
//真实数据
|
|
[Route("QueryData")]
|
|
[HttpPost]
|
|
public IHttpActionResult QueryData(dynamic para)
|
|
{
|
|
// string bt = para.benging;
|
|
string orignbr = para.orignbr;
|
|
string lotnbr = para.lotnbr;
|
|
string workorder = para.workorder;
|
|
string wo = string.Empty;
|
|
if (workorder == "")
|
|
{
|
|
wo = "";
|
|
}
|
|
else
|
|
{
|
|
string trim1 = Regex.Replace(workorder, @"\s", " ");
|
|
wo = "'" + trim1.Replace(" ", "','") + "'";
|
|
}
|
|
var res = mat.MaterialLotData(orignbr, lotnbr, wo);
|
|
return Json<dynamic>(res);
|
|
//return Json<dynamic>(new { AA = "aa", BB = "cc" });
|
|
}
|
|
}
|
|
}
|