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 | 31 ++++++++++++++++++++++++++++++-
1 files changed, 30 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 c393dfe..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,9 +16,13 @@
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)
@@ -41,5 +46,29 @@
{
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