lu
2024-12-30 f295cd95416fa3a141ecf4203fab9dc698cc70e4
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("确定要要取消吗?"))
@@ -457,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);
                }
            }
@@ -480,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)
@@ -500,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)
@@ -516,7 +537,7 @@
            if (btnWgClick != null) btnWgClick(this, e);
        }
        private void BtnbZhongTai_ItemClick(object sender, ItemClickEventArgs e)
        {
@@ -735,7 +756,7 @@
            }
            return false;
        }
        #region 公共事件
@@ -870,18 +891,18 @@
        /// 通知备料
        /// </summary>
        public event EventHandler btnTzblClick;
        /// <summary>
        /// 状态
        /// </summary>
        public event EventHandler btnZhongTaiClick;
        /// <summary>
        /// 手动完工
        /// </summary>
        public event EventHandler btnWgClick;
        #endregion
        #region 公共属性