using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using VueWebApi.DLL.BLL;
using VueWebApi.Models;
using VueWebApi.Tools;
namespace VueWebApi.Controllers
{
[RoutePrefix(prefix: "api/KanBanManagerent")]
[ControllerGroup("电子看板", "在线接口")]
public class KanBanManagerentController : ApiController
{
//定义全局信息返回变量
ToMessage mes = new ToMessage();
RedisHelper redis = new RedisHelper();
#region[北鸣仓库看板左上,生产待入库]
///
/// 北鸣仓库看板左上,生产待入库
///
///
[Route(template: "ProductionStockedInLeftTop")]
[HttpGet]
public HttpResponseMessage ProductionStockedInLeftTop()
{
mes = KanBanManagerentBLL.ProductionStockedInLeftTop();
return TJson.toJson(mes);
}
#endregion
#region[北鸣仓库看板左下,产品待发货]
///
/// 北鸣仓库看板左下,产品待发货
///
///
[Route(template: "ProductConsignmentLeftBottom")]
[HttpGet]
public HttpResponseMessage ProductConsignmentLeftBottom()
{
mes = KanBanManagerentBLL.ProductConsignmentLeftBottom();
return TJson.toJson(mes);
}
#endregion
#region[北鸣仓库看板右上,近一周生产待入库产品排行TOP5]
///
/// 北鸣仓库看板右上,近一周生产待入库产品排行TOP5
///
///
[Route(template: "ProductionStockedInRightTop")]
[HttpGet]
public HttpResponseMessage ProductionStockedInRightTop()
{
mes = KanBanManagerentBLL.ProductionStockedInRightTop();
return TJson.toJson(mes);
}
#endregion
#region[北鸣仓库看板右下,近一周销售待发货产品排行TOP5]
///
/// 北鸣仓库看板右下,近一周销售待发货产品排行TOP5
///
///
[Route(template: "ProductionStockedInRightBottom")]
[HttpGet]
public HttpResponseMessage ProductionStockedInRightBottom()
{
mes = KanBanManagerentBLL.ProductionStockedInRightBottom();
return TJson.toJson(mes);
}
#endregion
#region[北鸣采购委外看板左上,采购待入库]
///
/// 北鸣采购委外看板左上,采购待入库
///
///
[Route(template: "ProcureOutsourcLeftTop")]
[HttpGet]
public HttpResponseMessage ProcureOutsourcLeftTop()
{
mes = KanBanManagerentBLL.ProcureOutsourcLeftTop();
return TJson.toJson(mes);
}
#endregion
#region[北鸣采购委外看板左下,委外待入库]
///
/// 北鸣采购委外看板左上,委外待入库
///
///
[Route(template: "ProcureOutsourcLeftBottom")]
[HttpGet]
public HttpResponseMessage ProcureOutsourcLeftBottom()
{
mes = KanBanManagerentBLL.ProcureOutsourcLeftBottom();
return TJson.toJson(mes);
}
#endregion
#region[北鸣采购委外看板右上,近一周采购待入库物料排行TOP5]
///
/// 北鸣采购委外看板右上,近一周采购待入库物料排行TOP5
///
///
[Route(template: "ProcureOutsourcRightTop")]
[HttpGet]
public HttpResponseMessage ProcureOutsourcRightTop()
{
mes = KanBanManagerentBLL.ProcureOutsourcRightTop();
return TJson.toJson(mes);
}
#endregion
#region[北鸣采购委外看板右下,近一周委外待入库产品排行TOP5]
///
/// 北鸣采购委外看板右下,近一周委外待入库产品排行TOP5
///
///
[Route(template: "ProcureOutsourcRightBottom")]
[HttpGet]
public HttpResponseMessage ProcureOutsourcRightBottom()
{
mes = KanBanManagerentBLL.ProcureOutsourcRightBottom();
return TJson.toJson(mes);
}
#endregion
}
}