From fcbd3be5b8cff86da965eaee5f17bd3831cb9a80 Mon Sep 17 00:00:00 2001 From: lu <123456> Date: 星期四, 11 九月 2025 17:47:11 +0800 Subject: [PATCH] bug --- DevApp/Gs.DevApp/DevFrm/User/User.cs | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/User/User.cs b/DevApp/Gs.DevApp/DevFrm/User/User.cs index 44372c0..6a04df1 100644 --- a/DevApp/Gs.DevApp/DevFrm/User/User.cs +++ b/DevApp/Gs.DevApp/DevFrm/User/User.cs @@ -1,5 +1,6 @@ 锘縰sing DevExpress.XtraEditors; using DevExpress.XtraEditors.Controls; +using DevExpress.XtraGrid.Views.Base.ViewInfo; using Gs.DevApp.Entity; using Gs.DevApp.ToolBox; using Gs.DevApp.UserControl; @@ -25,6 +26,7 @@ toolBarMenu1.btnDelClick += ToolBarMenu1_btnDelClick1; toolBarMenu1.btnEscClick += ToolBarMenu1_btnEscClick; toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; + toolBarMenu1.btnPrintClick += ToolBarMenu1_btnPrintClick; this.toolBarMenu1.getXmlConfig(); Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, null, "", "", (value) => { @@ -40,6 +42,29 @@ getPageList(1); pageBar1.PagerEvent += PageBar1_PagerEvent; } + + private void ToolBarMenu1_btnPrintClick(object sender, EventArgs e) + { + //guidKey, rptParameter + string rowGuid, rowName; + (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, + lbGuid, txt_userName, gridView1, "userName"); + if (string.IsNullOrEmpty(rowGuid)) + { + MsgHelper.ShowError("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + this.toolBarMenu1.rptParameter = "rpt_User{}"; + this.toolBarMenu1.guidKey = rowGuid; + //this.ucBtnPrint101.rptParameter = "rpt_cktm{" + // + "" + // + "," + "" + // + "," + "" + // + "," + "" + // + "," + "" + // + "}"; + } + private void GridView1_ColumnFilterChanged(object sender, EventArgs e) { _filterList = Gs.DevApp.ToolBox.UtilityHelper.GetDilter(gridView1.Columns, gridView1); -- Gitblit v1.9.3