From e88c56e0992f65bac7552d1c42898988dbd79930 Mon Sep 17 00:00:00 2001
From: lu <123456>
Date: 星期三, 30 七月 2025 15:04:39 +0800
Subject: [PATCH] 生产bug
---
DevApp/Gs.DevApp/UserControl/UcBtnPrint.cs | 25 ++++++++++++++++++++-----
1 files changed, 20 insertions(+), 5 deletions(-)
diff --git a/DevApp/Gs.DevApp/UserControl/UcBtnPrint.cs b/DevApp/Gs.DevApp/UserControl/UcBtnPrint.cs
index db18eef..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)
@@ -153,7 +169,6 @@
}
catch (Exception)
{
-
}
return;
}
--
Gitblit v1.9.3