修改
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
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}); ;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user