lu
2025-02-07 4f5d0ddf7702fa491d3a7cb97f2e3c2604826b01
DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
@@ -67,17 +67,32 @@
            if (Parent != null) getNamespace();
        }
        private bool _isCk() {
        private bool _isCk(int _type) {
            Form parentForm = this.FindForm();
            if (parentForm != null)
            {
                PictureBox specificControl = (PictureBox)parentForm.Controls.Find("picCheckBox", true).FirstOrDefault();
                if (specificControl != null)
                if (_type == 1)
                {
                    if (specificControl.Tag.ToString() == "已审核")
                    PictureBox specificControl = (PictureBox)parentForm.Controls.Find("picCheckBox", true).FirstOrDefault();
                    if (specificControl != null)
                    {
                        Gs.DevApp.ToolBox.MsgHelper.ShowInformation("该单据已被审核,无法进行操作!");
                        return true;
                        if (specificControl.Tag.ToString() == "已审核")
                        {
                            Gs.DevApp.ToolBox.MsgHelper.ShowInformation("该单据已被审核,无法进行操作!");
                            return true;
                        }
                    }
                }
                if (_type == 0)
                {
                    PictureBox specificControl = (PictureBox)parentForm.Controls.Find("picCheckBox", true).FirstOrDefault();
                    if (specificControl != null)
                    {
                        if (specificControl.Tag.ToString() == "未审核")
                        {
                            Gs.DevApp.ToolBox.MsgHelper.ShowInformation("该单据未被审核,无法进行操作!");
                            return true;
                        }
                    }
                }
            }
@@ -190,6 +205,8 @@
        private void BtnFchk_ItemClick(object sender, ItemClickEventArgs e)
        {
            bool bl = _isCk(0);
            if (bl) return;
            if (btnFChkClick != null)
            {
                btnFChkClick(this, e);
@@ -199,7 +216,7 @@
        private void BtnChk_ItemClick(object sender, ItemClickEventArgs e)
        {
            bool bl = _isCk();
            bool bl = _isCk(1);
            if (bl) return;
            if (btnChkClick != null)
            {
@@ -245,6 +262,8 @@
        private void BtnFjianYan_ItemClick(object sender, ItemClickEventArgs e)
        {
            bool bl = _isCk(0);
            if (bl) return;
            if (btnFjianYanClick != null)
                btnFjianYanClick(this, e);
            else
@@ -268,7 +287,7 @@
        private void BtnJianYan_ItemClick(object sender, ItemClickEventArgs e)
        {
            bool bl = _isCk();
            bool bl = _isCk(1);
            if (bl) return;
            if (btnJianYanClick != null)
                btnJianYanClick(this, e);
@@ -513,7 +532,7 @@
        private void BtnEdit_ItemClick(object sender, ItemClickEventArgs e)
        {
            bool bl = _isCk();
            bool bl = _isCk(1);
            if (bl) return;
            var lst = new List<string>();
            lst.Add(btnSave.Name);
@@ -527,7 +546,7 @@
        private void BtnDel_ItemClick(object sender, ItemClickEventArgs e)
        {
            bool bl = _isCk();
            bool bl = _isCk(1);
            if (bl) return;
            if (btnDelClick != null) btnDelClick(this, e);
@@ -654,7 +673,6 @@
            var _obj = new
            {
                userGuid = LoginInfoModel.CurrentUser.LoginUserGuid,
                orgGuid = LoginInfoModel.CurrentUser.LoginOrgGuid,
                formNamespace = _formNamespace
            };
            var strReturn = "";