You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.3 KiB
55 lines
1.3 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Net.Http;
|
|
using System.Web;
|
|
using System.Web.Http;
|
|
using System.Web.Security;
|
|
using Warehouse.DAL.DropDownListDal;
|
|
using Warehouse.Models.Permission;
|
|
namespace Warehouse.WebApi
|
|
{
|
|
public class DropDownListController : ApiController
|
|
{
|
|
DropDownListDal DropDownListDal = new DropDownListDal();
|
|
|
|
//L6站点
|
|
[Route("api/StockIn/worksiteL6")]
|
|
[HttpPost]
|
|
public IHttpActionResult worksiteL6()
|
|
{
|
|
var res = DropDownListDal.worksiteL6();
|
|
return Json(res);
|
|
}
|
|
|
|
//L8站点
|
|
[Route("api/StockIn/worksiteL8")]
|
|
[HttpPost]
|
|
public IHttpActionResult worksiteL8()
|
|
{
|
|
var res = DropDownListDal.worksiteL8();
|
|
return Json(res);
|
|
}
|
|
|
|
//L6车间
|
|
[Route("api/StockIn/WorkShopL6")]
|
|
[HttpPost]
|
|
public IHttpActionResult WorkShopL6()
|
|
{
|
|
var res = DropDownListDal.WorkShopL6();
|
|
return Json(res);
|
|
}
|
|
|
|
//L8车间
|
|
[Route("api/StockIn/WorkShopL8")]
|
|
[HttpPost]
|
|
public IHttpActionResult WorkShopL8()
|
|
{
|
|
var res = DropDownListDal.WorkShopL8();
|
|
return Json(res);
|
|
}
|
|
|
|
|
|
}
|
|
}
|