聚合入库接口

This commit is contained in:
admin
2021-01-21 13:42:23 +08:00
parent 0e95475880
commit 9f9e429205
34 changed files with 722 additions and 15 deletions

View File

@@ -0,0 +1,29 @@
using NX.ERP.BLL.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
namespace NX.ERP.WebAPi.Controllers.Store
{
public class StoreController : ApiController
{
[Route("api/Store/StoreIn")]
[HttpPost]
public StoreResult StoreIn(NX.ERP.BLL.Model.Inbound Params)
{
var bll = new NX.ERP.BLL.Store.SotreIn();
return bll.AddVoucher(Params);
}
[Route("api/Store/StoreOut")]
[HttpPost]
public StoreResult StoreOut(NX.ERP.BLL.Model.OutBound Params)
{
var bll = new NX.ERP.BLL.Store.SotreOut();
return bll.AddVoucher(Params);
}
}
}

View File

@@ -164,6 +164,7 @@
<Compile Include="Controllers\Store\ProductStoreInController.cs" />
<Compile Include="Controllers\Store\PuStoreInController.cs" />
<Compile Include="Controllers\Store\SaleStoreOutController.cs" />
<Compile Include="Controllers\Store\StoreController.cs" />
<Compile Include="Filters\ApiResultAttribute.cs" />
<Compile Include="Filters\ExceptionFilter.cs" />
<Compile Include="Global.asax.cs">
@@ -190,6 +191,10 @@
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\NX.ERP.BLL\NX.ERP.BLL.csproj">
<Project>{c1ffe393-1879-4fc1-a99e-695f2882553d}</Project>
<Name>NX.ERP.BLL</Name>
</ProjectReference>
<ProjectReference Include="..\NX.ERP.Model\NX.ERP.Model.csproj">
<Project>{5d012e0a-afed-474e-81a9-5820890b1b29}</Project>
<Name>NX.ERP.Model</Name>