旧版报表、仓库
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.

34 lines
1.0 KiB

2 years ago
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Warehouse.DAL.ShipmentsReportDal;
using Warehouse.DAL.Report;
using System.Text.RegularExpressions;
using Warehouse.WebApi.Model;
namespace Warehouse.WebApi
{
public class ShipmentsReportNewController : BaseController
{
ShipmentsReportDal DT = new ShipmentsReportDal();
[Route("api/ShipmentsReportNew/ShipmentsReportsNew")]
[HttpPost]
public IHttpActionResult QueryInfo(ShipmentReportModel model)
{
string trim = String.Empty;
if (model.Containerno != null)
{
trim = Regex.Replace(model.Containerno, @"\s", " ");
}
string containerno = "'"+ trim.Replace(" ","','")+"'";
var res = DT.ShipmentsReport(model.TestTimeBegin,model.TestTimeEnd, model.WorkShop, model.Production, model.Power,containerno);
return Json(res);
}
}
}