From 00882b1b7952163bf6e2ef3e98286cd1fe22a103 Mon Sep 17 00:00:00 2001 From: cdk <2441919651@qq.com> Date: 星期四, 04 九月 2025 09:24:01 +0800 Subject: [PATCH] Bug修改 --- DevApp/Gs.DevApp/DevFrm/Rpt/BTDetails.cs | 33 +++++++++++++++++++++++++++++++++ 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/Rpt/BTDetails.cs b/DevApp/Gs.DevApp/DevFrm/Rpt/BTDetails.cs index 46ee421..2660475 100644 --- a/DevApp/Gs.DevApp/DevFrm/Rpt/BTDetails.cs +++ b/DevApp/Gs.DevApp/DevFrm/Rpt/BTDetails.cs @@ -35,6 +35,14 @@ }, lbGuid); getPageList(1); pageBar1.PagerEvent += PageBar1_PagerEvent; + + //杩欐槸浠撳簱鏍囪瘑鍗★紝浠呬粎鎵撳嵃 + this.ucBtnPrint101.SetPlButton(false); + this.ucBtnPrint101.btnPrintClick += (s, e) => + { + _print101(); + }; + } private async void GridView1_ColumnFilterChanged(object sender, EventArgs e) { @@ -172,5 +180,30 @@ MsgHelper.Warning("鎻愮ず锛�" + ex.Message); } } + + + /// <summary> + /// 杩欐槸浠撳簱 + /// </summary> + private void _print101() + { + string rowGuid, rowName; + (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, + lbGuid, txt_itemBarcode, gridView1); + ucBtnPrint101.guidKey = rowGuid; + if (rowGuid.Length < 36) + { + Gs.DevApp.ToolBox.MsgHelper.ShowError("璇烽�夋嫨浣犺鎵撳嵃鐨勮锛�"); + this.ucBtnPrint101.rptParameter = "return false"; + return; + } + this.ucBtnPrint101.rptParameter = "rpt_cktm{" + + "" + + "," + "" + + "," + "" + + "," + "" + + "," + "" + + "}"; + } } } \ No newline at end of file -- Gitblit v1.9.3