From 3038a0bf9676fcdae04f5c6fce40bb839e76ce91 Mon Sep 17 00:00:00 2001
From: lg <999544862qq.com>
Date: 星期六, 14 九月 2024 11:48:29 +0800
Subject: [PATCH] 基础资料

---
 DevApp/Gs.DevApp/DevFrm/Sys/DocNoRule.cs          |   23 +++++++++++++++++++++++
 DevApp/Gs.DevApp/DevFrm/Sys/SysLog.Designer.cs    |    1 -
 DevApp/Gs.DevApp/DevFrm/Sys/DocNoRule.Designer.cs |    2 +-
 DevApp/Gs.DevApp/DevFrm/Sys/SysLog.cs             |   23 ++++++++++++++++++++++-
 4 files changed, 46 insertions(+), 3 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/Sys/DocNoRule.Designer.cs b/DevApp/Gs.DevApp/DevFrm/Sys/DocNoRule.Designer.cs
index 09809d5..ad2d61b 100644
--- a/DevApp/Gs.DevApp/DevFrm/Sys/DocNoRule.Designer.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Sys/DocNoRule.Designer.cs
@@ -197,7 +197,7 @@
             // 
             // toolBarMenu1
             // 
-            this.toolBarMenu1.actions = null;
+        
             this.toolBarMenu1.Dock = System.Windows.Forms.DockStyle.Top;
             this.toolBarMenu1.isSetBtn = false;
             this.toolBarMenu1.Location = new System.Drawing.Point(0, 0);
diff --git a/DevApp/Gs.DevApp/DevFrm/Sys/DocNoRule.cs b/DevApp/Gs.DevApp/DevFrm/Sys/DocNoRule.cs
index 27d62c3..774d757 100644
--- a/DevApp/Gs.DevApp/DevFrm/Sys/DocNoRule.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Sys/DocNoRule.cs
@@ -21,6 +21,7 @@
             this.toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick;
             this.toolBarMenu1.btnDelClick += ToolBarMenu1_btnDelClick1;
             this.toolBarMenu1.btnEscClick += ToolBarMenu1_btnEscClick;
+            this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick;
             gcMain.MouseDoubleClick += GcMain_MouseDoubleClick;
             gridView1.ColumnFilterChanged += GridView1_ColumnFilterChanged;
             pageBar1.PagerEvent += PageBar1_PagerEvent;
@@ -79,6 +80,28 @@
             getPageList(curPage, pageSize);
         }
         /// <summary>
+        /// 鏌ヨ浜嬩欢
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void ToolBarMenu1_btnQueryClick(object sender, EventArgs e)
+        {
+            Gs.DevApp.UserControl.ShowFilter frm = new Gs.DevApp.UserControl.ShowFilter(gridView1.Columns);
+            frm.UpdateParent += Frm_UpdateParent;
+            frm.ShowDialog();
+        }
+        /// <summary>
+        /// 鏌ヨ鍥炶皟
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void Frm_UpdateParent(object sender, UpdateParentEventArgs e)
+        {
+            string strWhere = e.Data;
+            MessageBox.Show(strWhere);
+        }
+
+        /// <summary>
         /// 鍙栨秷浜嬩欢
         /// </summary>
         /// <param name="sender"></param>
diff --git a/DevApp/Gs.DevApp/DevFrm/Sys/SysLog.Designer.cs b/DevApp/Gs.DevApp/DevFrm/Sys/SysLog.Designer.cs
index 033c178..cde146b 100644
--- a/DevApp/Gs.DevApp/DevFrm/Sys/SysLog.Designer.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Sys/SysLog.Designer.cs
@@ -370,7 +370,6 @@
             // 
             // toolBarMenu1
             // 
-            this.toolBarMenu1.actions = null;
             this.toolBarMenu1.Dock = System.Windows.Forms.DockStyle.Top;
             this.toolBarMenu1.isSetBtn = false;
             this.toolBarMenu1.Location = new System.Drawing.Point(0, 0);
diff --git a/DevApp/Gs.DevApp/DevFrm/Sys/SysLog.cs b/DevApp/Gs.DevApp/DevFrm/Sys/SysLog.cs
index 298ea7c..26ffafa 100644
--- a/DevApp/Gs.DevApp/DevFrm/Sys/SysLog.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Sys/SysLog.cs
@@ -23,6 +23,7 @@
             InitializeComponent();
             this.toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick;
             gridView1.ColumnFilterChanged += GridView1_ColumnFilterChanged;
+            this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick;
             pageBar1.PagerEvent += PageBar1_PagerEvent;
             getPageList(1, UtilityHelper.GetPageSize());
         }
@@ -46,7 +47,27 @@
         {
             getPageList(curPage, pageSize);
         }
-
+        /// <summary>
+        /// 鏌ヨ浜嬩欢
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void ToolBarMenu1_btnQueryClick(object sender, EventArgs e)
+        {
+            Gs.DevApp.UserControl.ShowFilter frm = new Gs.DevApp.UserControl.ShowFilter(gridView1.Columns);
+            frm.UpdateParent += Frm_UpdateParent;
+            frm.ShowDialog();
+        }
+        /// <summary>
+        /// 鏌ヨ鍥炶皟
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void Frm_UpdateParent(object sender, UpdateParentEventArgs e)
+        {
+            string strWhere = e.Data;
+            MessageBox.Show(strWhere);
+        }
         /// <summary>
         /// 鍒锋柊浜嬩欢
         /// </summary>

--
Gitblit v1.9.3