From 03302e55e6a3c830ea310b1ec63e0e2e48985e2e Mon Sep 17 00:00:00 2001
From: wbc <2597324127@qq.com>
Date: 星期四, 13 十一月 2025 17:34:51 +0800
Subject: [PATCH] 更新
---
DevApp/Gs.DevApp/DevFrm/Rpt/CKTmkc.cs | 31 +++++++++++++++++++++++++++++++
1 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/DevApp/Gs.DevApp/DevFrm/Rpt/CKTmkc.cs b/DevApp/Gs.DevApp/DevFrm/Rpt/CKTmkc.cs
index feab3b7..126da9c 100644
--- a/DevApp/Gs.DevApp/DevFrm/Rpt/CKTmkc.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Rpt/CKTmkc.cs
@@ -15,12 +15,17 @@
{
string _webServiceName = "Ck/";
List<FilterEntity> _filterList = new List<FilterEntity>();
+ // 鎵樻澘鎵撳嵃闈㈡澘锛堝鐢ㄨ緭鍏ュ脊绐椾笌鍙傛暟鏋勯�狅級
+ private Gs.DevApp.UserControl.UcPrintPanel _palletPrintPanel;
public CKTmkc()
{
InitializeComponent();
+ // 鍒濆鍖栨墭鏉挎墦鍗伴潰鏉匡紙涓嶅繀鍙鍖栨坊鍔狅紝浠呭鐢ㄥ叾閫昏緫锛�
+ _palletPrintPanel = new Gs.DevApp.UserControl.UcPrintPanel();
this.toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick;
this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick;
toolBarMenu1.btnPrintClick += ToolBarMenu1_btnPrintClick;
+ toolBarMenu1.btnTBPrintClick += ToolBarMenu1_btnTBPrintClick;
this.toolBarMenu1.getXmlConfig();
Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, this, "", "", (value) =>
{
@@ -250,5 +255,31 @@
+ "}";
this.toolBarMenu1.guidKey = null;
}
+
+ /// <summary>
+ /// 杩欐槸鎵樻澘鎵撳嵃
+ /// </summary>
+ /// <param name="sender"></param>
+ /// <param name="e"></param>
+ private void ToolBarMenu1_btnTBPrintClick(object sender, EventArgs e)
+ {
+ // 鑾峰彇褰撳墠閫変腑琛� guid
+ string rowGuid, rowName;
+ (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1,
+ lbGuid, txt_itemBarcode, gridView1);
+ if (rowGuid.Length < 36)
+ {
+ Gs.DevApp.ToolBox.MsgHelper.ShowError("璇烽�夋嫨浣犺鎵撳嵃鐨勮锛�");
+ this.toolBarMenu1.rptParameter = "return false";
+ return;
+ }
+
+ // 澶嶇敤 UcPrintPanel 鐨勫脊绐椾笌鎵撳嵃閫昏緫
+ _palletPrintPanel.TriggerPalletPrint(rowGuid);
+
+ // 闃绘宸ュ叿鏍忛粯璁ょ殑鍐嶆鎵撳嵃娴佺▼
+ this.toolBarMenu1.rptParameter = "return false";
+ this.toolBarMenu1.guidKey = null;
+ }
}
}
\ No newline at end of file
--
Gitblit v1.9.3