From 4fce254abf431ffd03167c8476fc453fe48050a4 Mon Sep 17 00:00:00 2001 From: cdk <2441919651@qq.com> Date: 星期四, 11 九月 2025 17:32:10 +0800 Subject: [PATCH] 销售出库申请单,采购退货申请单增加打印功能 --- DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesCgthSq.cs | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesCgthSq.cs b/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesCgthSq.cs index 2dbd766..30cce3a 100644 --- a/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesCgthSq.cs +++ b/DevApp/Gs.DevApp/DevFrm/Ck/Frm_MesCgthSq.cs @@ -30,6 +30,7 @@ toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick; toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick; toolBarMenu1.btnLogClick += ToolBarMenu1_btnLogClick; + toolBarMenu1.btnPrintClick += ToolBarMenu1_btnPrintClick; this.toolBarMenu1.getXmlConfig(); Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1); Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, this, "status", "", (value) => @@ -175,6 +176,27 @@ lbGuid, txt_billNo, gridView1); toolBarMenu1.guidKey = rowGuid; } + 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_CGTH{" + + "" + + "," + "" + + "," + "" + + "," + "" + + "," + "" + + "}"; + this.toolBarMenu1.guidKey = rowGuid; + + } /// <summary> /// 鍒嗛〉浜嬩欢 /// </summary> -- Gitblit v1.9.3