发货单
This commit is contained in:
42
NX.ERP.WebAPi/Controllers/Sale/DispatchController.cs
Normal file
42
NX.ERP.WebAPi/Controllers/Sale/DispatchController.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using NX.ERP.Model.Sale;
|
||||
using NX.ERP.U8.Sale;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Http;
|
||||
|
||||
namespace NX.ERP.WebAPi.Controllers.Sale
|
||||
{
|
||||
public class DispatchController : ApiController
|
||||
{
|
||||
// GET api/values
|
||||
[HttpGet]
|
||||
public IEnumerable<Model.Sale.DispatchList> List()
|
||||
{
|
||||
var customerDAL = new DispatchListDAL();
|
||||
return customerDAL.GetList();
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public Model.Sale.DispatchList Model(int id)
|
||||
{
|
||||
var customerDAL = new DispatchListDAL();
|
||||
return customerDAL.GetModel(id);
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public Model.Sale.DispatchList ModelByCode(string Code)
|
||||
{
|
||||
var customerDAL = new DispatchListDAL();
|
||||
return customerDAL.GetModel(Code);
|
||||
}
|
||||
[HttpGet]
|
||||
public IEnumerable<Model.Sale.DispatchList> GetListByLastID(int Code)
|
||||
{
|
||||
var customerDAL = new DispatchListDAL();
|
||||
return customerDAL.GetListByLastID(Code);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -147,6 +147,7 @@
|
||||
<Compile Include="Controllers\Base\SupplierController.cs" />
|
||||
<Compile Include="Controllers\Base\UnitController.cs" />
|
||||
<Compile Include="Controllers\Base\WarehouseController.cs" />
|
||||
<Compile Include="Controllers\Sale\DispatchController.cs" />
|
||||
<Compile Include="Controllers\Store\MaterielStoreOutController.cs" />
|
||||
<Compile Include="Controllers\Store\OtherStoreInController.cs" />
|
||||
<Compile Include="Controllers\Store\OtherStoreOutController.cs" />
|
||||
|
||||
Reference in New Issue
Block a user