From 9c38dbf93ea5b7dea6b34b03cb3143812b20147d Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期三, 02 七月 2025 23:05:41 +0800
Subject: [PATCH] BUG

---
 DevApp/Gs.DevApp/DevFrm/WOM/Frm_WomFanGong.cs |   69 ++++++++++++++++++++--------------
 1 files changed, 40 insertions(+), 29 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/WOM/Frm_WomFanGong.cs b/DevApp/Gs.DevApp/DevFrm/WOM/Frm_WomFanGong.cs
index 387ee36..3853c87 100644
--- a/DevApp/Gs.DevApp/DevFrm/WOM/Frm_WomFanGong.cs
+++ b/DevApp/Gs.DevApp/DevFrm/WOM/Frm_WomFanGong.cs
@@ -1,6 +1,7 @@
 锘縰sing DevExpress.Utils.MVVM.Services;
 using DevExpress.XtraGrid.Views.Grid;
 using DevExpress.XtraLayout.Customization;
+using Gs.DevApp.DevFrm.Rpt;
 using Gs.DevApp.Entity;
 using Gs.DevApp.ToolBox;
 using Gs.DevApp.UserControl;
@@ -68,11 +69,48 @@
                 }
             };
 
-            //杩欐槸杩芥函鐮�
+            //杩欐槸鎵撳嵃锛岃繖鍜屽叾瀹冮〉闈㈡槸涓嶄竴鏍风殑锛屼笉鑳藉鍒惰繖閲�
+            this.ucBtnPrint98.SetPlButton(false);
             this.ucBtnPrint98.btnPrintClick += (s, e) =>
             {
-                _print98();
+                string rowGuid = txt_aboutGuid.Text.Trim();
+                if (rowGuid.Length < 36)
+                {
+                    Gs.DevApp.ToolBox.MsgHelper.ShowError("璇烽�夋嫨浣犺鎵撳嵃鐨勮锛�");
+                    this.ucBtnPrint98.rptParameter = "return false";
+                    return;
+                }
+                SelectDeleteBar frm = new SelectDeleteBar(rowGuid, "杩芥函鐮�", lbGuid.Text.Trim());
+                string strCodeList = "";
+                frm.UpdateParent += (ss, ee) =>
+                {
+                    strCodeList = ee.StringSingle;
+                };
+                frm.ShowDialog();
+                if (string.IsNullOrEmpty(strCodeList))
+                    return;
+                try
+                {
+                    string rptParameter = "rpt_trace{"
+                    + "100"
+                    + "," + ""
+                    + "," + ""
+                    + "," + ""
+                    + "," + ""
+                    + "," + strCodeList
+                    + "}";
+                    using (Form rpt = new RptPreview(rowGuid, rptParameter))
+                    {
+                        rpt.ShowDialog();
+                    }
+                    frm.Close();
+                }
+                catch (Exception ex)
+                {
+                    MsgHelper.ShowError(ex.Message);
+                }
             };
+
         }
         private void GridView1_ColumnFilterChanged(object sender, EventArgs e)
         {
@@ -259,33 +297,6 @@
             }
         }
 
-        /// <summary>
-        /// 杩欐槸杩芥函鐮�
-        /// </summary>
-        private void _print98()
-        {
-            string rowGuid = txt_daa001.Text.Trim();
-            if (rowGuid.Length < 36)
-            {
-                Gs.DevApp.ToolBox.MsgHelper.ShowError("璇烽�夋嫨浣犺鎵撳嵃鐨勮锛�");
-                this.ucBtnPrint98.rptParameter = "return false";
-                return;
-            }
-            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{"
-                   + ""
-                   + "," + txt_printRemark98.Text.Trim()
-                   + "," + ""
-                   + "," + txt_iCount_98.Text.Trim()
-                   + "," + 1
-                   + "}";
-        }
 
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3