From ac35ba967db863b461f5aee36bb31eec0bc53e49 Mon Sep 17 00:00:00 2001 From: kyy <3283105747@qq.com> Date: 星期五, 12 九月 2025 16:44:21 +0800 Subject: [PATCH] 1、IPQC/fqc 2、通用菜单新增(生成报告) --- DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs index a28e513..2b068ee 100644 --- a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs +++ b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs @@ -58,6 +58,7 @@ btnShouHouFchk.ItemClick += BtnShouHouFchk_ItemClick; btnHb.ItemClick += BtnHb_ItemClick; btnChbg.ItemClick += BtnChbg_ItemClick; + btnBaoGao.ItemClick += BtnBaoGao_ItemClick; var lst = new List<string>(); foreach (BarItem item in barManager1.Items) if (item is BarLargeButtonItem largeButtonItem) @@ -401,6 +402,7 @@ lst.Add(btnShouHouFchk.Name); lst.Add(btnHb.Name); lst.Add(btnChbg.Name); + lst.Add(btnBaoGao.Name); _enabledBtn(lst); this.currentAction = "esc"; if (btnEscClick != null) btnEscClick(this, e); @@ -450,6 +452,7 @@ lst.Add(btnEdit.Name); lst.Add(btnHb.Name); lst.Add(btnChbg.Name); + lst.Add(btnBaoGao.Name); _enabledBtn(lst); } @@ -478,6 +481,7 @@ lst.Add(btnFont.Name); lst.Add(btnFont.Name); lst.Add(btnLog.Name); + lst.Add(btnBaoGao.Name); _enabledBtn(lst); this.currentAction = "edit"; if (btnEdtClick != null) btnEdtClick(this, e); @@ -616,7 +620,11 @@ if (btnChbgClick != null) btnChbgClick(this, e); } - + private void BtnBaoGao_ItemClick(object sender, ItemClickEventArgs e) + { + if (btnBaoGaoClick != null) + btnBaoGaoClick(this, e); + } private void _enabledBtn(List<string> lstBtn) { foreach (BarItem item in barManager1.Items) @@ -1003,6 +1011,11 @@ /// </summary> public event EventHandler btnChbgClick; + /// <summary> + /// 鐢熸垚鎶ュ憡 + /// </summary> + public event EventHandler btnBaoGaoClick; + #endregion #region 鍏叡灞炴�� -- Gitblit v1.9.3