修改更新接口
This commit is contained in:
@@ -16,17 +16,17 @@ namespace NX.ERP.WebAPi.Controllers
|
||||
public class CustomerController : ApiController
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取客户信息
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="Pubufts"></param>
|
||||
/// <returns></returns>
|
||||
// GET api/values
|
||||
[Obsolete]
|
||||
|
||||
[Route("api/Customer/List")]
|
||||
[HttpGet]
|
||||
public IEnumerable<Model.Customer> List()
|
||||
public IEnumerable<Model.Customer> List(long Pubufts = 0)
|
||||
{
|
||||
var customerDAL = new CustomerDAL();
|
||||
return customerDAL.GetList();
|
||||
return customerDAL.GetList(Pubufts);
|
||||
}
|
||||
/// <summary>
|
||||
/// 查询
|
||||
@@ -35,7 +35,7 @@ namespace NX.ERP.WebAPi.Controllers
|
||||
/// <returns></returns>
|
||||
[Route("api/Customer/Query")]
|
||||
[HttpPost]
|
||||
|
||||
|
||||
public IEnumerable<Model.Customer> Query(NX.ERP.Model.Request.Customer Param)
|
||||
{
|
||||
var customerDAL = new CustomerDAL();
|
||||
|
||||
@@ -10,13 +10,13 @@ namespace NX.ERP.WebAPi.Controllers
|
||||
{
|
||||
public class MaterialController : ApiController
|
||||
{
|
||||
[Obsolete]
|
||||
|
||||
[Route("api/Material/List")]
|
||||
[HttpGet]
|
||||
public IEnumerable<Material> List()
|
||||
public IEnumerable<Material> List(long Pubufts = 0)
|
||||
{
|
||||
var MaterialDAL = new MaterialDAL();
|
||||
return MaterialDAL.GetList();
|
||||
return MaterialDAL.GetList(Pubufts);
|
||||
|
||||
}
|
||||
[Route("api/Material/Query")]
|
||||
|
||||
@@ -10,13 +10,13 @@ namespace NX.ERP.WebAPi.Controllers
|
||||
{
|
||||
public class MaterialTypeController:ApiController
|
||||
{
|
||||
[Obsolete]
|
||||
|
||||
[Route("api/MaterialType/List")]
|
||||
[HttpGet]
|
||||
public IEnumerable<MaterialType> List()
|
||||
public IEnumerable<MaterialType> List(long Pubufts = 0)
|
||||
{
|
||||
var MaterialType = new MaterialTypeDAL();
|
||||
return MaterialType.GetList();
|
||||
return MaterialType.GetList(Pubufts);
|
||||
|
||||
}
|
||||
[Route("api/MaterialType/Query")]
|
||||
|
||||
@@ -10,13 +10,12 @@ namespace NX.ERP.WebAPi.Controllers
|
||||
{
|
||||
public class SupplierController : ApiController
|
||||
{
|
||||
[Obsolete]
|
||||
[Route("api/Supplier/List")]
|
||||
[HttpGet]
|
||||
public IEnumerable<Supplier> List()
|
||||
public IEnumerable<Supplier> List(long Pubufts = 0)
|
||||
{
|
||||
var supplierDAL = new SupplierDAL();
|
||||
return supplierDAL.GetList();
|
||||
return supplierDAL.GetList(Pubufts);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -9,13 +9,13 @@ namespace NX.ERP.WebAPi.Controllers
|
||||
{
|
||||
public class UnitController : ApiController
|
||||
{
|
||||
[Obsolete]
|
||||
|
||||
[Route("api/Unit/List")]
|
||||
[HttpGet]
|
||||
public IEnumerable<Model.Unit> List()
|
||||
public IEnumerable<Model.Unit> List(long Pubufts = 0)
|
||||
{
|
||||
var supplierDAL = new UnitDAL();
|
||||
return supplierDAL.GetList();
|
||||
return supplierDAL.GetList(Pubufts);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -9,13 +9,13 @@ namespace NX.ERP.WebAPi.Controllers
|
||||
{
|
||||
public class WarehouseController : ApiController
|
||||
{
|
||||
[Obsolete]
|
||||
|
||||
[Route("api/Warehouse/List")]
|
||||
[HttpGet]
|
||||
public IEnumerable<Model.Warehouse> List()
|
||||
public IEnumerable<Model.Warehouse> List(long Pubufts = 0)
|
||||
{
|
||||
var warehouseDAL = new WarehouseDAL();
|
||||
return warehouseDAL.GetList();
|
||||
return warehouseDAL.GetList(Pubufts);
|
||||
}
|
||||
[Route("api/Warehouse/Query")]
|
||||
[HttpPost]
|
||||
|
||||
@@ -8,13 +8,13 @@ namespace NX.ERP.WebAPi.Controllers.MOM
|
||||
{
|
||||
public class BomController : ApiController
|
||||
{
|
||||
[Obsolete]
|
||||
|
||||
[Route("api/Bom/List")]
|
||||
[HttpGet]
|
||||
|
||||
public IEnumerable<Model.Response.MOM.Bom> GetList()
|
||||
public IEnumerable<Model.Response.MOM.Bom> GetList(long Pubufts = 0)
|
||||
{
|
||||
return new NX.ERP.U8.Mom.BomDAL().GetList();
|
||||
return new NX.ERP.U8.Mom.BomDAL().GetList(Pubufts);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -9,13 +9,13 @@ namespace NX.ERP.WebAPi.Controllers.MOM
|
||||
public class MomOrderController : ApiController
|
||||
{
|
||||
|
||||
[Obsolete]
|
||||
|
||||
[Route("api/MomOrder/List")]
|
||||
[HttpGet]
|
||||
public IEnumerable<Model.MOM.MomOrder> List()
|
||||
public IEnumerable<Model.MOM.MomOrder> List(long Pubufts = 0)
|
||||
{
|
||||
var customerDAL = new NX.ERP.U8.Mom.MomOrderDAL();
|
||||
return customerDAL.GetList();
|
||||
return customerDAL.GetList(Pubufts);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -9,23 +9,21 @@ namespace NX.ERP.WebAPi.Controllers
|
||||
{
|
||||
public class ArrivalController : ApiController
|
||||
{
|
||||
//[Obsolete]
|
||||
//[Route("api/Arrival/List")]
|
||||
//// GET api/values
|
||||
//[HttpGet]
|
||||
//public IEnumerable<Model.Purchase.Arrival> List()
|
||||
//{
|
||||
// var customerDAL = new ArrivalDAL();
|
||||
// return customerDAL.GetList();
|
||||
//}
|
||||
|
||||
[Route("api/Arrival/List")]
|
||||
[HttpGet]
|
||||
public IEnumerable<Model.Purchase.Arrival> List(long Pubufts = 0)
|
||||
{
|
||||
var Arrival = new ArrivalDAL();
|
||||
return Arrival.GetList(Pubufts);
|
||||
}
|
||||
|
||||
[Route("api/Arrival/Query")]
|
||||
// GET api/values
|
||||
[Route("api/Arrival/Query")]
|
||||
[HttpPost]
|
||||
public IEnumerable<Model.Purchase.Arrival> List([FromBody] NX.ERP.Model.Request.Arrival arrival)
|
||||
{
|
||||
var customerDAL = new ArrivalDAL();
|
||||
return customerDAL.Query(arrival);
|
||||
var Arrival = new ArrivalDAL();
|
||||
return Arrival.Query(arrival);
|
||||
}
|
||||
|
||||
|
||||
@@ -34,16 +32,16 @@ namespace NX.ERP.WebAPi.Controllers
|
||||
[HttpGet]
|
||||
public Model.Purchase.Arrival Model(string Code)
|
||||
{
|
||||
var customerDAL = new ArrivalDAL();
|
||||
return customerDAL.GetModel(Code);
|
||||
var Arrival = new ArrivalDAL();
|
||||
return Arrival.GetModel(Code);
|
||||
}
|
||||
|
||||
[Obsolete]
|
||||
[Route("api/Arrival/list/{id}")]
|
||||
[HttpGet]
|
||||
public IEnumerable<Model.Purchase.Arrival> GetListByLastID(int id)
|
||||
{
|
||||
var customerDAL = new ArrivalDAL();
|
||||
return customerDAL.GetListByLastId(id);
|
||||
var Arrival = new ArrivalDAL();
|
||||
return Arrival.GetListByLastId(id);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user