From 13c4422bce4e8208826ef422ab4b31c3fe39fb32 Mon Sep 17 00:00:00 2001 From: lu <123456> Date: 星期三, 13 八月 2025 05:59:54 +0800 Subject: [PATCH] 其它入库bug --- DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs | 26 +++++++++++++++++++++----- 1 files changed, 21 insertions(+), 5 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs index 99d6298..bd2410e 100644 --- a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs +++ b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs @@ -77,8 +77,21 @@ /// <exception cref="NotImplementedException"></exception> private void BtnWeight_ItemClick(object sender, ItemClickEventArgs e) { - var frm = new Frm_Work09(); - frm.Show(); + 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> @@ -439,8 +452,9 @@ 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); @@ -491,8 +505,9 @@ 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); } } @@ -517,8 +532,8 @@ lst.Add(btnHelp.Name); lst.Add(btnLayout.Name); lst.Add(btnFont.Name); - lst.Add(btnFont.Name); lst.Add(btnLog.Name); + lst.Add(btnWeight.Name); _enabledBtn(lst); this.currentAction = "edit"; if (btnEdtClick != null) btnEdtClick(this, e); @@ -546,6 +561,7 @@ 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); -- Gitblit v1.9.3