From 8afccee95f065d4d9c2d6800d895878a13667e8b Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期六, 19 四月 2025 09:18:56 +0800
Subject: [PATCH] 打印

---
 DevApp/Gs.DevApp/DevFrm/WOM/Frm_Womdaa.cs |   40 ++++++++++++++++++----------------------
 1 files changed, 18 insertions(+), 22 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/WOM/Frm_Womdaa.cs b/DevApp/Gs.DevApp/DevFrm/WOM/Frm_Womdaa.cs
index ea3b89f..f5f6c7b 100644
--- a/DevApp/Gs.DevApp/DevFrm/WOM/Frm_Womdaa.cs
+++ b/DevApp/Gs.DevApp/DevFrm/WOM/Frm_Womdaa.cs
@@ -70,7 +70,7 @@
             //杩欐槸鍚庣洊鐮侊紝浠呬粎鎵撳嵃锛�
             this.ucBtnPrint100.btnDesignClick += (s, e) =>
             {
-                ucBtnPrint100.rptParameter = "rpt_trace{}";
+                ucBtnPrint100.rptParameter = "rpt_hgm{}";
             };
             this.ucBtnPrint100.btnReportClick += (s, e) =>
             {
@@ -78,21 +78,14 @@
             };
             txt_psnQty_1.TextChanged += (s, e) =>
             {
-                Gs.DevApp.ToolBox.UtilityHelper.PrintJiSuan(this, txt_psnQty_1, txt_iCount_1, txt_kQty.Text.Trim(), radOut);
+                Gs.DevApp.ToolBox.UtilityHelper.PrintJiSuan(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 = "鍏ㄨ嚜鍔�";
+                Gs.DevApp.ToolBox.UtilityHelper.PrintAuto(txt_psnQty_1, txt_iCount_1, radOut);
             };
         }
-
-
 
         private void GridView1_ColumnFilterChanged(object sender, EventArgs e)
         {
@@ -369,9 +362,14 @@
                     //string cjId = dy.daa013;
                     //string xjxt = dy.sjXt;
                     // txt_sjXt.getSuppler(cjId, xjxt);
-                   txt_zQty.Text = dy.daa008;
+                    //鎵樻澘鐮�
+                    txt_zQty.Text = dy.daa008;
                     txt_yQty.Text = dy.yQty;
                     txt_kQty.Text = dy.kQty;
+                    //杩芥函鐮�
+                    txt_zQty98.Text = dy.daa008;
+                    txt_yQty98.Text = dy.yQty98;
+                    txt_kQty98.Text = dy.kQty98;
                     lbGuid.Text = strGuid;
                     List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>();
                     gvList.Add(gvMx1);
@@ -564,16 +562,16 @@
                 this.ucBtnPrint1.rptParameter = "return false";
                 return;
             }
-            if (string.IsNullOrEmpty(txt_iCount_1.Text.Trim()))
+            if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric3(txt_iCount_1.Text.Trim()))
             {
                 Gs.DevApp.ToolBox.MsgHelper.ShowError("璇烽�夋嫨鎵撳嵃鏉$爜寮犳暟锛�");
                 txt_iCount_1.Focus();
                 this.ucBtnPrint1.rptParameter = "return false";
                 return;
             }
-            if (string.IsNullOrEmpty(txt_psnQty_1.Text.Trim()))
+            if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric3(txt_psnQty_1.Text.Trim()))
             {
-                Gs.DevApp.ToolBox.MsgHelper.ShowError("璇烽�夋嫨鍐呭寘瑁呮暟閲忥紒");
+                Gs.DevApp.ToolBox.MsgHelper.ShowError("璇烽�夋嫨鎵撳嵃鏉$爜鏁伴噺锛�");
                 txt_psnQty_1.Focus();
                 this.ucBtnPrint1.rptParameter = "return false";
                 return;
@@ -602,14 +600,15 @@
                 this.ucBtnPrint98.rptParameter = "return false";
                 return;
             }
-            if (string.IsNullOrEmpty(txt_iCount_98.Text.Trim()))
+            if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric3(txt_iCount_98.Text.Trim()))
             {
                 Gs.DevApp.ToolBox.MsgHelper.ShowError("璇烽�夋嫨鎵撳嵃鏉$爜寮犳暟锛�");
                 txt_iCount_98.Focus();
                 this.ucBtnPrint98.rptParameter = "return false";
                 return;
             }
-            this.ucBtnPrint98.rptParameter = "rpt_trace{" + ""
+            this.ucBtnPrint98.rptParameter = "rpt_trace{"
+                   + ""
                    + "," + txt_printRemark98.Text.Trim()
                    + "," + ""
                    + "," + txt_iCount_98.Text.Trim()
@@ -632,9 +631,8 @@
                 this.ucBtnPrint100.rptParameter = "return false";
                 return;
             }
-
-            this.ucBtnPrint100.rptParameter = "rpt_trace{"
-                  + lbGuid.Text.Trim()
+            this.ucBtnPrint100.rptParameter = "rpt_hgm{"
+                  + "100"
                    + "," + ""
                    + "," + ""
                    + "," + ""
@@ -675,8 +673,6 @@
                 }
             }
         }
-
         #endregion
-
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3