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 { /// /// 首件检验标签和末件检验标签打印接口 U13和U16 /// [Route("mes/Mobile/PrintAndReportWork2")] public class PADPrintAndReportWork2Controller : BaseController { /// /// 打印和报工表接口 /// 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("CheckBoxInspectionLabel")] public IActionResult CheckBoxInspectionLabel(string workorder, string box_label) { var response = printAndReportWorkService.CheckBoxInspectionLabel(workorder, box_label); 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); } } }