From d1104a30df234dc5e28703ea2d9ea57717005442 Mon Sep 17 00:00:00 2001
From: lu <123456>
Date: 星期三, 16 七月 2025 09:57:21 +0800
Subject: [PATCH] bug

---
 DevApp/Gs.DevApp/UserControl/UcBtnPrint.cs |   22 +++++++++++++++++++++-
 1 files changed, 21 insertions(+), 1 deletions(-)

diff --git a/DevApp/Gs.DevApp/UserControl/UcBtnPrint.cs b/DevApp/Gs.DevApp/UserControl/UcBtnPrint.cs
index 8dbfded..bbc2590 100644
--- a/DevApp/Gs.DevApp/UserControl/UcBtnPrint.cs
+++ b/DevApp/Gs.DevApp/UserControl/UcBtnPrint.cs
@@ -128,6 +128,11 @@
             return false;
         }
 
+
+        /// <summary>
+        /// 璁剧疆鎵归噺鎸夐挳鍙鎬�
+        /// </summary>
+        /// <param name="blPiLiang"></param>
         public void SetPlButton(bool blPiLiang)
         {
             if (blPiLiang == true)
@@ -137,9 +142,22 @@
         }
 
         /// <summary>
+        /// 璁剧疆纭畾鎸夐挳鍙鎬�
+        /// </summary>
+        /// <param name="blPiLiang"></param>
+        public void SetPrintButton(bool blPiLiang)
+        {
+            if (blPiLiang == true)
+                this.lay1.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
+            else
+                this.lay1.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
+        }
+
+        /// <summary>
         /// 
         /// </summary>
-        private void _print() {
+        private void _print()
+        {
             var _bl = false;
             _bl = _ckRptService();
             if (_bl)
@@ -153,10 +171,12 @@
                 }
                 catch (Exception)
                 {
+
                 }
                 return;
             }
             MsgHelper.ShowError("娌℃湁璁捐妯℃澘锛岃鍏堣璁℃ā鏉匡紒");
         }
+
     }
 }

--
Gitblit v1.9.3