From 650fe9e42e3de66be29769da72cc755273246dd9 Mon Sep 17 00:00:00 2001 From: 啊鑫 <t2856754968@163.com> Date: 星期五, 12 九月 2025 16:23:04 +0800 Subject: [PATCH] 更新优化代码 --- DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesDeliver.cs | 37 +++++++++++++++++++++++++++++-------- 1 files changed, 29 insertions(+), 8 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesDeliver.cs b/DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesDeliver.cs index 9f50dd4..e43287d 100644 --- a/DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesDeliver.cs +++ b/DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesDeliver.cs @@ -1,17 +1,15 @@ -using DevExpress.XtraEditors; -using Gs.DevApp.DevFrm.Sales; -using Gs.DevApp.Entity; -using Gs.DevApp.ToolBox; -using Gs.DevApp.UserControl; -using Newtonsoft.Json; -using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Data; using System.Threading.Tasks; using System.Windows.Forms; +using Gs.DevApp.Entity; +using Gs.DevApp.ToolBox; +using Gs.DevApp.UserControl; +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; -namespace Gs.DevApp.DevFrm +namespace Gs.DevApp.DevFrm.Sales { public partial class Frm_SalesDeliver : DevExpress.XtraEditors.XtraForm { @@ -32,6 +30,7 @@ toolBarMenu1.btnLogClick += ToolBarMenu1_btnLogClick; toolBarMenu1.btnCaiWuChkClick += ToolBarMenu1_btnCaiWuChkClick; toolBarMenu1.btnCaiWuFchkClick += ToolBarMenu1_btnCaiWuFchkClick; + toolBarMenu1.btnPrintClick += ToolBarMenu1_btnPrintClick; this.toolBarMenu1.getXmlConfig(); Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1); Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, this, "chkStatus", "", (value) => @@ -160,6 +159,28 @@ getPageList(1); } + private void ToolBarMenu1_btnPrintClick(object sender, EventArgs e) + { + //guidKey, rptParameter + string rowGuid, rowName; + (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, + lbGuid, txt_billNo, gridView1, "billNo"); + if (string.IsNullOrEmpty(rowGuid)) + { + MsgHelper.ShowError("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + this.toolBarMenu1.rptParameter = "rpt_XSCK{" + + "" + + "," + "" + + "," + "" + + "," + "" + + "," + "" + + "}"; + this.toolBarMenu1.guidKey = rowGuid; + + } + /// <summary> /// 鍙栨秷浜嬩欢 /// </summary> -- Gitblit v1.9.3