From dd3fb89fc2f7487e751d33ece46a25dde5e5b31c Mon Sep 17 00:00:00 2001
From: lu <123456>
Date: 星期三, 03 九月 2025 18:28:36 +0800
Subject: [PATCH] 打印
---
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