From 0324e0782048859cd5e239e155d71aae9dfccd73 Mon Sep 17 00:00:00 2001
From: C3204 <zhengyabo@lanpucloud.cn>
Date: 星期日, 04 一月 2026 17:04:24 +0800
Subject: [PATCH] 添加了历史数据查询界面优化登录界面。

---
 LB_SmartVision/ProcessRun/ProcessRunBll.cs |   26 ++++++++++++++++----------
 1 files changed, 16 insertions(+), 10 deletions(-)

diff --git a/LB_SmartVision/ProcessRun/ProcessRunBll.cs b/LB_SmartVision/ProcessRun/ProcessRunBll.cs
index 0555a01..d2ba837 100644
--- a/LB_SmartVision/ProcessRun/ProcessRunBll.cs
+++ b/LB_SmartVision/ProcessRun/ProcessRunBll.cs
@@ -24,10 +24,13 @@
 
         public static string Node2ToolClassName(string NodeName)
         {
+
             foreach (var item in IProcess.dicProcesses)
             {
                 if (NodeName.StartsWith(item.Key))
+                {
                     return item.Value.ToString();
+                }
             }
 
             return string.Empty;
@@ -41,7 +44,7 @@
         /// <summary>
         /// 杩愯鏍囪
         /// </summary>
-        public bool bPruning
+        public bool bRuning
         {
             set
             {
@@ -903,9 +906,8 @@
         /// <returns></returns>
         public bool Run()
         {
-            bPruning = true;
+            bRuning = true;
             bCompleted = false;
-
             DateTime StartTime = DateTime.Now;
             try
             {
@@ -921,30 +923,34 @@
                 Result = false;
                 Msg = string.Format("杩愯鍙戦�佷簡鎰忓{0}", ex.Message.Trim());
             }
-
             RunTime = (DateTime.Now - StartTime).TotalMilliseconds;
-
-            bPruning = false;
+            bRuning = false;
             bCompleted = true;
-
             if (Result)
             {
                 total_OK++;
                 Msg = "杩愯鎴愬姛";
             }
             else
+            {
                 total_NG++;
-
+            }
             if (IProcess.dicGlobalVars.ContainsKey($"{Name}.Result"))
+            {
                 IProcess.dicGlobalVars[$"{Name}.Result"] = Result;
+            }
             else
+            {
                 IProcess.dicGlobalVars.TryAdd($"{Name}.Result", Result);
-
+            }
             if (IProcess.dicGlobalVars.ContainsKey($"{Name}.Msg"))
+            {
                 IProcess.dicGlobalVars[$"{Name}.Msg"] = Msg;
+            }
             else
+            {
                 IProcess.dicGlobalVars.TryAdd($"{Name}.Msg", Msg);
-
+            }
             // 鎵嬪姩瑙﹀彂鍨冨溇鍥炴敹
             GC.Collect();
             return Result;

--
Gitblit v1.9.3