From f295cd95416fa3a141ecf4203fab9dc698cc70e4 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期一, 30 十二月 2024 17:01:23 +0800 Subject: [PATCH] 工单排产 --- DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs | 32 +++++++++++++++++++++++++------- 1 files changed, 25 insertions(+), 7 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs index 79fc47c..f0429a8 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("纭畾瑕佽鍙栨秷鍚�?")) @@ -483,6 +483,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 +512,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 +537,7 @@ if (btnWgClick != null) btnWgClick(this, e); } - + private void BtnbZhongTai_ItemClick(object sender, ItemClickEventArgs e) { @@ -738,7 +756,7 @@ } return false; } - + #region 鍏叡浜嬩欢 @@ -873,18 +891,18 @@ /// 閫氱煡澶囨枡 /// </summary> public event EventHandler btnTzblClick; - + /// <summary> /// 鐘舵�� /// </summary> public event EventHandler btnZhongTaiClick; - + /// <summary> /// 鎵嬪姩瀹屽伐 /// </summary> public event EventHandler btnWgClick; - + #endregion #region 鍏叡灞炴�� -- Gitblit v1.9.3