2021-01-05 11:11:28 +08:00
|
|
|
|
using NX.ERP.U8;
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Web;
|
|
|
|
|
|
using System.Web.Http;
|
|
|
|
|
|
|
|
|
|
|
|
namespace NX.ERP.WebAPi.Controllers
|
|
|
|
|
|
{
|
2021-01-19 10:19:10 +08:00
|
|
|
|
public class WarehouseController : ApiController
|
2021-01-05 11:11:28 +08:00
|
|
|
|
{
|
2021-06-04 11:22:42 +08:00
|
|
|
|
|
2021-01-19 10:19:10 +08:00
|
|
|
|
[Route("api/Warehouse/List")]
|
2021-01-05 11:11:28 +08:00
|
|
|
|
[HttpGet]
|
2021-06-04 11:22:42 +08:00
|
|
|
|
public IEnumerable<Model.Warehouse> List(long Pubufts = 0)
|
2021-01-05 11:11:28 +08:00
|
|
|
|
{
|
|
|
|
|
|
var warehouseDAL = new WarehouseDAL();
|
2021-06-04 11:22:42 +08:00
|
|
|
|
return warehouseDAL.GetList(Pubufts);
|
2021-01-05 11:11:28 +08:00
|
|
|
|
}
|
2021-01-19 10:19:10 +08:00
|
|
|
|
[Route("api/Warehouse/Query")]
|
|
|
|
|
|
[HttpPost]
|
|
|
|
|
|
public IEnumerable<Model.Warehouse> List([FromBody] NX.ERP.Model.Request.Warehouse Params)
|
|
|
|
|
|
{
|
|
|
|
|
|
var warehouseDAL = new WarehouseDAL();
|
|
|
|
|
|
return warehouseDAL.GetList(Params);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-05 11:11:28 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|