From e39e22e12380551c79f99a9c96bb77d5dc3839b1 Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期四, 28 十一月 2024 12:25:33 +0800
Subject: [PATCH] 工况分析优化

---
 WinFrmUI/Yw.WinFrmUI.Hydro.Core/12-monitor/02-value/HydroMonitorValueListCtrl.cs |   19 ++++++++++++++++---
 1 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/12-monitor/02-value/HydroMonitorValueListCtrl.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/12-monitor/02-value/HydroMonitorValueListCtrl.cs
index 167bd7d..460a934 100644
--- a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/12-monitor/02-value/HydroMonitorValueListCtrl.cs
+++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/12-monitor/02-value/HydroMonitorValueListCtrl.cs
@@ -10,8 +10,9 @@
             InitializeComponent();
             this.gridView1.SetNormalEditView(30);
             this.gridView1.RegistCustomDrawRowIndicator(40);
-            this.colRelation.OptionsColumn.AllowEdit = false;
+            this.colVisualName.OptionsColumn.AllowEdit = false;
             this.colPropName.OptionsColumn.AllowEdit = false;
+            this.colUnitName.OptionsColumn.AllowEdit = false;
             this.colDescription.OptionsColumn.AllowEdit = false;
         }
 
@@ -25,12 +26,21 @@
         /// <summary>
         /// 缁戝畾鏁版嵁
         /// </summary>
-        public void SetBindingData(List<HydroMonitorValueViewModel> allValueList)
+        public void SetBindingData(List<HydroMonitorValueViewModel> allMonitorValueList)
         {
             _allBindingList = new BindingList<HydroMonitorValueViewModel>();
-            allValueList?.OrderBy(x => x.SortCode).ForEach(x => _allBindingList.Add(x));
+            allMonitorValueList?.OrderBy(x => x.SortCode).ForEach(x => _allBindingList.Add(x));
             this.hydroMonitorValueViewModelBindingSource.DataSource = _allBindingList;
             this.hydroMonitorValueViewModelBindingSource.ResetBindings(false);
+        }
+
+        /// <summary>
+        /// 璁剧疆瑙嗗浘闈㈡澘
+        /// </summary>
+        public void SetViewBoard()
+        {
+            this.colMonitorValue.OptionsColumn.AllowEdit = false;
+            this.colMonitorValue.ImageOptions.SvgImage = null;
         }
 
         //琛岀偣鍑�
@@ -43,5 +53,8 @@
             }
             this.HydroViewEvent?.Invoke(row.Vmo.Relation);
         }
+
+
+
     }
 }

--
Gitblit v1.9.3