From 7285fd041c9ed732ae2039c4cc54f3eb382d9112 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周日, 08 12月 2024 14:48:50 +0800
Subject: [PATCH] 33

---
 CC/iWareCC_ASRS/Common/Helper/MyExtendHelper.cs |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/CC/iWareCC_ASRS/Common/Helper/MyExtendHelper.cs b/CC/iWareCC_ASRS/Common/Helper/MyExtendHelper.cs
index a1b91dc..af8655c 100644
--- a/CC/iWareCC_ASRS/Common/Helper/MyExtendHelper.cs
+++ b/CC/iWareCC_ASRS/Common/Helper/MyExtendHelper.cs
@@ -1,4 +1,6 @@
 锘縰sing Admin.NET.Application;
+using iWareCC.SrmService;
+using iWareCC.StationService;
 using iWareCommon.Common.Globle;
 using iWareCommon.Utils;
 using iWareModel;
@@ -24,6 +26,21 @@
     {
 
         /// <summary>
+        /// 鍐欏叆 鎶ヨ淇℃伅
+        /// </summary>
+        /// <param name="warningAddress"></param>
+        /// <returns></returns>
+        public static async Task<iWareCC.StationService.SdaResEntity> WriteBoolPlcDataForWarning(string warningAddress)
+        {
+            using (StationServiceClient client = new StationServiceClient())
+            {
+
+                var res = await client.WriteBoolPlcDataAsync((int)EDevice.Station, "3000|" + warningAddress, true);
+                return res;
+            }
+        }
+
+        /// <summary>
         /// 澶勭悊 琛� mes_order_gather
         /// </summary>
         /// <param name="wmsDB"></param>
@@ -36,7 +53,8 @@
         {
             errMsg = "";
             //澶勭悊琛�  mes_order_gather
-            if (package == null) {
+            if (package == null)
+            {
                 return true;
             }
             var isAddOrder = false;

--
Gitblit v1.9.3