From d157667c10afbda2cf8005459bffa78f40d1b033 Mon Sep 17 00:00:00 2001
From: lu <123456>
Date: 星期六, 19 七月 2025 14:52:28 +0800
Subject: [PATCH] bug

---
 DevApp/Gs.DevApp/UserControl/UcBtnPrint.cs |   24 ++++++++++++++++++++----
 1 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/DevApp/Gs.DevApp/UserControl/UcBtnPrint.cs b/DevApp/Gs.DevApp/UserControl/UcBtnPrint.cs
index 8dbfded..2f42c04 100644
--- a/DevApp/Gs.DevApp/UserControl/UcBtnPrint.cs
+++ b/DevApp/Gs.DevApp/UserControl/UcBtnPrint.cs
@@ -28,7 +28,7 @@
                     MsgHelper.ShowError("娌℃湁鎸囧畾鎶ヨ〃鍙傛暟锛岃鑱旂郴鎶�鏈紑鍙戜汉鍛橈紒");
                     return;
                 }
-                #region 濡傛灉鏄鎴风殑
+                #region 濡傛灉鏄鎴风殑鍚庣洊鐮�
                 if (rptParameter.Contains("rpt_hgm"))
                 {
                     var _obj = new
@@ -65,9 +65,7 @@
                     { }
                 }
                 #endregion
-
                 _print();
-
             };
             this.btnAll.Click += (s, e) =>
             {
@@ -128,6 +126,11 @@
             return false;
         }
 
+
+        /// <summary>
+        /// 璁剧疆鎵归噺鎸夐挳鍙鎬�
+        /// </summary>
+        /// <param name="blPiLiang"></param>
         public void SetPlButton(bool blPiLiang)
         {
             if (blPiLiang == true)
@@ -137,9 +140,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)

--
Gitblit v1.9.3