From 9ce8cb1ee053fb5ad4b51d724a5736e0e27ff0aa Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期五, 23 五月 2025 09:10:52 +0800 Subject: [PATCH] 仓库 --- DevApp/Gs.DevApp/UserControl/ShowRptWizard.cs | 44 ++++++++++++++++++++++---------------------- 1 files changed, 22 insertions(+), 22 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/ShowRptWizard.cs b/DevApp/Gs.DevApp/UserControl/ShowRptWizard.cs index a152a48..972c08a 100644 --- a/DevApp/Gs.DevApp/UserControl/ShowRptWizard.cs +++ b/DevApp/Gs.DevApp/UserControl/ShowRptWizard.cs @@ -1,63 +1,63 @@ -锘縰sing DevExpress.Office.Model; -using DevExpress.XtraEditors; -using DevExpress.XtraLayout.Customization; -using Gs.DevApp.Entity; +锘縰sing DevExpress.XtraEditors; +using DevExpress.XtraWizard; +using Gs.DevApp.DevFrm.Sys; using Gs.DevApp.ToolBox; using Newtonsoft.Json; -using Newtonsoft.Json.Linq; using System; -using System.Data; -using System.Windows.Controls; +using System.ComponentModel; namespace Gs.DevApp.UserControl { - public partial class ShowRptWizard : DevExpress.XtraEditors.XtraForm + public partial class ShowRptWizard : XtraForm { + private readonly string _rptParameter; + private readonly string _rptGuid; - private string _rptParameter; - public ShowRptWizard(string rptParameter) + public ShowRptWizard(string strGuid, string rptParameter) { _rptParameter = rptParameter; + _rptGuid = strGuid; InitializeComponent(); wizardControl1.NextClick += WizardControl1_NextClick; wizardControl1.FinishClick += WizardControl1_FinishClick; } - private void WizardControl1_FinishClick(object sender, System.ComponentModel.CancelEventArgs e) + private void WizardControl1_FinishClick(object sender, + CancelEventArgs e) { var _obj = new { - rptParameter = this._rptParameter, + rptParameter = _rptParameter // rptData = null,鍒濆鏃朵笉鐢ㄨ璁℃ā鏉� }; try { - string strJson = UtilityHelper.HttpPost("", "Report/EdtTemplate", JsonConvert.SerializeObject(_obj)); - ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.ReturnToDynamic(strJson); + var strJson = UtilityHelper.HttpPost("", "Report/EdtTemplate", + JsonConvert.SerializeObject(_obj)); + var _rtn = UtilityHelper.ReturnToDynamic(strJson); if (_rtn.rtnCode > 0) { - Gs.DevApp.DevFrm.Sys.EasyRptDesign frm = new Gs.DevApp.DevFrm.Sys.EasyRptDesign(this._rptParameter); + var frm = new EasyRptDesign(_rptGuid, _rptParameter); frm.Show(); } else { - ToolBox.MsgHelper.ShowError("鎻愮ず锛�" + _rtn.rtnData["outMsg"].ToString()); + MsgHelper.ShowError("鎻愮ず锛�" + _rtn.rtnData["outMsg"].ToString()); } } catch (Exception ex) { - ToolBox.MsgHelper.ShowError("鎻愮ず锛�" + ex.Message.ToString()); + MsgHelper.ShowError("鎻愮ず锛�" + ex.Message); } } - private void WizardControl1_NextClick(object sender, DevExpress.XtraWizard.WizardCommandButtonClickEventArgs e) + private void WizardControl1_NextClick(object sender, + WizardCommandButtonClickEventArgs e) { - if (this.wizardControl1.SelectedPage == this.welcomeWizardPage1) + if (wizardControl1.SelectedPage == welcomeWizardPage1) { - this.lbParameter.Text = "璇ユ姤琛ㄤ娇鐢ㄤ簡濡備笅鍙傛暟锛�" + _rptParameter; - return; + lbParameter.Text = "璇ユ姤琛ㄤ娇鐢ㄤ簡濡備笅鍙傛暟锛�" + _rptParameter; } } - } } \ No newline at end of file -- Gitblit v1.9.3