This commit is contained in:
gongxh
2021-03-23 15:06:34 +08:00
parent 7e48441739
commit 27fccb1674
18 changed files with 267 additions and 50 deletions

View 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
}
}
}); ;
}
}
}

View 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();
}
}
}