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 { [Route("mes/Mobile/PrintAndReportWork3")] public class PADPrintAndReportWork3Controller : BaseController { /// /// 打印和报工表接口 U3和U5线 /// private readonly IPADPrintAndReportWork3Service printAndReportWork3Service; public PADPrintAndReportWork3Controller(IPADPrintAndReportWork3Service _printAndReportWork3Service) { this.printAndReportWork3Service = _printAndReportWork3Service; } // TODO 获取首件检验标签 [HttpGet("firstInspectionLabel")] public IActionResult GetFirstInspectionLabel(string workorder) { var response = printAndReportWork3Service.GetFirstInspectionLabel(workorder); return SUCCESS(response); } //TODO 校验箱子标签 [HttpGet("CheckBoxInspectionLabel")] public IActionResult CheckBoxInspectionLabel(string workorder, string box_label) { var response = printAndReportWork3Service.CheckBoxInspectionLabel(workorder, box_label); return SUCCESS(response); } //TODO 校验首标签 [HttpGet("CheckfirstInspectionLabel")] public IActionResult CheckFirstInspectionLabel(string workorder, string first_label) { var response = printAndReportWork3Service.CheckFirstInspectionLabel(workorder, first_label); return SUCCESS(response); } //TODO 获取末件检验标签 [HttpGet("getendinspectionlabel")] public IActionResult GetEndInspectionLabel(string workorder) { var response = printAndReportWork3Service.GetEndInspectionLabel(workorder); return SUCCESS(response); } //TODO 校验末件标签 [HttpGet("CheckEndInspectionLabel")] public IActionResult CheckEndInspectionLabel(string workorder, string end_label) { var response = printAndReportWork3Service.CheckEndInspectionLabel(workorder, end_label); return SUCCESS(response); } } }