This commit is contained in:
admin
2021-01-18 15:07:20 +08:00
parent 7eede6f877
commit 073706bf0a
18 changed files with 182 additions and 38 deletions

View File

@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
namespace NX.ERP.WebAPi.Controllers.Store
{
public class ProductStoreInController: ApiController
{
[Route("api/ProductStoreIn/Add")]
[HttpPost]
public object AddVoucher([FromBody] Model.Request.ProductStoreIn storeIn)
{
var dal = new NX.ERP.U8.Store.ProductInDAL();
return new { Id = dal.AddVoucher(storeIn) };
}
}
}

View File

@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
namespace NX.ERP.WebAPi.Controllers.Store
{
public class SaleStoreOutController : ApiController
{
[Route("api/SaleStoreOut/Add")]
[HttpPost]
public object AddVoucher([FromBody] Model.Request.SaleStoreOut storeIn)
{
var dal = new NX.ERP.U8.Store.SaleOutDAL();
return new { Id = dal.AddVoucher(storeIn) };
}
}
}

View File

@@ -161,7 +161,9 @@
<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="Filters\ApiResultAttribute.cs" />
<Compile Include="Filters\ExceptionFilter.cs" />
<Compile Include="Global.asax.cs">