修改
This commit is contained in:
41
NX.ERP.WebAPi/Controllers/Store/BinChangeController.cs
Normal file
41
NX.ERP.WebAPi/Controllers/Store/BinChangeController.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Http;
|
||||
|
||||
namespace NX.ERP.WebAPi.Controllers.Store
|
||||
{
|
||||
public class BinChangeController: ApiController
|
||||
{
|
||||
|
||||
[Route("api/BinChange/Add")]
|
||||
[HttpPost]
|
||||
|
||||
public string AddVoucher([FromBody] Model.Request.BinChange storeIn)
|
||||
{
|
||||
var dal = new NX.ERP.U8.Store.BinChangeDAL();
|
||||
return dal.AddVocher(new Model.Request.BinChange()
|
||||
{
|
||||
whCode = "2",
|
||||
binChangeDetails = new List<Model.Request.BinChangeDetail>()
|
||||
{
|
||||
new Model.Request.BinChangeDetail()
|
||||
{
|
||||
InvCode="511153",
|
||||
SoucePositon="A1Y1H002",
|
||||
DestPostion="A1Y1H003",
|
||||
Qty=1
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}); ;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
18
NX.ERP.WebAPi/Controllers/Store/StockController.cs
Normal file
18
NX.ERP.WebAPi/Controllers/Store/StockController.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Http;
|
||||
|
||||
namespace NX.ERP.WebAPi.Controllers.Store
|
||||
{
|
||||
public class StockController: ApiController
|
||||
{
|
||||
[HttpPost]
|
||||
[Route("api/Stock/GetStock")]
|
||||
public IEnumerable<Model.Response.Store.Stock> GetList()
|
||||
{
|
||||
return new U8.Store.StockDAL().GetList();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -158,12 +158,14 @@
|
||||
<Compile Include="Controllers\Base\UnitController.cs" />
|
||||
<Compile Include="Controllers\Base\WarehouseController.cs" />
|
||||
<Compile Include="Controllers\Sale\DispatchController.cs" />
|
||||
<Compile Include="Controllers\Store\BinChangeController.cs" />
|
||||
<Compile Include="Controllers\Store\MaterielStoreOutController.cs" />
|
||||
<Compile Include="Controllers\Store\OtherStoreInController.cs" />
|
||||
<Compile Include="Controllers\Store\OtherStoreOutController.cs" />
|
||||
<Compile Include="Controllers\Store\ProductStoreInController.cs" />
|
||||
<Compile Include="Controllers\Store\PuStoreInController.cs" />
|
||||
<Compile Include="Controllers\Store\SaleStoreOutController.cs" />
|
||||
<Compile Include="Controllers\Store\StockController.cs" />
|
||||
<Compile Include="Controllers\Store\StoreController.cs" />
|
||||
<Compile Include="Filters\ApiResultAttribute.cs" />
|
||||
<Compile Include="Filters\ExceptionFilter.cs" />
|
||||
|
||||
Binary file not shown.
@@ -6,7 +6,7 @@
|
||||
<configuration>
|
||||
<appSettings>
|
||||
<add key="server" value="10.0.0.12"/>
|
||||
<add key="AccId" value="u8-2@001"/>
|
||||
<add key="AccId" value="u8-2@003"/>
|
||||
<add key="UserId" value="wx997"/>
|
||||
<add key="Password" value="1"/>
|
||||
<add key="EaiPort" value="80"/>
|
||||
|
||||
Reference in New Issue
Block a user