88 lines
2.5 KiB
C#
88 lines
2.5 KiB
C#
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;
|
|
using System.Web.Http;
|
|
|
|
namespace MyCode.Project.WebApi.Areas.Admin.Controllers
|
|
{
|
|
/// <summary>
|
|
/// 报表
|
|
/// </summary>
|
|
public class DataChartController : BaseAdminController
|
|
{
|
|
#region 初始化
|
|
private IYuyuboService _yuyuboService;
|
|
IPurOrderService _PurOrderService;
|
|
private IPrdOrderService _prdOrderService;
|
|
|
|
public DataChartController(IYuyuboService yuyuboService, IPurOrderService purOrderService
|
|
, IPrdOrderService prdOrderService)
|
|
{
|
|
_yuyuboService = yuyuboService;
|
|
_PurOrderService = purOrderService;
|
|
_prdOrderService = prdOrderService;
|
|
|
|
|
|
}
|
|
#endregion
|
|
|
|
|
|
/// <summary>
|
|
/// 销售订单列表
|
|
/// </summary>
|
|
/// <param name="search"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[AllowAnonymous]
|
|
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);
|
|
}
|
|
|
|
|
|
}
|
|
}
|