From 3ba209dab53170b3450ceeaea07f9499790a56a5 Mon Sep 17 00:00:00 2001 From: lu <123456> Date: 星期二, 15 七月 2025 16:01:53 +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