zhuangpei-mesbackend/DOAN.Admin.WebApi/Controllers/Mobile/product/PADPrintAndReportWork2Controller.cs
qianhao.xu 260e34fb11 1
2025-04-09 10:46:29 +08:00

69 lines
2.2 KiB
C#

using DOAN.Admin.WebApi.Filters;
using DOAN.Model.MES.product;
using DOAN.Model.MES.product.Dto;
using DOAN.Service.Mobile;
using Microsoft.AspNetCore.Mvc;
using DOAN.Service.Mobile.IService;
using DOAN.Model.Mobile.Dto;
using DOAN.Service.MES.product.IService;
using Infrastructure.Converter;
namespace DOAN.WebApi.Controllers.Mobile.product
{
/// <summary>
/// 首件检验标签和末件检验标签打印接口
/// </summary>
[Route("mes/Mobile/PrintAndReportWork2")]
public class PADPrintAndReportWork2Controller : BaseController
{
/// <summary>
/// 打印和报工表接口
/// </summary>
private readonly IPADPrintAndReportWork2Service printAndReportWorkService;
public PADPrintAndReportWork2Controller(IPADPrintAndReportWork2Service _printAndReportWork2Service)
{
this.printAndReportWorkService = _printAndReportWork2Service;
}
// TODO 获取首件检验标签
[HttpGet("firstInspectionLabel")]
public IActionResult GetFirstInspectionLabel(string workorder)
{
var response = printAndReportWorkService.GetFirstInspectionLabel(workorder);
return SUCCESS(response);
}
//TODO 校验首标签
[HttpGet("CheckfirstInspectionLabel")]
public IActionResult CheckFirstInspectionLabel(string workorder,string first_label)
{
var response = printAndReportWorkService.CheckFirstInspectionLabel(workorder, first_label);
return SUCCESS(response);
}
//TODO 获取末件检验标签
[HttpGet("getendinspectionlabel")]
public IActionResult GetEndInspectionLabel(string workorder)
{
var response = printAndReportWorkService.GetEndInspectionLabel(workorder);
return SUCCESS(response);
}
//TODO 校验末件标签
[HttpGet("CheckEndInspectionLabel")]
public IActionResult CheckEndInspectionLabel(string workorder, string end_label)
{
var response = printAndReportWorkService.CheckEndInspectionLabel(workorder, end_label);
return SUCCESS(response);
}
}
}