cnf
2025-08-27 c884c789edec46084c81ee500a404da2f0685e7d
DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
@@ -56,6 +56,8 @@
            btnCaiWuFchk.ItemClick += BtnCaiWuFchk_ItemClick;
            btnShouHouChk.ItemClick += BtnShouHouChk_ItemClick;
            btnShouHouFchk.ItemClick += BtnShouHouFchk_ItemClick;
            btnHb.ItemClick += BtnHb_ItemClick;
            btnChbg.ItemClick += BtnChbg_ItemClick;
            var lst = new List<string>();
            foreach (BarItem item in barManager1.Items)
                if (item is BarLargeButtonItem largeButtonItem)
@@ -64,7 +66,7 @@
            actions = lst;
        }
        /// <summary>
        ///     初始化按钮状态
        /// </summary>
@@ -397,6 +399,8 @@
                lst.Add(btnCaiGouFchk.Name);
                lst.Add(btnShouHouChk.Name);
                lst.Add(btnShouHouFchk.Name);
                lst.Add(btnHb.Name);
                lst.Add(btnChbg.Name);
                _enabledBtn(lst);
                this.currentAction = "esc";
                if (btnEscClick != null) btnEscClick(this, e);
@@ -443,6 +447,9 @@
                    lst.Add(btnCaiGouFchk.Name);
                    lst.Add(btnShouHouChk.Name);
                    lst.Add(btnShouHouFchk.Name);
                    lst.Add(btnEdit.Name);
                    lst.Add(btnHb.Name);
                    lst.Add(btnChbg.Name);
                    _enabledBtn(lst);
                }
@@ -527,6 +534,19 @@
            if (btnWgClick != null) btnWgClick(this, e);
        }
        private void BtnHb_ItemClick(object sender, ItemClickEventArgs e)
        {
            bool bl = _isCk(1);
            if (bl) return;
            if (btnHbClick != null)
            {
                btnHbClick(this, e);
            }
            return;
        }
        private void BtnbZhongTai_ItemClick(object sender, ItemClickEventArgs e)
        {
            if (btnZhongTaiClick != null) btnZhongTaiClick(this, e);
@@ -590,6 +610,13 @@
            Gs.DevApp.UserControl.SelectFont DevFrm = new SelectFont();
            DevFrm.ShowDialog();
        }
        private void BtnChbg_ItemClick(object sender, ItemClickEventArgs e)
        {
            if (btnChbgClick != null) btnChbgClick(this, e);
        }
        private void _enabledBtn(List<string> lstBtn)
        {
            foreach (BarItem item in barManager1.Items)
@@ -966,6 +993,16 @@
        /// </summary>
        public event EventHandler btnOutClick;
        /// <summary>
        ///    合并
        /// </summary>
        public event EventHandler btnHbClick;
        /// <summary>
        ///    撤回报工
        /// </summary>
        public event EventHandler btnChbgClick;
        #endregion
        #region 公共属性
@@ -1098,7 +1135,6 @@
            }
            return spcList;
        }
        /// <summary>
        /// 读取xml配置,目前配置gcMain1,layoutMx1,加查询条件
        /// </summary>