93 lines
2.3 KiB
C#
93 lines
2.3 KiB
C#
using DOAN.Admin.WebApi.Filters;
|
|
using DOAN.Service.MES.SmartScreen.Order;
|
|
using DOAN.Service.MES.SmartScreen.Order.IService;
|
|
using DOAN.Service.MES.SmartScreen.Quality.IService;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace DOAN.Admin.WebApi.Controllers.MES.SmartScreen.Quality
|
|
{
|
|
/// <summary>
|
|
/// 质量大屏
|
|
/// </summary>
|
|
[Verify]
|
|
[Route("mes/qualityManagement/QualitySmart")]
|
|
public class QualitySmartController : BaseController
|
|
{
|
|
/// <summary>
|
|
/// 质量大屏接口
|
|
/// </summary>
|
|
private readonly IQualitySmartService _QualitySmartService;
|
|
|
|
public QualitySmartController(IQualitySmartService QualitySmartService)
|
|
{
|
|
_QualitySmartService = QualitySmartService;
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 查询质量大屏头信息
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet("GetQualityScreenHead")]
|
|
[AllowAnonymous]
|
|
public IActionResult GetQualityScreenHead()
|
|
{
|
|
|
|
var response = _QualitySmartService.GetQualityScreenHead();
|
|
return SUCCESS(response);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 按周获取质量大屏数据
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet("GetQualitySmartScreenForWeek")]
|
|
[AllowAnonymous]
|
|
public IActionResult GetQualitySmartScreenForWeek()
|
|
{
|
|
|
|
var response = _QualitySmartService.GetQualitySmartScreenForWeek();
|
|
return SUCCESS(response);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 按月获取质量大屏数据
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet("GetQualitySmartScreenForMonth")]
|
|
[AllowAnonymous]
|
|
public IActionResult GetQualitySmartScreenForMonth()
|
|
{
|
|
|
|
var response = _QualitySmartService.GetQualitySmartScreenForMonth();
|
|
return SUCCESS(response);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 按月获取质量大屏数据数状图
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet("GetQualitySmartScreenForBarChart")]
|
|
[AllowAnonymous]
|
|
public IActionResult GetQualitySmartScreenForBarChart()
|
|
{
|
|
|
|
var response = _QualitySmartService.GetQualitySmartScreenForBarChart();
|
|
return SUCCESS(response);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 按月获取质量大屏数据折线图
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet("GetQualitySmartScreenForLineChart")]
|
|
[AllowAnonymous]
|
|
public IActionResult GetQualitySmartScreenForLineChart()
|
|
{
|
|
|
|
var response = _QualitySmartService.GetQualitySmartScreenForLineChart();
|
|
return SUCCESS(response);
|
|
}
|
|
}
|
|
}
|