From 0e860de56fbf7ac66b9563fb946055207f09f9d6 Mon Sep 17 00:00:00 2001 From: lg <999544862qq.com> Date: 星期四, 15 八月 2024 10:25:43 +0800 Subject: [PATCH] Merge branch 'master' of http://43.142.96.171:8080/r/~tjx/StandardPda --- MESApplication/Controllers/Warehouse/OpeningReceiptController.cs | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 54 insertions(+), 0 deletions(-) diff --git a/MESApplication/Controllers/Warehouse/OpeningReceiptController.cs b/MESApplication/Controllers/Warehouse/OpeningReceiptController.cs new file mode 100644 index 0000000..9ed6425 --- /dev/null +++ b/MESApplication/Controllers/Warehouse/OpeningReceiptController.cs @@ -0,0 +1,54 @@ +锘縰sing System.Dynamic; +using MES.Service.Dto.service; +using MES.Service.service.Warehouse; +using MES.Service.util; +using Microsoft.AspNetCore.Mvc; + +namespace MESApplication.Controllers.Warehouse; + +[ApiController] +[Route("api/[controller]")] +public class OpeningReceiptController : ControllerBase +{ + private readonly OpeningReceiptServer m = new(); + + [HttpPost("ScanInBarcodeQC")] + public ResponseResult ScanInBarcodeQC(WarehouseQuery query) + { + try + { + dynamic resultInfos = new ExpandoObject(); + resultInfos.tbBillList = m.ScanInBarcodeQC(query); + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + + [HttpPost("GetForm")] + public ResponseResult GetForm(WarehouseQuery query) + { + try + { + dynamic resultInfos = new ExpandoObject(); + resultInfos.tbBillList = m.GetForm(query); + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } +} \ No newline at end of file -- Gitblit v1.9.3