49 lines
1.3 KiB
C#
49 lines
1.3 KiB
C#
using NX.ERP.U8.Purchase;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
|
|
using System.Web.Http;
|
|
|
|
namespace NX.ERP.WebAPi.Controllers
|
|
{
|
|
public class PmcController : ApiController
|
|
{
|
|
[HttpPost]
|
|
[Route("api/Pmc/Inventoryall")]
|
|
public IEnumerable<NX.ERP.Model.PmcInventoryallRes> Inventoryall(NX.ERP.Model.Request.Inventoryall info)
|
|
{
|
|
var dal = new NX.ERP.U8.Pmc.PmcQuery();
|
|
return dal.GetPmcInventoryallRes(info);
|
|
}
|
|
|
|
|
|
[HttpPost]
|
|
[Route("api/Pmc/Inventorymom")]
|
|
public IEnumerable<object> Inventorymom([FromBody] List<string> moCodes)
|
|
{
|
|
var PmcQuery = new NX.ERP.U8.Pmc.PmcQuery();
|
|
return PmcQuery.Inventorymom(moCodes);
|
|
}
|
|
|
|
[HttpPost]
|
|
[Route("api/Pmc/Inventorymonth")]
|
|
public IEnumerable<object> Inventorymonth(NX.ERP.Model.Request.Inventoryall info)
|
|
{
|
|
var PmcQuery = new NX.ERP.U8.Pmc.PmcQuery();
|
|
return PmcQuery.Inventorymonth(info);
|
|
}
|
|
|
|
[HttpPost]
|
|
[Route("api/Pmc/Inventorysocode")]
|
|
public IEnumerable<object> Inventorysocode(NX.ERP.Model.Request.Inventoryall info)
|
|
{
|
|
var PmcQuery = new NX.ERP.U8.Pmc.PmcQuery();
|
|
return PmcQuery.Inventorysocode(info);
|
|
}
|
|
|
|
|
|
|
|
}
|
|
} |