修改代码
This commit is contained in:
@@ -12,7 +12,7 @@ namespace NX.ERP.WebAPi.Controllers.Store
|
||||
[Route("api/BinChange/Add")]
|
||||
[HttpPost]
|
||||
|
||||
private string AddVoucher([FromBody] Model.Request.BinChange storeIn)
|
||||
public string AddVoucher([FromBody] Model.Request.BinChange storeIn)
|
||||
{
|
||||
var dal = new NX.ERP.U8.Store.BinChangeDAL();
|
||||
return dal.AddVocher(new Model.Request.BinChange()
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Http;
|
||||
|
||||
namespace NX.ERP.WebAPi.Controllers.Store
|
||||
{
|
||||
public class MaterialAppVoucherController: ApiController
|
||||
{
|
||||
[Route("api/MaterialAppVoucher/Add")]
|
||||
[HttpPost]
|
||||
|
||||
public string Add()
|
||||
{
|
||||
var dal = new NX.ERP.U8.Store.MaterialAppVoucher();
|
||||
return dal.AddVoucher(new { });
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,7 +13,7 @@ namespace NX.ERP.WebAPi.Controllers.Store
|
||||
[Route("api/MaterialOut/Add")]
|
||||
[HttpPost]
|
||||
|
||||
private string AddVoucher([FromBody] Model.Request.MaterialStoreOut storeIn)
|
||||
public string AddVoucher([FromBody] Model.Request.MaterialStoreOut storeIn)
|
||||
{
|
||||
var dal = new NX.ERP.U8.Store.MaterialStoreOutDAL();
|
||||
return dal.AddVocher(storeIn);
|
||||
@@ -24,7 +24,7 @@ namespace NX.ERP.WebAPi.Controllers.Store
|
||||
[Route("api/MaterialOut/Update")]
|
||||
[HttpPost]
|
||||
|
||||
private bool UpdateVoucher([FromBody] Model.Request.MaterialStoreOut storeIn)
|
||||
public bool UpdateVoucher([FromBody] Model.Request.MaterialStoreOut storeIn)
|
||||
{
|
||||
var dal = new NX.ERP.U8.Store.MaterialStoreOutDAL();
|
||||
return dal.UpdateVocher(storeIn);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace NX.ERP.WebAPi.Controllers.Store
|
||||
[Obsolete]
|
||||
[Route("api/OtherIn/Add")]
|
||||
[HttpPost]
|
||||
private string AddVoucher([FromBody] Model.Request.OtherStoreInOut storeIn)
|
||||
public string AddVoucher([FromBody] Model.Request.OtherStoreInOut storeIn)
|
||||
{
|
||||
var dal = new NX.ERP.U8.Store.OtherStoreInDAL();
|
||||
return dal.AddVocher(storeIn);
|
||||
@@ -22,7 +22,7 @@ namespace NX.ERP.WebAPi.Controllers.Store
|
||||
|
||||
[Route("api/OtherIn/Update")]
|
||||
[HttpPost]
|
||||
private bool UpdteVoucher([FromBody] Model.Request.OtherStoreInOut storeIn)
|
||||
public bool UpdteVoucher([FromBody] Model.Request.OtherStoreInOut storeIn)
|
||||
{
|
||||
var dal = new NX.ERP.U8.Store.OtherStoreInDAL();
|
||||
return dal.UpdateVocher(storeIn);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace NX.ERP.WebAPi.Controllers.Store
|
||||
[Obsolete]
|
||||
[Route("api/OtherOut/Add")]
|
||||
[HttpPost]
|
||||
private string AddVoucher([FromBody] Model.Request.OtherStoreInOut storeIn)
|
||||
public string AddVoucher([FromBody] Model.Request.OtherStoreInOut storeIn)
|
||||
{
|
||||
var dal = new NX.ERP.U8.Store.OtherStoreOutDAL();
|
||||
return dal.AddVocher(storeIn);
|
||||
@@ -21,7 +21,7 @@ namespace NX.ERP.WebAPi.Controllers.Store
|
||||
|
||||
[Route("api/OtherOut/Update")]
|
||||
[HttpPost]
|
||||
private bool UpdateVoucher([FromBody] Model.Request.OtherStoreInOut storeIn)
|
||||
public bool UpdateVoucher([FromBody] Model.Request.OtherStoreInOut storeIn)
|
||||
{
|
||||
var dal = new NX.ERP.U8.Store.OtherStoreOutDAL();
|
||||
return dal.UpdateVocher(storeIn);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace NX.ERP.WebAPi.Controllers.Store
|
||||
[Obsolete]
|
||||
[Route("api/ProductStoreIn/Add")]
|
||||
[HttpPost]
|
||||
private object AddVoucher([FromBody] Model.Request.ProductStoreIn storeIn)
|
||||
public object AddVoucher([FromBody] Model.Request.ProductStoreIn storeIn)
|
||||
{
|
||||
var dal = new NX.ERP.U8.Store.ProductInDAL();
|
||||
return new { Id = dal.AddVoucher(storeIn) };
|
||||
@@ -22,7 +22,7 @@ namespace NX.ERP.WebAPi.Controllers.Store
|
||||
[Obsolete]
|
||||
[Route("api/ProductStoreIn/Update")]
|
||||
[HttpPost]
|
||||
private bool UpdateVoucher([FromBody] Model.Request.ProductStoreIn storeIn)
|
||||
public bool UpdateVoucher([FromBody] Model.Request.ProductStoreIn storeIn)
|
||||
{
|
||||
var dal = new NX.ERP.U8.Store.ProductInDAL();
|
||||
return dal.UpdateVoucher(storeIn);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace NX.ERP.WebAPi.Controllers.Store
|
||||
|
||||
[Route("api/PuStoreIn/Add")]
|
||||
[HttpPost]
|
||||
private object AddVoucher([FromBody] Model.Request.PuStoreIn storeIn)
|
||||
public object AddVoucher([FromBody] Model.Request.PuStoreIn storeIn)
|
||||
{
|
||||
var dal = new NX.ERP.U8.Store.PuStoreInDAL();
|
||||
return new { Id = dal.AddVocher(storeIn) };
|
||||
@@ -21,7 +21,7 @@ namespace NX.ERP.WebAPi.Controllers.Store
|
||||
|
||||
[Route("api/PuStoreIn/Update")]
|
||||
[HttpPost]
|
||||
private object UpdateVoucher([FromBody] Model.Request.PuStoreIn storeIn)
|
||||
public object UpdateVoucher([FromBody] Model.Request.PuStoreIn storeIn)
|
||||
{
|
||||
var dal = new NX.ERP.U8.Store.PuStoreInDAL();
|
||||
return new { Id = dal.UpdateVocher(storeIn) };
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace NX.ERP.WebAPi.Controllers.Store
|
||||
[Obsolete]
|
||||
[Route("api/SaleStoreOut/Add")]
|
||||
[HttpPost]
|
||||
private object AddVoucher([FromBody] Model.Request.SaleStoreOut storeIn)
|
||||
public object AddVoucher([FromBody] Model.Request.SaleStoreOut storeIn)
|
||||
{
|
||||
var dal = new NX.ERP.U8.Store.SaleOutDAL();
|
||||
return new { Id = dal.AddVoucher(storeIn) };
|
||||
@@ -21,7 +21,7 @@ namespace NX.ERP.WebAPi.Controllers.Store
|
||||
|
||||
[Route("api/SaleStoreOut/Update")]
|
||||
[HttpPost]
|
||||
private bool UpdateVoucher([FromBody] Model.Request.SaleStoreOut storeIn)
|
||||
public bool UpdateVoucher([FromBody] Model.Request.SaleStoreOut storeIn)
|
||||
{
|
||||
var dal = new NX.ERP.U8.Store.SaleOutDAL();
|
||||
// return new { Id = dal.UpdateVoucher(storeIn) };
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace NX.ERP.WebAPi.Controllers.Store
|
||||
{
|
||||
[HttpPost]
|
||||
[Route("api/Stock/GetStock")]
|
||||
private IEnumerable<Model.Response.Store.Stock> GetList()
|
||||
public IEnumerable<Model.Response.Store.Stock> GetList()
|
||||
{
|
||||
return new U8.Store.StockDAL().GetList();
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace NX.ERP.WebAPi.Controllers.Store
|
||||
{
|
||||
[Route("api/Store/StoreIn")]
|
||||
[HttpPost]
|
||||
private StoreResult StoreIn(NX.ERP.BLL.Model.Inbound Params)
|
||||
public StoreResult StoreIn(NX.ERP.BLL.Model.Inbound Params)
|
||||
{
|
||||
var bll = new NX.ERP.BLL.Store.SotreIn();
|
||||
return bll.AddVoucher(Params);
|
||||
@@ -20,7 +20,7 @@ namespace NX.ERP.WebAPi.Controllers.Store
|
||||
|
||||
[Route("api/Store/StoreOut")]
|
||||
[HttpPost]
|
||||
private StoreResult StoreOut(NX.ERP.BLL.Model.OutBound Params)
|
||||
public StoreResult StoreOut(NX.ERP.BLL.Model.OutBound Params)
|
||||
{
|
||||
var bll = new NX.ERP.BLL.Store.SotreOut();
|
||||
return bll.AddVoucher(Params);
|
||||
|
||||
@@ -159,6 +159,7 @@
|
||||
<Compile Include="Controllers\Base\WarehouseController.cs" />
|
||||
<Compile Include="Controllers\Sale\DispatchController.cs" />
|
||||
<Compile Include="Controllers\Store\BinChangeController.cs" />
|
||||
<Compile Include="Controllers\Store\MaterialAppVoucherController.cs" />
|
||||
<Compile Include="Controllers\Store\MaterielStoreOutController.cs" />
|
||||
<Compile Include="Controllers\Store\OtherStoreInController.cs" />
|
||||
<Compile Include="Controllers\Store\OtherStoreOutController.cs" />
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<configuration>
|
||||
<appSettings>
|
||||
<add key="server" value="10.0.0.12"/>
|
||||
<add key="AccId" value="u8-2@003"/>
|
||||
<add key="AccId" value="u8-2@001"/>
|
||||
<add key="UserId" value="wx997"/>
|
||||
<add key="Password" value="1"/>
|
||||
<add key="EaiPort" value="80"/>
|
||||
|
||||
Reference in New Issue
Block a user