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.
38 lines
1.0 KiB
38 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.Report;
|
||
|
|
||
|
namespace Warehouse.WebApi
|
||
|
{
|
||
|
public class InventoryJYController : ApiController
|
||
|
{
|
||
|
InventoryJYDal DT = new InventoryJYDal();
|
||
|
[Route("api/InventoryJYReport/InventoryJYReports")]
|
||
|
[HttpPost]
|
||
|
public IHttpActionResult QueryInfo(dynamic para)
|
||
|
{
|
||
|
string locationname = para.locationname;
|
||
|
string name = para.name;
|
||
|
var res = DT.InventoryJY( locationname,name);
|
||
|
return Json(res);
|
||
|
}
|
||
|
|
||
|
//InventoryJYDal DT = new InventoryJYDal();
|
||
|
[Route("api/InventoryJYReport/InventoryDetailed")]
|
||
|
[HttpPost]
|
||
|
public IHttpActionResult Detailed(dynamic para)
|
||
|
{
|
||
|
string locationname = para.locationname;
|
||
|
string name = para.name;
|
||
|
var res = DT.InventoryDetailedJY(locationname, name);
|
||
|
return Json(res);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
}
|