From 6b728cd400122e160805caec5851fca70e4d8f9a Mon Sep 17 00:00:00 2001
From: duheng <2784771470@qq.com>
Date: 星期三, 28 八月 2024 13:59:44 +0800
Subject: [PATCH] 资产界面修改

---
 WinFrmUI/HStation.WinFrmUI.Basic/00-SysTypeManage/SysModuleListBoxCtrl.cs |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/WinFrmUI/HStation.WinFrmUI.Basic/00-SysTypeManage/SysModuleListBoxCtrl.cs b/WinFrmUI/HStation.WinFrmUI.Basic/00-SysTypeManage/SysModuleListBoxCtrl.cs
index 8aa9819..bd085c0 100644
--- a/WinFrmUI/HStation.WinFrmUI.Basic/00-SysTypeManage/SysModuleListBoxCtrl.cs
+++ b/WinFrmUI/HStation.WinFrmUI.Basic/00-SysTypeManage/SysModuleListBoxCtrl.cs
@@ -50,9 +50,8 @@
         private void listBoxControl1_SelectedIndexChanged(object sender, EventArgs e)
         {
             var currentID = this.GetCurrentID();
-            if (currentID == null)
+            if (currentID <= 0)
             {
-                MessageBoxHelper.ShowWarning("璇烽�夋嫨鏁版嵁琛岋紒");
                 return;
             }
             FocusedChangedEvent.Invoke(currentID);
@@ -63,10 +62,10 @@
         //妫�绱�
         private void barCkSearch_CheckedChanged(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
         {
-            /*    if (this.barCkSearch.Checked)
-                    this.listBoxControl1.ShowFindPanel();
-                else
-                    this.listBoxControl1.HideFindPanel();*/
+            if (this.barCkSearch.Checked)
+                layoutControlItemSearch.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
+            else
+                layoutControlItemSearch.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
         }
 
         #endregion 鑿滃崟浜嬩欢

--
Gitblit v1.9.3