From 027b75833ae1bc3bd1bb597b18c65c9177fa62d4 Mon Sep 17 00:00:00 2001
From: yangpeixing <yangpeixing@hnkhzn.com>
Date: 星期三, 17 十二月 2025 12:10:18 +0800
Subject: [PATCH] 1.WMS中添加自动打印开关

---
 项目代码/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Order/InboundOrderController.cs |   52 +++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 51 insertions(+), 1 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Order/InboundOrderController.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Order/InboundOrderController.cs"
index 4ae9456..c8e48f0 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Order/InboundOrderController.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Order/InboundOrderController.cs"
@@ -6,6 +6,7 @@
 using WIDESEA_Model.Models;
 using WIDESEA_Model.Models.Basic;
 using WIDESEA_Model.Models.Order;
+using WIDESEA_StorageTaskServices;
 using WIDESEAWCS_BasicInfoService;
 
 namespace WIDESEA_WMSServer.Controllers
@@ -15,10 +16,59 @@
     public class InboundOrderController : ApiBaseController<IDt_InboundOrderService, Dt_InboundOrder>
     {
         private readonly IHttpContextAccessor _httpContextAccessor;
-        public InboundOrderController(IDt_InboundOrderService service, IHttpContextAccessor httpContextAccessor) : base(service)
+        private readonly PrintStatusContainer _printStatusContainer;
+
+
+        public InboundOrderController(IDt_InboundOrderService service, IHttpContextAccessor httpContextAccessor, PrintStatusContainer printStatusContainer) : base(service)
         {
             _httpContextAccessor = httpContextAccessor;
+            _printStatusContainer=printStatusContainer;
+        }
+        [HttpGet,HttpPost,Route("GetInboundOrderInfo"),AllowAnonymous]
+        public WebResponseContent GetInboundOrderInfo(string orderNo)
+        {
+            return Service.GetInboundOrderInfo(orderNo);
         }
 
+        [HttpGet, HttpPost, Route("PrintPalletCode"), AllowAnonymous]
+        public WebResponseContent PrintPalletCode(int num)
+        {
+            return Service.PrintPalletCode(num);
+        }
+
+        [HttpGet, HttpPost, Route("PrintOrder"), AllowAnonymous]
+        public WebResponseContent PrintOrder([FromBody] int[] keys)
+        {
+            return Service.PrintOrder(keys);
+        }
+        [HttpGet, HttpPost, Route("SplitOrder"), AllowAnonymous]
+        public WebResponseContent SplitOrder(int id, int num)
+        {
+            return Service.SplitOrder(id, num);
+        }
+        [HttpGet, HttpPost, Route("MultiplePrintOrder"), AllowAnonymous]
+        public WebResponseContent MultiplePrintOrder(int id, int num)
+        {
+            return Service.MultiplePrintOrder(id, num);
+        }
+
+        [HttpGet, Route("AutomaticPrint"), AllowAnonymous]
+        public void AutomaticPrint(string AutomaticPrintStatus)
+        {
+             Service.AutomaticPrint(AutomaticPrintStatus);
+        }
+
+        [HttpGet, Route("GetAutomaticPrint"), AllowAnonymous]
+        public string GetAutomaticPrint()
+        {
+            if (_printStatusContainer.AutomaticPrint)
+            {
+                return "true";
+            }
+            else
+            {
+                return "false";
+            }
+        }
     }
 }

--
Gitblit v1.9.3