33 lines
750 B
C#
33 lines
750 B
C#
using NX.ERP.Model;
|
|
using NX.ERP.U8;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Http;
|
|
|
|
namespace NX.ERP.WebAPi.Controllers
|
|
{
|
|
public class MaterialController : ApiController
|
|
{
|
|
|
|
[Route("api/Material/List")]
|
|
[HttpGet]
|
|
public IEnumerable<Material> List(long Pubufts = 0)
|
|
{
|
|
var MaterialDAL = new MaterialDAL();
|
|
return MaterialDAL.GetList(Pubufts);
|
|
|
|
}
|
|
[Route("api/Material/Query")]
|
|
[HttpPost]
|
|
public IEnumerable<Material> Query(NX.ERP.Model.Request.Material Param)
|
|
{
|
|
var MaterialDAL = new MaterialDAL();
|
|
return MaterialDAL.GetList(Param);
|
|
|
|
}
|
|
|
|
|
|
}
|
|
} |