2024-06-07 11:04:26 +08:00
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
2023-11-29 16:41:11 +08:00
|
|
|
|
using ZR.Model.MES.qu;
|
|
|
|
|
|
using ZR.Service.mes.qc.IService;
|
2023-11-28 18:18:56 +08:00
|
|
|
|
|
|
|
|
|
|
namespace ZR.Admin.WebApi.Controllers.mes.qc
|
|
|
|
|
|
{
|
|
|
|
|
|
|
2024-01-29 16:55:45 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 检测
|
|
|
|
|
|
/// </summary>
|
2023-11-28 18:18:56 +08:00
|
|
|
|
[Route("mes/qc/IQC")]
|
|
|
|
|
|
public class QcinspectionItemController : BaseController
|
|
|
|
|
|
{
|
2023-11-29 16:41:11 +08:00
|
|
|
|
private readonly IQcinspectionItemService qcinspection;
|
2023-11-28 18:18:56 +08:00
|
|
|
|
|
|
|
|
|
|
public QcinspectionItemController(IQcinspectionItemService qcinspection)
|
|
|
|
|
|
{
|
|
|
|
|
|
|
2023-11-29 16:41:11 +08:00
|
|
|
|
this.qcinspection = qcinspection;
|
2023-11-28 18:18:56 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2023-11-29 16:41:11 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 返回检测项列表
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet("getinspectionItemList")]
|
2024-06-07 11:04:26 +08:00
|
|
|
|
public IActionResult GetinspectionItemList(string inspectionModule = "", string inspectionType = "")
|
|
|
|
|
|
{
|
2023-11-29 16:41:11 +08:00
|
|
|
|
List<QcInspectionitem> data = qcinspection.GetinspectionItemList(inspectionModule, inspectionType);
|
|
|
|
|
|
return ToResponse(new ApiResult(200, "success", data));
|
2023-11-28 18:18:56 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-11-29 16:41:11 +08:00
|
|
|
|
|
2023-11-28 18:18:56 +08:00
|
|
|
|
}
|