From 35347311da9ca47ac614603ebf4c3ccab8cf26a2 Mon Sep 17 00:00:00 2001 From: 啊鑫 <t2856754968@163.com> Date: 星期三, 16 七月 2025 13:42:59 +0800 Subject: [PATCH] OQC --- MESApplication/Controllers/QC/MesOqcItemsDetect02Controller.cs | 182 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 180 insertions(+), 2 deletions(-) diff --git a/MESApplication/Controllers/QC/MesOqcItemsDetect02Controller.cs b/MESApplication/Controllers/QC/MesOqcItemsDetect02Controller.cs index 58926ae..bae9488 100644 --- a/MESApplication/Controllers/QC/MesOqcItemsDetect02Controller.cs +++ b/MESApplication/Controllers/QC/MesOqcItemsDetect02Controller.cs @@ -4,6 +4,7 @@ using MES.Service.service.QC; using MES.Service.util; using Microsoft.AspNetCore.Mvc; +using Newtonsoft.Json.Linq; namespace MESApplication.Controllers.QC; @@ -12,7 +13,184 @@ public class MesOqcItemsDetect02Controller : ControllerBase { private readonly MesOqcItemsDetect02Manager m = new(); - + + [HttpPost("SetQSItemDetail")] + public ResponseResult SetQSItemDetail( + [FromBody] MesOqcItemsDetectDetail12 detail) + { + try + { + dynamic resultInfos = new ExpandoObject(); + var detail021 = m.SetQSItemDetail(detail); + resultInfos.tbBillList = detail021; + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + + //saveRemarksGid 涓昏〃娣诲姞涓嶅悎鏍兼弿杩� + [HttpPost("saveRemarksGid")] + public ResponseResult saveRemarksGid([FromBody] LLJDto rkjDto) + { + try + { + dynamic resultInfos = new ExpandoObject(); + var tbBillList = m.saveRemarksGid(rkjDto); + resultInfos.tbBillList = tbBillList; + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + + //IqcQaSubmit + [HttpPost("IqcQaSubmit")] + public ResponseResult IqcQaSubmit(LLJDto rkjDto) + { + try + { + dynamic resultInfos = new ExpandoObject(); + var tbBillList = m.IqcQaSubmit(rkjDto); + resultInfos.tbBillList = tbBillList; + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + + [HttpPost("saveRemarksPid")] + public ResponseResult saveRemarksPid([FromBody] LLJDto rkjDto) + { + try + { + dynamic resultInfos = new ExpandoObject(); + var tbBillList = m.saveRemarksPid(rkjDto); + resultInfos.tbBillList = tbBillList; + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + + [HttpPost("UpdateQSItemDetail")] + public ResponseResult UpdateQSItemDetail( + [FromBody] MesOqcItemsDetectDetail12 detail) + { + try + { + dynamic resultInfos = new ExpandoObject(); + var detail021 = m.UpdateQSItemDetail(detail); + resultInfos.tbBillList = detail021; + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + + [HttpPost("getXjDetail02ById")] + public ResponseResult getXjDetail02ById([FromBody] JObject data) + { + var id = data["id"]?.ToString(); + + try + { + dynamic resultInfos = new ExpandoObject(); + var tbBillList = m.getXjDetail02ById(Convert.ToDecimal(id)); + resultInfos.tbBillList = tbBillList; + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + + //ItemBarCodeSubmit(OQCDto dto) + [HttpPost("ItemBarCodeSubmit")] + public ResponseResult ItemBarCodeSubmit([FromBody] OQCDto dto) + { + try + { + dynamic resultInfos = new ExpandoObject(); + var item = m.ItemBarCodeSubmit(dto); + var tbBillList = + resultInfos.tbBillList = item; + return new ResponseResult + { + status = 0, + message = "OK", + data = tbBillList + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + + [HttpPost("GetDetail5")] + public ResponseResult GetDetail5([FromBody] OQCDto dto) + { + try + { + dynamic resultInfos = new ExpandoObject(); + var item = m.GetDetail5(dto); + var tbBillList = + resultInfos.tbBillList = item; + return new ResponseResult + { + status = 0, + message = "OK", + data = tbBillList + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + [HttpPost("getPage")] public ResponseResult getPage([FromBody] XJPageResult queryObj) { @@ -35,7 +213,7 @@ return ResponseResult.ResponseError(ex); } } - + [HttpPost("GetItemBarCode")] public ResponseResult GetItemBarCode(XJPageResult queryObj) { -- Gitblit v1.9.3