2021-12-06 16:24:25 +08:00
|
|
|
|
using NX.ERP.Model.Store;
|
|
|
|
|
|
using System;
|
2021-01-13 13:08:17 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Web;
|
|
|
|
|
|
using System.Web.Http;
|
|
|
|
|
|
|
|
|
|
|
|
namespace NX.ERP.WebAPi.Controllers.Store
|
|
|
|
|
|
{
|
2021-01-28 10:10:32 +08:00
|
|
|
|
public class MaterialStoreOutController:ApiController
|
2021-01-13 13:08:17 +08:00
|
|
|
|
{
|
2021-05-21 13:06:45 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Obsolete]
|
2021-01-15 09:26:17 +08:00
|
|
|
|
[Route("api/MaterialOut/Add")]
|
2021-01-13 13:08:17 +08:00
|
|
|
|
[HttpPost]
|
2021-01-15 09:26:17 +08:00
|
|
|
|
|
2021-04-26 09:16:40 +08:00
|
|
|
|
public string AddVoucher([FromBody] Model.Request.MaterialStoreOut storeIn)
|
2021-01-13 13:08:17 +08:00
|
|
|
|
{
|
2021-01-28 10:10:32 +08:00
|
|
|
|
var dal = new NX.ERP.U8.Store.MaterialStoreOutDAL();
|
2021-01-13 13:08:17 +08:00
|
|
|
|
return dal.AddVocher(storeIn);
|
|
|
|
|
|
}
|
2021-03-15 11:13:19 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-21 13:06:45 +08:00
|
|
|
|
[Obsolete]
|
2021-03-15 11:13:19 +08:00
|
|
|
|
[Route("api/MaterialOut/Update")]
|
|
|
|
|
|
[HttpPost]
|
|
|
|
|
|
|
2021-04-26 09:16:40 +08:00
|
|
|
|
public bool UpdateVoucher([FromBody] Model.Request.MaterialStoreOut storeIn)
|
2021-03-15 11:13:19 +08:00
|
|
|
|
{
|
|
|
|
|
|
var dal = new NX.ERP.U8.Store.MaterialStoreOutDAL();
|
|
|
|
|
|
return dal.UpdateVocher(storeIn);
|
|
|
|
|
|
}
|
2021-12-06 16:24:25 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Route("api/MaterialOut")]
|
|
|
|
|
|
[HttpGet]
|
|
|
|
|
|
public MaterialStoreOut GetModel([FromUri] string Code)
|
|
|
|
|
|
{
|
|
|
|
|
|
var dal = new NX.ERP.U8.Store.MaterialStoreOutDAL();
|
|
|
|
|
|
return dal.GetModel(Code);
|
|
|
|
|
|
}
|
2021-01-13 13:08:17 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|