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.
49 lines
1.4 KiB
49 lines
1.4 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.QCReport
|
|
{
|
|
public class YongzhenJinkeController : ApiController
|
|
{
|
|
|
|
YongzhenJinkeDal DT = new YongzhenJinkeDal();
|
|
[Route("api/YongzhenJinke/Search")]
|
|
[HttpPost]
|
|
public IHttpActionResult Search(dynamic para)
|
|
{
|
|
string bt = para.bt;
|
|
string et = para.et;
|
|
string PalletLots = para.palletLot;
|
|
//string palletno_old = pallets;
|
|
string PalletLot = string.Empty;
|
|
if (PalletLots == "")
|
|
{
|
|
PalletLot = "";
|
|
}
|
|
else
|
|
{
|
|
string trim1 = Regex.Replace(PalletLots, @"\s", " ");
|
|
PalletLot = "'" + trim1.Replace(" ", "','") + "'";
|
|
}
|
|
var res = DT.Search(bt,et,PalletLot);
|
|
return Json(res);
|
|
}
|
|
|
|
[Route("api/YongzhenJinke/GetFourBoard")]
|
|
[HttpPost]
|
|
public IHttpActionResult GetFourBoard(dynamic para)
|
|
{
|
|
string type = para.type;
|
|
string workshop = para.workshop;
|
|
|
|
var res = DT.GetFourBoard(type, workshop);
|
|
return Json(res);
|
|
}
|
|
}
|
|
}
|