From 5fab21700b6005e8eecf41f05638ecadf3048bbc Mon Sep 17 00:00:00 2001
From: bklLiudl <673013083@qq.com>
Date: 星期二, 03 九月 2024 13:14:00 +0800
Subject: [PATCH] 移除过滤文档

---
 Admin.NET/WCS.Application/Hub/PlcHub.cs |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/Admin.NET/WCS.Application/Hub/PlcHub.cs b/Admin.NET/WCS.Application/Hub/PlcHub.cs
index b6dbb86..ba57a75 100644
--- a/Admin.NET/WCS.Application/Hub/PlcHub.cs
+++ b/Admin.NET/WCS.Application/Hub/PlcHub.cs
@@ -34,4 +34,31 @@
     //{
     //    await _plcHubContext.Clients.All.PublicStationStatus(context);
     //}
+
+    /// <summary>
+    /// 涓嬪彂鏈嶅姟鐘舵��
+    /// </summary>
+    public async Task UpdateService(PLCServiceModel context)
+    {
+        //杩愯鐘舵��
+        if (context.BoRunningState.HasValue)
+            PLCTaskAction.boRunningState = context.BoRunningState.Value;
+        //鑴辨満妯″紡
+        if (context.BoOffline.HasValue)
+            PLCTaskAction.boOffline = context.BoOffline.Value;
+        //鑷埛鏂�
+        if (context.BoRefresh.HasValue)
+            PLCTaskAction.boRefresh = context.BoRefresh.Value;
+        await _plcHubContext.Clients.All.UpdateService(context);
+    }
 }
+public class PLCServiceModel
+{
+    public bool? BoRunningState { get; set; }
+
+
+    public bool? BoOffline { get; set; }
+
+
+    public bool? BoRefresh { get; set; }
+}
\ No newline at end of file

--
Gitblit v1.8.0