44 lines
1.1 KiB
C#
44 lines
1.1 KiB
C#
using NX.ERP.Model.Store;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Http;
|
|
|
|
namespace NX.ERP.WebAPi.Controllers.Store
|
|
{
|
|
|
|
public class OtherStoreOutController : ApiController
|
|
{
|
|
[Obsolete]
|
|
[Route("api/OtherOut/Add")]
|
|
[HttpPost]
|
|
public string AddVoucher([FromBody] Model.Request.OtherStoreInOut storeIn)
|
|
{
|
|
var dal = new NX.ERP.U8.Store.OtherStoreOutDAL();
|
|
return dal.AddVocher(storeIn);
|
|
}
|
|
|
|
[Obsolete]
|
|
[Route("api/OtherOut/Update")]
|
|
[HttpPost]
|
|
public bool UpdateVoucher([FromBody] Model.Request.OtherStoreInOut storeIn)
|
|
{
|
|
var dal = new NX.ERP.U8.Store.OtherStoreOutDAL();
|
|
return dal.UpdateVocher(storeIn);
|
|
}
|
|
|
|
|
|
[Route("api/OtherOut/GetList")]
|
|
[HttpPost]
|
|
public IEnumerable<object> GetList(Model.Request.OtherStoreInOut storeIn)
|
|
{
|
|
var dal = new NX.ERP.U8.Finance.WarehouseQuery(); ;
|
|
return dal.GetList(storeIn);
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
} |