From c2248f08e9bdc75cac6a329bf37234c7af17f16c Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期五, 01 十一月 2024 15:20:47 +0800
Subject: [PATCH] 小细节

---
 DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs |  126 ++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 121 insertions(+), 5 deletions(-)

diff --git a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
index 3e93bde..5b1867d 100644
--- a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
+++ b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
@@ -39,15 +39,17 @@
             btnFjianYan.ItemClick += BtnFjianYan_ItemClick;
             btnPiZhun.ItemClick += BtnPiZhun_ItemClick;
             btnLog.ItemClick += BtnLog_ItemClick;
+            btnZhiLiangChk.ItemClick += BtnZhiLiangChk_ItemClick;
+            btnZhiLiangFchk.ItemClick += BtnZhiLiangFchk_ItemClick;
+            btnCaiGouChk.ItemClick += BtnCaiGouChk_ItemClick;
+            btnCaiGouFchk.ItemClick += BtnCaiGouFchk_ItemClick;
             var lst = new List<string>();
             foreach (BarItem item in barManager1.Items)
                 if (item is BarLargeButtonItem largeButtonItem)
-                    if (!string.IsNullOrEmpty(item.Caption))
+                    if (!string.IsNullOrEmpty(item.Caption) && item.Caption != "淇濆瓨" && item.Caption != "鍒锋柊")
                         lst.Add(item.Caption);
             actions = lst;
         }
-
-
 
         /// <summary>
         ///     鍒濆鍖栨寜閽姸鎬�
@@ -56,6 +58,90 @@
         {
             base.OnCreateControl();
             if (Parent != null) getNamespace();
+        }
+
+        private void BtnCaiGouFchk_ItemClick(object sender, ItemClickEventArgs e)
+        {
+            if (btnCaiGouFchkClick != null)
+                btnCaiGouFchkClick(this, e);
+            if (string.IsNullOrEmpty(guidKey))
+            {
+                MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�");
+                return;
+            }
+
+            if (string.IsNullOrEmpty(chkParameter))
+            {
+                MsgHelper.ShowError("娌℃湁鎸囧畾瀹℃牳鍙傛暟锛岃鑱旂郴寮�鍙戜汉鍛樿幏鍙栨敮鎸侊紒");
+                return;
+            }
+
+            if (!MsgHelper.AskQuestion("浣犻�夋嫨浜�1鏉℃暟鎹紝纭畾閲囪喘鍙嶅鏍稿悧锛�"))
+                return;
+            _ckService("-2");
+        }
+
+        private void BtnCaiGouChk_ItemClick(object sender, ItemClickEventArgs e)
+        {
+            if (btnCaiGouChkClick != null)
+                btnCaiGouChkClick(this, e);
+            if (string.IsNullOrEmpty(guidKey))
+            {
+                MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�");
+                return;
+            }
+
+            if (string.IsNullOrEmpty(chkParameter))
+            {
+                MsgHelper.ShowError("娌℃湁鎸囧畾瀹℃牳鍙傛暟锛岃鑱旂郴寮�鍙戜汉鍛樿幏鍙栨敮鎸侊紒");
+                return;
+            }
+
+            if (!MsgHelper.AskQuestion("浣犻�夋嫨浜�1鏉℃暟鎹紝纭畾閲囪喘瀹℃牳鍚楋紵"))
+                return;
+            _ckService("2");
+        }
+
+        private void BtnZhiLiangFchk_ItemClick(object sender, ItemClickEventArgs e)
+        {
+            if (btnZhiLiangFchkClick != null)
+                btnZhiLiangFchkClick(this, e);
+            if (string.IsNullOrEmpty(guidKey))
+            {
+                MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�");
+                return;
+            }
+
+            if (string.IsNullOrEmpty(chkParameter))
+            {
+                MsgHelper.ShowError("娌℃湁鎸囧畾瀹℃牳鍙傛暟锛岃鑱旂郴寮�鍙戜汉鍛樿幏鍙栨敮鎸侊紒");
+                return;
+            }
+
+            if (!MsgHelper.AskQuestion("浣犻�夋嫨浜�1鏉℃暟鎹紝纭畾璐ㄩ噺鍙嶅鏍稿悧锛�"))
+                return;
+            _ckService("-3");
+        }
+
+        private void BtnZhiLiangChk_ItemClick(object sender, ItemClickEventArgs e)
+        {
+            if (btnZhiLiangChkClick != null)
+                btnZhiLiangChkClick(this, e);
+            if (string.IsNullOrEmpty(guidKey))
+            {
+                MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�");
+                return;
+            }
+
+            if (string.IsNullOrEmpty(chkParameter))
+            {
+                MsgHelper.ShowError("娌℃湁鎸囧畾瀹℃牳鍙傛暟锛岃鑱旂郴寮�鍙戜汉鍛樿幏鍙栨敮鎸侊紒");
+                return;
+            }
+
+            if (!MsgHelper.AskQuestion("浣犻�夋嫨浜�1鏉℃暟鎹紝纭畾璐ㄩ噺瀹℃牳鍚楋紵"))
+                return;
+            _ckService("3");
         }
 
         private void BtnFchk_ItemClick(object sender, ItemClickEventArgs e)
@@ -132,7 +218,6 @@
                 btnFjianYanClick(this, e);
             else
                 return;
-
             if (string.IsNullOrEmpty(guidKey))
             {
                 MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�");
@@ -326,6 +411,12 @@
                 lst.Add(btnDesign.Name);
                 lst.Add(btnChk.Name);
                 lst.Add(btnFchk.Name);
+                lst.Add(btnJianYan.Name);
+                lst.Add(btnFjianYan.Name);
+                lst.Add(btnOut.Name);
+                lst.Add(btnIn.Name);
+                lst.Add(btnLog.Name);
+                lst.Add(btnPiZhun.Name);
                 _enabledBtn(lst);
                 if (btnEscClick != null) btnEscClick(this, e);
             }
@@ -522,7 +613,7 @@
                 }
 
                 //榛樿鍚敤鐨勬寜閽�
-                // _enabledList.Add(btnDesign.Name);
+                _enabledList.Add(btnLoad.Name);
                 _enabledBtn(_enabledList);
             }
             catch (Exception ex)
@@ -666,6 +757,29 @@
         /// </summary>
         public event EventHandler btnLogClick;
 
+
+        /// <summary>
+        ///   閲囪喘瀹℃牳
+        /// </summary>
+        public event EventHandler btnCaiGouChkClick;
+
+        /// <summary>
+        ///   閲囪喘鍙嶅鏍�
+        /// </summary>
+        public event EventHandler btnCaiGouFchkClick;
+
+        /// <summary>
+        ///   璐ㄩ噺瀹℃牳
+        /// </summary>
+        public event EventHandler btnZhiLiangChkClick;
+
+
+        /// <summary>
+        ///   璐ㄩ噺鍙嶅鏍�
+        /// </summary>
+        public event EventHandler btnZhiLiangFchkClick;
+
+
         #endregion
 
         #region 鍏叡灞炴��
@@ -703,5 +817,7 @@
         public string chkParameter { get; set; }
 
         #endregion
+
+
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3