1
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
using MyCode.Project.Domain.Message.Act.Common;
|
||||
using MyCode.Project.Domain.Message.Response.LxmZHMDReport;
|
||||
using MyCode.Project.Domain.Message.Response.PurOrder;
|
||||
using MyCode.Project.Infrastructure.Cache;
|
||||
using MyCode.Project.Infrastructure.Common;
|
||||
using MyCode.Project.Infrastructure.Constant;
|
||||
using MyCode.Project.Infrastructure.Enumeration;
|
||||
using MyCode.Project.Infrastructure.Exceptions;
|
||||
using MyCode.Project.Services;
|
||||
using MyCode.Project.Services.Implementation;
|
||||
using MyCode.Project.WebApi.App_Filter;
|
||||
using System;
|
||||
using System.IO;
|
||||
@@ -20,10 +22,15 @@ namespace MyCode.Project.WebApi.Areas.Admin.Controllers
|
||||
{
|
||||
#region 初始化
|
||||
private IYuyuboService _yuyuboService;
|
||||
IPurOrderService _PurOrderService;
|
||||
private IPrdOrderService _prdOrderService;
|
||||
|
||||
public DataChartController(IYuyuboService yuyuboService)
|
||||
public DataChartController(IYuyuboService yuyuboService, IPurOrderService purOrderService
|
||||
,IPrdOrderService prdOrderService)
|
||||
{
|
||||
_yuyuboService = yuyuboService;
|
||||
_PurOrderService = purOrderService;
|
||||
_prdOrderService = prdOrderService;
|
||||
|
||||
|
||||
}
|
||||
@@ -37,11 +44,64 @@ namespace MyCode.Project.WebApi.Areas.Admin.Controllers
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[AllowAnonymous]
|
||||
public PageResult<SalOrderResp> GetPageList(PagedSearch search)
|
||||
public PageResult<SalOrderResp> GetSalOrderPageList(PagedSearch search)
|
||||
{
|
||||
return _yuyuboService.GetPageList(search);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 销售订单明细列表
|
||||
/// </summary>
|
||||
/// <param name="search"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[AllowAnonymous]
|
||||
public PageResult<SalOrderDetailResp> GetSalOrderDetailPageList(PagedSearch<IdAct> search)
|
||||
{
|
||||
return _yuyuboService.GetDetailPageList(search);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 采购看板
|
||||
/// </summary>
|
||||
[HttpPost]
|
||||
[AllowAnonymous]
|
||||
public PageResult<PurOrderMainResp> GetPurOrderMain(PagedSearch search)
|
||||
{
|
||||
return _PurOrderService.GetPurMain(search);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 采购看板详情
|
||||
/// </summary>
|
||||
[HttpPost]
|
||||
[AllowAnonymous]
|
||||
public PageResult<PurOrderDetilResp> GetPurOrderDetil(PagedSearch<IdAct> search)
|
||||
{
|
||||
return _PurOrderService.GetPurDetil(search);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取生产订单
|
||||
/// </summary>
|
||||
[AllowAnonymous]
|
||||
[HttpPost]
|
||||
public PageResult<PrdMoOrderResp> GetMoRespData(PagedSearch pagedSearch)
|
||||
{
|
||||
return _prdOrderService.GetPrdMoPageList(pagedSearch);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取生产订单详情
|
||||
/// </summary>
|
||||
[AllowAnonymous]
|
||||
[HttpPost]
|
||||
|
||||
public PageResult<PrdMoOrderEntryResp> GetMoEntryRespData(PagedSearch<IdAct> search)
|
||||
{
|
||||
return _prdOrderService.GetPrdMoEntryPageList(search);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user