From 641e86dfaeb2eed992a717beb297c0ba84869f6b Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期二, 15 四月 2025 18:08:38 +0800
Subject: [PATCH] checkbox
---
DevApp/Gs.DevApp/UserControl/UcBtnPrint.cs | 26 ++++++++++++--------------
1 files changed, 12 insertions(+), 14 deletions(-)
diff --git a/DevApp/Gs.DevApp/UserControl/UcBtnPrint.cs b/DevApp/Gs.DevApp/UserControl/UcBtnPrint.cs
index 1196a45..a1a7e2d 100644
--- a/DevApp/Gs.DevApp/UserControl/UcBtnPrint.cs
+++ b/DevApp/Gs.DevApp/UserControl/UcBtnPrint.cs
@@ -1,18 +1,8 @@
-锘縰sing DevExpress.Utils.VisualEffects;
-using DevExpress.XtraBars;
-using DevExpress.XtraEditors;
-using Gs.DevApp.DevFrm.Rpt;
+锘縰sing Gs.DevApp.DevFrm.Rpt;
using Gs.DevApp.DevFrm.Sys;
using Gs.DevApp.ToolBox;
using Newtonsoft.Json;
using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Drawing;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using System.Windows.Forms;
namespace Gs.DevApp.UserControl
@@ -25,7 +15,7 @@
btnReport.Click += BtnReport_ItemClick;
btnDesign.Click += BtnDesign_ItemClick;
-
+
}
/// <summary>
/// 鍏抽敭瀛楋紝涓�鑸槸涓婚敭
@@ -65,8 +55,16 @@
_bl = _ckRptService();
if (_bl)
{
- var frm = new RptPreview(guidKey, rptParameter);
- frm.ShowDialog();
+ try
+ {
+ using (Form frm = new RptPreview(guidKey, rptParameter))
+ {
+ frm.ShowDialog();
+ }
+ }
+ catch (Exception)
+ {
+ }
return;
}
--
Gitblit v1.9.3