From 1a652f0160f9c511c6a11793742dfcc937840954 Mon Sep 17 00:00:00 2001
From: kyy <3283105747@qq.com>
Date: 星期三, 29 十月 2025 11:37:59 +0800
Subject: [PATCH] 1、采购入库多选打印

---
 DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemIns.cs |   43 ++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 42 insertions(+), 1 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemIns.cs b/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemIns.cs
index 8e22894..4a7b96c 100644
--- a/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemIns.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemIns.cs
@@ -306,7 +306,7 @@
         }
 
 
-        /// <summary>
+        /*/// <summary>
         /// 杩欐槸鎵撳嵃
         /// </summary>
         /// <param name="sender"></param>
@@ -332,7 +332,48 @@
             this.toolBarMenu1.guidKey = rowGuid;
 
         }
+*/
 
+        /// <summary>
+        /// 杩欐槸鎵归噺鎵撳嵃
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void ToolBarMenu1_btnPrintClick(object sender, EventArgs e)
+        {
+            System.Text.StringBuilder sb = new System.Text.StringBuilder();
+            gridView1.PostEditor();
+            gridView1.UpdateCurrentRow();
+            DataTable dt = this.gcMain1.DataSource as DataTable;
+            {
+                foreach (DataRow dr in dt.Rows)
+                {
+                    string checkBox = dr["chkInt"].ToString();
+                    string _guid = dr["guid"].ToString();
+                    if (Gs.DevApp.ToolBox.UtilityHelper.ToCheck(checkBox))
+                    {
+                        if (sb.Length > 0)
+                            sb.Append("|");
+                        sb.Append(_guid);
+                    }
+                }
+            }
+            if (string.IsNullOrEmpty(sb.ToString()))
+            {
+                Gs.DevApp.ToolBox.MsgHelper.ShowError("鎻愮ず锛氳鍏堥�夋嫨鎵撳嵃鏁版嵁锛�");
+                this.toolBarMenu1.rptParameter = "return false";
+                return;
+            }
+            this.toolBarMenu1.rptParameter = "rpt_CGRK{"
+                                               + "100"
+                                               + "," + ""
+                                               + "," + ""
+                                                + "," + ""
+                                               + "," + ""
+                                               + "," + sb.ToString()
+                                               + "}";
+            this.toolBarMenu1.guidKey = null;
+        }
 
 
     }

--
Gitblit v1.9.3