From 28e0b0a36d0b1a842d8a140c75533c25485b8c70 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期四, 02 一月 2025 08:20:43 +0800 Subject: [PATCH] 采购 --- DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs | 43 ++++++++++++++++++++++++++++++++++++------- 1 files changed, 36 insertions(+), 7 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs index 79fc47c..4c028f1 100644 --- a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs +++ b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs @@ -276,7 +276,7 @@ //_ckService(1.ToString()); } - private async void BtnIn_ItemClick(object sender, ItemClickEventArgs e) + private async void BtnIn_ItemClick(object sender, ItemClickEventArgs e) { if (string.IsNullOrEmpty(xlsInService)) { @@ -416,7 +416,7 @@ { if (btnQueryClick != null) btnQueryClick(this, e); } - + private void BtnEsc_ItemClick(object sender, ItemClickEventArgs e) { if (MsgHelper.AskQuestion("纭畾瑕佽鍙栨秷鍚�?")) @@ -438,6 +438,7 @@ lst.Add(btnLog.Name); lst.Add(btnPiZhun.Name); lst.Add(btnHelp.Name); + lst.Add(btnBoHui.Name); _enabledBtn(lst); this.currentAction = "esc"; if (btnEscClick != null) btnEscClick(this, e); @@ -460,6 +461,16 @@ lst.Add(btnChk.Name); lst.Add(btnFchk.Name); lst.Add(btnDel.Name); + lst.Add(btnJianYan.Name); + lst.Add(btnFjianYan.Name); + lst.Add(btnQuery.Name); + lst.Add(btnLog.Name); + lst.Add(btnZhiLiangChk.Name); + lst.Add(btnZhiLiangFchk.Name); + lst.Add(btnPiZhun.Name); + lst.Add(btnBoHui.Name); + lst.Add(btnDesign.Name); + lst.Add(btnReport.Name); _enabledBtn(lst); } } @@ -483,6 +494,15 @@ _enabledBtn(lst); this.currentAction = "edit"; if (btnEdtClick != null) btnEdtClick(this, e); + Form parentForm = this.FindForm(); + if (parentForm != null) + { + Control specificControl = parentForm.Controls.Find("picCheckBox", true).FirstOrDefault(); + if (specificControl != null) + { + specificControl.Visible = false; + } + } } private void BtnDel_ItemClick(object sender, ItemClickEventArgs e) @@ -503,6 +523,15 @@ _enabledBtn(lst); this.currentAction = "add"; if (btnAddClick != null) btnAddClick(this, e); + Form parentForm = this.FindForm(); + if (parentForm != null) + { + Control specificControl = parentForm.Controls.Find("picCheckBox", true).FirstOrDefault(); + if (specificControl != null) + { + specificControl.Visible = false; + } + } } private void BtnRole_ItemClick(object sender, ItemClickEventArgs e) @@ -519,7 +548,7 @@ if (btnWgClick != null) btnWgClick(this, e); } - + private void BtnbZhongTai_ItemClick(object sender, ItemClickEventArgs e) { @@ -738,7 +767,7 @@ } return false; } - + #region 鍏叡浜嬩欢 @@ -873,18 +902,18 @@ /// 閫氱煡澶囨枡 /// </summary> public event EventHandler btnTzblClick; - + /// <summary> /// 鐘舵�� /// </summary> public event EventHandler btnZhongTaiClick; - + /// <summary> /// 鎵嬪姩瀹屽伐 /// </summary> public event EventHandler btnWgClick; - + #endregion #region 鍏叡灞炴�� -- Gitblit v1.9.3