屏蔽某些API
This commit is contained in:
@@ -20,7 +20,7 @@ namespace NX.ERP.WebAPi.Controllers
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
// GET api/values
|
||||
|
||||
[Obsolete]
|
||||
[Route("api/Customer/List")]
|
||||
[HttpGet]
|
||||
public IEnumerable<Model.Customer> List()
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace NX.ERP.WebAPi.Controllers
|
||||
{
|
||||
public class MaterielController : ApiController
|
||||
{
|
||||
[Obsolete]
|
||||
[Route("api/Materiel/List")]
|
||||
[HttpGet]
|
||||
public IEnumerable<Materiel> List()
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace NX.ERP.WebAPi.Controllers
|
||||
{
|
||||
public class MaterielTypeController:ApiController
|
||||
{
|
||||
[Obsolete]
|
||||
[Route("api/MaterielType/List")]
|
||||
[HttpGet]
|
||||
public IEnumerable<MaterielType> List()
|
||||
|
||||
@@ -9,6 +9,7 @@ namespace NX.ERP.WebAPi.Controllers
|
||||
{
|
||||
public class PositionController : ApiController
|
||||
{
|
||||
[Obsolete]
|
||||
[Route("api/Position/List")]
|
||||
[HttpGet]
|
||||
public IEnumerable<Model.Bin> List()
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace NX.ERP.WebAPi.Controllers
|
||||
{
|
||||
public class SupplierController : ApiController
|
||||
{
|
||||
[Obsolete]
|
||||
[Route("api/Supplier/List")]
|
||||
[HttpGet]
|
||||
public IEnumerable<Supplier> List()
|
||||
|
||||
@@ -9,6 +9,7 @@ namespace NX.ERP.WebAPi.Controllers
|
||||
{
|
||||
public class UnitController : ApiController
|
||||
{
|
||||
[Obsolete]
|
||||
[Route("api/Unit/List")]
|
||||
[HttpGet]
|
||||
public IEnumerable<Model.Unit> List()
|
||||
|
||||
@@ -9,6 +9,7 @@ namespace NX.ERP.WebAPi.Controllers
|
||||
{
|
||||
public class WarehouseController : ApiController
|
||||
{
|
||||
[Obsolete]
|
||||
[Route("api/Warehouse/List")]
|
||||
[HttpGet]
|
||||
public IEnumerable<Model.Warehouse> List()
|
||||
|
||||
@@ -8,6 +8,7 @@ namespace NX.ERP.WebAPi.Controllers.MOM
|
||||
{
|
||||
public class MomOrderController : ApiController
|
||||
{
|
||||
[Obsolete]
|
||||
[Route("api/MomOrder/List")]
|
||||
[HttpGet]
|
||||
public IEnumerable<Model.MOM.MomOrder> List()
|
||||
@@ -16,6 +17,7 @@ namespace NX.ERP.WebAPi.Controllers.MOM
|
||||
return customerDAL.GetList();
|
||||
|
||||
}
|
||||
[Obsolete]
|
||||
[Route("api/MomOrder/list/{id}")]
|
||||
[HttpGet]
|
||||
public IEnumerable<Model.MOM.MomOrder> GetListByLastID(int id)
|
||||
@@ -23,7 +25,7 @@ namespace NX.ERP.WebAPi.Controllers.MOM
|
||||
var customerDAL = new NX.ERP.U8.Mom.MomOrderDAL();
|
||||
return customerDAL.GetListByLastID(id);
|
||||
}
|
||||
|
||||
[Obsolete]
|
||||
[Route("api/MomOrder/{Code}")]
|
||||
[HttpGet]
|
||||
public Model.MOM.MomOrder GetModel(string Code)
|
||||
|
||||
@@ -9,6 +9,7 @@ namespace NX.ERP.WebAPi.Controllers
|
||||
{
|
||||
public class ArrivalController : ApiController
|
||||
{
|
||||
[Obsolete]
|
||||
[Route("api/Arrival/List")]
|
||||
// GET api/values
|
||||
[HttpGet]
|
||||
@@ -18,6 +19,17 @@ namespace NX.ERP.WebAPi.Controllers
|
||||
return customerDAL.GetList();
|
||||
}
|
||||
|
||||
[Route("api/Arrival/Query")]
|
||||
// GET api/values
|
||||
[HttpPost]
|
||||
public IEnumerable<Model.Purchase.Arrival> List([FromBody] NX.ERP.Model.Request.Arrival arrival)
|
||||
{
|
||||
var customerDAL = new ArrivalDAL();
|
||||
return customerDAL.Query(arrival);
|
||||
}
|
||||
|
||||
|
||||
[Obsolete]
|
||||
[Route("api/Arrival/{Code}")]
|
||||
[HttpGet]
|
||||
public Model.Purchase.Arrival Model(string Code)
|
||||
@@ -25,7 +37,7 @@ namespace NX.ERP.WebAPi.Controllers
|
||||
var customerDAL = new ArrivalDAL();
|
||||
return customerDAL.GetModel(Code);
|
||||
}
|
||||
|
||||
[Obsolete]
|
||||
[Route("api/Arrival/list/{id}")]
|
||||
[HttpGet]
|
||||
public IEnumerable<Model.Purchase.Arrival> GetListByLastID(int id)
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace NX.ERP.WebAPi.Controllers.Sale
|
||||
{
|
||||
public class DispatchController : ApiController
|
||||
{
|
||||
[Obsolete]
|
||||
[Route("api/Dispatch/List")]
|
||||
// GET api/values
|
||||
[HttpGet]
|
||||
@@ -18,13 +19,14 @@ namespace NX.ERP.WebAPi.Controllers.Sale
|
||||
var customerDAL = new DispatchListDAL();
|
||||
return customerDAL.GetList();
|
||||
}
|
||||
|
||||
[Obsolete]
|
||||
[HttpGet]
|
||||
public Model.Sale.DispatchList Model(int id)
|
||||
{
|
||||
var customerDAL = new DispatchListDAL();
|
||||
return customerDAL.GetModel(id);
|
||||
}
|
||||
[Obsolete]
|
||||
[Route("api/Dispatch/{Code}")]
|
||||
[HttpGet]
|
||||
public Model.Sale.DispatchList ModelByCode(string Code)
|
||||
@@ -32,6 +34,7 @@ namespace NX.ERP.WebAPi.Controllers.Sale
|
||||
var customerDAL = new DispatchListDAL();
|
||||
return customerDAL.GetModel(Code);
|
||||
}
|
||||
[Obsolete]
|
||||
[Route("api/Dispatch/List/{id}")]
|
||||
[HttpGet]
|
||||
public IEnumerable<Model.Sale.DispatchList> GetListByLastID(int id)
|
||||
|
||||
@@ -6,8 +6,10 @@ using System.Web.Http;
|
||||
|
||||
namespace NX.ERP.WebAPi.Controllers.Store
|
||||
{
|
||||
|
||||
public class MaterielStoreOutController:ApiController
|
||||
{
|
||||
[Obsolete]
|
||||
[Route("api/MaterialOut/Add")]
|
||||
[HttpPost]
|
||||
|
||||
|
||||
@@ -6,8 +6,10 @@ using System.Web.Http;
|
||||
|
||||
namespace NX.ERP.WebAPi.Controllers.Store
|
||||
{
|
||||
|
||||
public class OtherStoreInController:ApiController
|
||||
{
|
||||
[Obsolete]
|
||||
[Route("api/OtherIn/Add")]
|
||||
[HttpPost]
|
||||
public string AddVoucher([FromBody] Model.Request.OtherStoreInOut storeIn)
|
||||
|
||||
@@ -6,8 +6,10 @@ using System.Web.Http;
|
||||
|
||||
namespace NX.ERP.WebAPi.Controllers.Store
|
||||
{
|
||||
|
||||
public class OtherStoreOutController : ApiController
|
||||
{
|
||||
[Obsolete]
|
||||
[Route("api/OtherOut/Add")]
|
||||
[HttpPost]
|
||||
public string AddVoucher([FromBody] Model.Request.OtherStoreInOut storeIn)
|
||||
|
||||
@@ -6,8 +6,10 @@ using System.Web.Http;
|
||||
|
||||
namespace NX.ERP.WebAPi.Controllers.Store
|
||||
{
|
||||
|
||||
public class ProductStoreInController: ApiController
|
||||
{
|
||||
[Obsolete]
|
||||
[Route("api/ProductStoreIn/Add")]
|
||||
[HttpPost]
|
||||
public object AddVoucher([FromBody] Model.Request.ProductStoreIn storeIn)
|
||||
|
||||
@@ -6,8 +6,10 @@ using System.Web.Http;
|
||||
|
||||
namespace NX.ERP.WebAPi.Controllers.Store
|
||||
{
|
||||
|
||||
public class PuStoreInController : ApiController
|
||||
{
|
||||
[Obsolete]
|
||||
[Route("api/PuStoreIn/Add")]
|
||||
[HttpPost]
|
||||
public object AddVoucher([FromBody] Model.Request.PuStoreIn storeIn)
|
||||
|
||||
@@ -6,8 +6,10 @@ using System.Web.Http;
|
||||
|
||||
namespace NX.ERP.WebAPi.Controllers.Store
|
||||
{
|
||||
|
||||
public class SaleStoreOutController : ApiController
|
||||
{
|
||||
[Obsolete]
|
||||
[Route("api/SaleStoreOut/Add")]
|
||||
[HttpPost]
|
||||
public object AddVoucher([FromBody] Model.Request.SaleStoreOut storeIn)
|
||||
|
||||
Reference in New Issue
Block a user