lu
2025-01-02 e6db49c7ec2e2be934c625c48d665fdca04ffaf5
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,19 @@
                    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);
                    lst.Add(btnKg.Name);
                    lst.Add(btnWg.Name);
                    lst.Add(btnZhongTai.Name);
                    _enabledBtn(lst);
                }
            }
@@ -483,6 +497,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 +526,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 +551,7 @@
            if (btnWgClick != null) btnWgClick(this, e);
        }
        private void BtnbZhongTai_ItemClick(object sender, ItemClickEventArgs e)
        {
@@ -738,7 +770,7 @@
            }
            return false;
        }
        #region 公共事件
@@ -873,18 +905,18 @@
        /// 通知备料
        /// </summary>
        public event EventHandler btnTzblClick;
        /// <summary>
        /// 状态
        /// </summary>
        public event EventHandler btnZhongTaiClick;
        /// <summary>
        /// 手动完工
        /// </summary>
        public event EventHandler btnWgClick;
        #endregion
        #region 公共属性