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 |   42 +++++++++++++++++++++++++++++++++++-------
 1 files changed, 35 insertions(+), 7 deletions(-)

diff --git a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
index 5b452bf..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("纭畾瑕佽鍙栨秷鍚�?"))
@@ -439,6 +439,7 @@
                 lst.Add(btnPiZhun.Name);
                 lst.Add(btnHelp.Name);
                 _enabledBtn(lst);
+                this.currentAction = "esc";
                 if (btnEscClick != null) btnEscClick(this, e);
             }
         }
@@ -456,6 +457,9 @@
                     lst.Add(btnAdd.Name);
                     lst.Add(btnEdit.Name);
                     lst.Add(btnEsc.Name);
+                    lst.Add(btnChk.Name);
+                    lst.Add(btnFchk.Name);
+                    lst.Add(btnDel.Name);
                     _enabledBtn(lst);
                 }
             }
@@ -477,7 +481,17 @@
             lst.Add(btnEsc.Name);
             lst.Add(btnHelp.Name);
             _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)
@@ -496,7 +510,17 @@
             lst.Add(btnEsc.Name);
             lst.Add(btnHelp.Name);
             _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)
@@ -513,7 +537,7 @@
             if (btnWgClick != null) btnWgClick(this, e);
         }
 
-       
+
 
         private void BtnbZhongTai_ItemClick(object sender, ItemClickEventArgs e)
         {
@@ -732,7 +756,7 @@
             }
             return false;
         }
- 
+
 
         #region 鍏叡浜嬩欢
 
@@ -867,18 +891,18 @@
         /// 閫氱煡澶囨枡
         /// </summary>
         public event EventHandler btnTzblClick;
- 
+
         /// <summary>
         /// 鐘舵��
         /// </summary>
         public event EventHandler btnZhongTaiClick;
- 
+
         /// <summary>
         /// 鎵嬪姩瀹屽伐
         /// </summary>
         public event EventHandler btnWgClick;
 
-       
+
         #endregion
 
         #region 鍏叡灞炴��
@@ -915,6 +939,10 @@
         /// </summary>
         public string chkParameter { get; set; }
 
+        /// <summary>
+        /// 褰撳墠鐘舵��
+        /// </summary>
+        public string currentAction { get; set; }
         #endregion
 
 

--
Gitblit v1.9.3