From a1125f42a23245ea2e7b737bd237097d8377a2ca Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期六, 12 四月 2025 17:02:52 +0800
Subject: [PATCH] 打印自动计算

---
 DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemQtrk.cs |   20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemQtrk.cs b/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemQtrk.cs
index 43edef3..07b1f2f 100644
--- a/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemQtrk.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemQtrk.cs
@@ -111,10 +111,26 @@
                 }
                 this.ucBtnPrint1.rptParameter = "rpt_Qtrk{" + lbMxGuid.Text.Trim()
                        + "," + ""
-                       + "," + ""
+                       + "," + Gs.DevApp.ToolBox.UtilityHelper.PrintYuLiang(radOut).ToString()
                        + "," + txt_iCount_1.Text.Trim()
                        + "," + txt_psnQty_1.Text.Trim()
                        + "}";
+            };
+
+            //鑷姩璁$畻鎵撳嵃閲�
+            txt_psnQty_1.TextChanged += (s, e) =>
+            {
+                Gs.DevApp.ToolBox.UtilityHelper.PrintJiSuan(this, txt_psnQty_1, txt_iCount_1, txt_kQty.Text.Trim(), radOut);
+            };
+            txt_iCount_1.TextChanged += (s, e) =>
+            {
+                Gs.DevApp.ToolBox.UtilityHelper.PrintJiSuan(this, txt_iCount_1, txt_psnQty_1, txt_kQty.Text.Trim(), radOut);
+            };
+            radOut.SelectedIndexChanged += (s, e) =>
+            {
+                txt_psnQty_1.Text = "";
+                txt_iCount_1.Text = "";
+                radOut.Properties.Items[0].Description = "鍏ㄨ嚜鍔�";
             };
         }
         private void GridView1_ColumnFilterChanged(object sender, EventArgs e)
@@ -682,7 +698,7 @@
                 txtWlmc.Text = row["qd003"].ToString();
                 txtQuantity.Text = row["qd007"].ToString();//鐢宠鎬婚噺
                 txtYdy.Text = row["ydy"].ToString();//宸叉墦鍗版�婚噺
-                txtKdy.Text = row["kdy"].ToString();//鍙墦鍗版�婚噺
+                txt_kQty.Text = row["kdy"].ToString();//鍙墦鍗版�婚噺
             }
         }
         /// <summary>

--
Gitblit v1.9.3