40 lines
975 B
C#
40 lines
975 B
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 ArrivalController : ApiController
|
|
{
|
|
[Route("api/Arrival/List")]
|
|
// GET api/values
|
|
[HttpGet]
|
|
public IEnumerable<Model.Purchase.Arrival> List()
|
|
{
|
|
var customerDAL = new ArrivalDAL();
|
|
return customerDAL.GetList();
|
|
}
|
|
|
|
[Route("api/Arrival/{Code}")]
|
|
[HttpGet]
|
|
public Model.Purchase.Arrival Model(string Code)
|
|
{
|
|
var customerDAL = new ArrivalDAL();
|
|
return customerDAL.GetModel(Code);
|
|
}
|
|
|
|
[Route("api/Arrival/list/{id}")]
|
|
[HttpGet]
|
|
public IEnumerable<Model.Purchase.Arrival> GetListByLastID(int id)
|
|
{
|
|
var customerDAL = new ArrivalDAL();
|
|
return customerDAL.GetListByLastId(id);
|
|
}
|
|
|
|
|
|
|
|
}
|
|
} |