using MyCode.Project.Domain.Message.Act.AdminReport.PrdReport;
using MyCode.Project.Domain.Message.Act.Common;
using MyCode.Project.Domain.Message.Response.LxmZHMDReport;
using MyCode.Project.Infrastructure.Common;
using MyCode.Project.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
namespace MyCode.Project.WebApi.Areas.Admin.Controllers
{
///
/// 生产看板控制器
///
public class PrdDataChartController : BaseAdminController
{
private IPrdOrderService _prdOrderService;
///
/// 生产订单服务
///
///
public PrdDataChartController(IPrdOrderService prdOrderService)
{
_prdOrderService = prdOrderService;
}
///
/// 获取生产订单
///
[HttpPost]
[AllowAnonymous]
public PageResult GetMoRespData(PagedSearch pagedSearch)
{
return _prdOrderService.GetPrdMoPageList(pagedSearch);
}
///
/// 获取生产订单详情
///
[HttpPost]
[AllowAnonymous]
public PageResult GetMoEntryRespData(PagedSearch search)
{
return _prdOrderService.GetPrdMoEntryPageList(search);
}
///
/// 获取生产订单执行汇总报表数据
///
[HttpPost]
[AllowAnonymous]
public PageResult GetMoExecuteSumRespData(PagedSearch pagedSearch)
{
return _prdOrderService.GetMoExecuteSumRespData(pagedSearch);
}
///
/// 获取生产看板头数据
///
///
///
[HttpPost]
[AllowAnonymous]
public PrdReportHead GetMoDataChartHeadByYearAndMonth(YearAndMonth yearAndMonth)
{
return _prdOrderService.GetMoDataChartHeadByYearAndMonth(yearAndMonth);
}
///
/// 获取生产看板折线数据
///
///
///
[HttpPost]
[AllowAnonymous]
public List GetMoDataChartByYearAndMonth(YearAndMonth yearAndMonth)
{
return _prdOrderService.GetMoDataChartByYearAndMonth(yearAndMonth);
}
///
/// 获取生产入库数据,主要用作饼图,展示各物料生产入库数量(完工数量)
///
///
///
[HttpPost]
[AllowAnonymous]
public List GetPrdInStockGroupByMaterial(YearAndMonth yearAndMonth)
{
return _prdOrderService.GetPrdInStockGroupByMaterial(yearAndMonth);
}
///
/// 获取生产订单数据,主要用作饼图,展示各物料生产订单数量(生产数量)
///
///
///
[HttpPost]
[AllowAnonymous]
public List GetPrdMoGroupByMaterial(YearAndMonth yearAndMonth)
{
return _prdOrderService.GetPrdMoGroupByMaterial(yearAndMonth);
}
///
/// 获取即时库存数据,主要用作饼图,展示各物料库存数量(库存数量)
///
///
[HttpPost]
[AllowAnonymous]
public List GetInventoryGroupByMaterial()
{
return _prdOrderService.GetInventoryGroupByMaterial();
}
}
}