From 03f58ebd3b16db1a1bfcb69f7557e3a9b39ba521 Mon Sep 17 00:00:00 2001
From: lu <123456>
Date: 星期五, 22 八月 2025 15:24:55 +0800
Subject: [PATCH] 数据过滤

---
 DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs |   48 ++++++++++++++++--------------------------------
 1 files changed, 16 insertions(+), 32 deletions(-)

diff --git a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
index bd2410e..da1b4e2 100644
--- a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
+++ b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
@@ -3,6 +3,7 @@
 using DevExpress.XtraGrid;
 using DevExpress.XtraGrid.Views.Grid;
 using DevExpress.XtraLayout;
+using Gs.DevApp.DevFrm.QC;
 using Gs.DevApp.DevFrm.Rpt;
 using Gs.DevApp.DevFrm.Sys;
 using Gs.DevApp.DevFrm.Work;
@@ -61,7 +62,7 @@
             btnGongZi.ItemClick += BtnGongZi_ItemClick;
             btnLianBan.ItemClick += BtnLianBan_ItemClick;
             btnGx.ItemClick += BtnGx_ItemClick;
-            btnWeight.ItemClick += BtnWeight_ItemClick;
+            btnBaoGao.ItemClick += BtnBaoGao_ItemClick;
             var lst = new List<string>();
             foreach (BarItem item in barManager1.Items)
                 if (item is BarLargeButtonItem largeButtonItem)
@@ -69,31 +70,10 @@
                         lst.Add(item.Caption);
             actions = lst;
         }
-        /// <summary>
-        /// 鍚姩绉伴噸
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        /// <exception cref="NotImplementedException"></exception>
-        private void BtnWeight_ItemClick(object sender, ItemClickEventArgs e)
-        {
-            bool isOpen = false;
-            foreach (Form form in Application.OpenForms)
-            {
-                if (form is Frm_Work09)
-                {
-                    isOpen = true;
-                    form.Activate(); // 婵�娲诲凡瀛樺湪鐨勭獥浣�
-                    break;
-                }
-            }
-            if (!isOpen)
-            {
-                var form = new Frm_Work09(QcSeason.iqc绉伴噸.ToString());
-                form.Show();
-            }
-        }
 
+
+
+       
         /// <summary>
         ///     鍒濆鍖栨寜閽姸鎬�
         /// </summary>
@@ -412,7 +392,11 @@
             if (btnGxClick != null)
                 btnGxClick(this, e);
         }
-
+        private void BtnBaoGao_ItemClick(object sender, ItemClickEventArgs e)
+        {
+            if (btnBaoGaoClick != null)
+                btnBaoGaoClick(this, e);
+        }
         /// <summary>
         /// 鍙栨秷鏃讹紝杩樺師鎸夐挳鍙敤鎬�
         /// </summary>
@@ -452,9 +436,8 @@
                 lst.Add(btnShouHouFchk.Name);
                 lst.Add(btnGongZi.Name);
                 lst.Add(btnLianBan.Name);
-               // lst.Add(btnEsc.Name);
+                // lst.Add(btnEsc.Name);
                 lst.Add(btnGx.Name);
-                lst.Add(btnWeight.Name);
                 _enabledBtn(lst);
                 this.currentAction = "esc";
                 if (btnEscClick != null) btnEscClick(this, e);
@@ -505,9 +488,8 @@
                     lst.Add(btnOut.Name);
                     lst.Add(btnGongZi.Name);
                     lst.Add(btnLianBan.Name);
-                   // lst.Add(btnEsc.Name);
+                    // lst.Add(btnEsc.Name);
                     lst.Add(btnGx.Name);
-                    lst.Add(btnWeight.Name);
                     _enabledBtn(lst);
                 }
             }
@@ -533,7 +515,6 @@
             lst.Add(btnLayout.Name);
             lst.Add(btnFont.Name);
             lst.Add(btnLog.Name);
-            lst.Add(btnWeight.Name);
             _enabledBtn(lst);
             this.currentAction = "edit";
             if (btnEdtClick != null) btnEdtClick(this, e);
@@ -561,7 +542,6 @@
             lst.Add(btnHelp.Name);
             lst.Add(btnLayout.Name);
             lst.Add(btnFont.Name);
-            lst.Add(btnWeight.Name);
             _enabledBtn(lst);
             this.currentAction = "add";
             if (btnAddClick != null) btnAddClick(this, e);
@@ -1039,6 +1019,10 @@
         /// </summary>
         public event EventHandler btnGxClick;
 
+        /// <summary>
+        /// 鐢熸垚鎶ュ憡
+        /// </summary>
+        public event EventHandler btnBaoGaoClick;
         #endregion
 
         #region 鍏叡灞炴��

--
Gitblit v1.9.3