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_OrderServices/Dt_InboundOrderService.cs | 26 ++++++++++++++++++++++++--
1 files changed, 24 insertions(+), 2 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_OrderServices/Dt_InboundOrderService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_OrderServices/Dt_InboundOrderService.cs"
index 3d0d20a..f042505 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_OrderServices/Dt_InboundOrderService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_OrderServices/Dt_InboundOrderService.cs"
@@ -1,4 +1,5 @@
-锘縰sing MailKit.Search;
+锘縰sing AngleSharp.Dom;
+using MailKit.Search;
using Masuit.Tools;
using Newtonsoft.Json;
using WIDESEA_Common;
@@ -16,6 +17,7 @@
using WIDESEA_Model.Models;
using WIDESEA_Model.Models.Order;
using WIDESEA_OrderRepository;
+using WIDESEA_StorageTaskServices;
namespace WIDESEA_OrderServices
{
@@ -24,15 +26,18 @@
private readonly IUnitOfWorkManage _unitOfWorkManage;
private readonly ISys_ConfigService _configService;
private readonly IDt_WareAreaInfoRepository _wareAreaInfoRepository;
+ private readonly PrintStatusContainer _printStatusContainer;
public Dt_InboundOrderService(IDt_InboundOrderRepository BaseDal,
IUnitOfWorkManage unitOfWorkManage,
ISys_ConfigService configService,
- IDt_WareAreaInfoRepository wareAreaInfoRepository) : base(BaseDal)
+ IDt_WareAreaInfoRepository wareAreaInfoRepository,
+ PrintStatusContainer printStatusContainer) : base(BaseDal)
{
_unitOfWorkManage = unitOfWorkManage;
_configService = configService;
_wareAreaInfoRepository = wareAreaInfoRepository;
+ _printStatusContainer = printStatusContainer;
}
public override WebResponseContent UpdateData(SaveModel saveModel)
@@ -272,5 +277,22 @@
var result = HttpsClient.PostAsync(IpAddress, orders.ToJsonString()).Result;
return JsonConvert.DeserializeObject<WebResponseContent>(result);
}
+
+ /// <summary>
+ /// 寮�鍚嚜鍔ㄦ墦鍗�
+ /// </summary>
+ /// <param name="AutomaticPrintStatus"></param>
+ /// <exception cref="NotImplementedException"></exception>
+ public void AutomaticPrint(string AutomaticPrintStatus)
+ {
+ if (AutomaticPrintStatus.Equals("false"))
+ {
+ _printStatusContainer.AutomaticPrint = false;
+ }
+ else
+ {
+ _printStatusContainer.AutomaticPrint = true;
+ }
+ }
}
}
--
Gitblit v1.9.3