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 |   32 +++++++++++++++++---------------
 1 files changed, 17 insertions(+), 15 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/Rpt/CKTmkc.cs b/DevApp/Gs.DevApp/DevFrm/Rpt/CKTmkc.cs
index d712f2d..126da9c 100644
--- a/DevApp/Gs.DevApp/DevFrm/Rpt/CKTmkc.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Rpt/CKTmkc.cs
@@ -15,9 +15,13 @@
     {
         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;
@@ -259,24 +263,22 @@
         /// <param name="e"></param>
         private void ToolBarMenu1_btnTBPrintClick(object sender, EventArgs e)
         {
-            //System.Text.StringBuilder sb = new System.Text.StringBuilder();
-            gridView1.PostEditor();
-            gridView1.UpdateCurrentRow();
-            
-            /*if (string.IsNullOrEmpty(sb.ToString()))
+            // 鑾峰彇褰撳墠閫変腑琛� guid
+            string rowGuid, rowName;
+            (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1,
+                lbGuid, txt_itemBarcode, gridView1);
+            if (rowGuid.Length < 36)
             {
-                Gs.DevApp.ToolBox.MsgHelper.ShowError("鎻愮ず锛氳鍏堥�夋嫨鐗╂枡锛�");
+                Gs.DevApp.ToolBox.MsgHelper.ShowError("璇烽�夋嫨浣犺鎵撳嵃鐨勮锛�");
                 this.toolBarMenu1.rptParameter = "return false";
                 return;
-            }*/
-            this.toolBarMenu1.rptParameter = "rpt_TB_Print{"
-                                               + ""
-                                               + "," + ""
-                                               + "," + ""
-                                                + "," + ""
-                                               + "," + ""
-                                               + "," + ""
-                                               + "}";
+            }
+
+            // 澶嶇敤 UcPrintPanel 鐨勫脊绐椾笌鎵撳嵃閫昏緫
+            _palletPrintPanel.TriggerPalletPrint(rowGuid);
+
+            // 闃绘宸ュ叿鏍忛粯璁ょ殑鍐嶆鎵撳嵃娴佺▼
+            this.toolBarMenu1.rptParameter = "return false";
             this.toolBarMenu1.guidKey = null;
         }
     }

--
Gitblit v1.9.3