lu
2025-02-09 47d90c78a5e00f50e804705aa208ff1f264cb4f6
DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
@@ -67,13 +67,18 @@
            if (Parent != null) getNamespace();
        }
        private bool _isCk(int _type) {
        private bool _isCk(int _type)
        {
            Form parentForm = this.FindForm();
            if (parentForm != null)
            {
                PictureBox specificControl = (PictureBox)parentForm.Controls.Find("picCheckBox", true).FirstOrDefault();
                if (specificControl== null)
                    return false;
                if (specificControl.Tag == null)
                    return false;
                if (_type == 1)
                {
                    PictureBox specificControl = (PictureBox)parentForm.Controls.Find("picCheckBox", true).FirstOrDefault();
                    if (specificControl != null)
                    {
                        if (specificControl.Tag.ToString() == "已审核")
@@ -85,7 +90,6 @@
                }
                if (_type == 0)
                {
                    PictureBox specificControl = (PictureBox)parentForm.Controls.Find("picCheckBox", true).FirstOrDefault();
                    if (specificControl != null)
                    {
                        if (specificControl.Tag.ToString() == "未审核")
@@ -262,6 +266,8 @@
        private void BtnFjianYan_ItemClick(object sender, ItemClickEventArgs e)
        {
            bool bl = _isCk(0);
            if (bl) return;
            if (btnFjianYanClick != null)
                btnFjianYanClick(this, e);
            else
@@ -477,6 +483,10 @@
                lst.Add(btnPiZhun.Name);
                lst.Add(btnHelp.Name);
                lst.Add(btnBoHui.Name);
                lst.Add(btnTzbl.Name);
                lst.Add(btnKg.Name);
                lst.Add(btnWg.Name);
                lst.Add(btnZhongTai.Name);
                _enabledBtn(lst);
                this.currentAction = "esc";
                if (btnEscClick != null) btnEscClick(this, e);
@@ -514,6 +524,7 @@
                    lst.Add(btnZhongTai.Name);
                    lst.Add(btnHelp.Name);
                    lst.Add(btnLoad.Name);
                    lst.Add(btnTzbl.Name);
                    _enabledBtn(lst);
                }
            }
@@ -539,7 +550,7 @@
            _enabledBtn(lst);
            this.currentAction = "edit";
            if (btnEdtClick != null) btnEdtClick(this, e);
        }
        private void BtnDel_ItemClick(object sender, ItemClickEventArgs e)
@@ -548,7 +559,7 @@
            if (bl) return;
            if (btnDelClick != null) btnDelClick(this, e);
           // btnEsc.Enabled = false;
            // btnEsc.Enabled = false;
            this.currentAction = "";
        }
@@ -568,7 +579,7 @@
            Form parentForm = this.FindForm();
            if (parentForm != null)
            {
                PictureBox specificControl =(PictureBox) parentForm.Controls.Find("picCheckBox", true).FirstOrDefault();
                PictureBox specificControl = (PictureBox)parentForm.Controls.Find("picCheckBox", true).FirstOrDefault();
                if (specificControl != null)
                {
                    specificControl.Image = global::Gs.DevApp.Properties.Resources.ico_noCheck;
@@ -671,7 +682,6 @@
            var _obj = new
            {
                userGuid = LoginInfoModel.CurrentUser.LoginUserGuid,
                orgGuid = LoginInfoModel.CurrentUser.LoginOrgGuid,
                formNamespace = _formNamespace
            };
            var strReturn = "";