From e9269528ae01bc4572b68148b9c801b51f23b669 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周四, 04 9月 2025 10:41:45 +0800
Subject: [PATCH] 查询优化

---
 WMS/WMS/UI/SynthesizeQuery/FrmPVC.cs |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/WMS/WMS/UI/SynthesizeQuery/FrmPVC.cs b/WMS/WMS/UI/SynthesizeQuery/FrmPVC.cs
index 455dee4..40900ae 100644
--- a/WMS/WMS/UI/SynthesizeQuery/FrmPVC.cs
+++ b/WMS/WMS/UI/SynthesizeQuery/FrmPVC.cs
@@ -67,7 +67,7 @@
                     if (res.dateAll == null)
                     {
                         ShowWarningTip(res.msg);
-                        dataGridView1.DataSource = null;
+                        dataGridView1.DataSource = new List<yunneiWCS.VproductStock>();//涓嶈兘璧嬪�间负null锛屽惁鍒欎細瀵艰嚧UI宕╂簝 銆怑ditby shaocx,2025-08-27銆�
                         return;
                     }
                     allData = res.dateAll.ToList();
@@ -98,13 +98,13 @@
                     toolStripLabel_dateTotal.Text = "鎬昏鏁�:0鏉�  ";
                     toolStripLabel_quantity.Text = "鐗╂枡鎬绘暟:0浠�";
 
-                    dataGridView1.DataSource = null;
+                    dataGridView1.DataSource = new List<yunneiWCS.VproductStock>();
                     ShowWarningTip("鑾峰彇鏁版嵁涓虹┖ - 璀﹀憡");
                 }
             }
             catch (Exception ex)
             {
-                dataGridView1.DataSource = null;
+                dataGridView1.DataSource = new List<yunneiWCS.VproductStock>();
                 ShowWarningTip("鏌ヨ鍑洪敊浜� - 璀﹀憡");
                 WZ.Useful.Commons.LogTextHelper.WriteLine("FrmPVC", "btnFind_Click", ex.ToString());
 
@@ -198,7 +198,7 @@
                         ShowErrorTip("鐗╂枡鏄┖鎵樼洏锛屾病鏈夋槑缁嗭紒");
                         return;
                     }
-                    FrmPVClist listView = new FrmPVClist(ss, 1);
+                    FrmPVClist listView = new FrmPVClist(ss, 1, 0);
                     listView.ShowDialog();
                 }
                 else if (dataGridView1.Columns[e.ColumnIndex].Name == "delete")

--
Gitblit v1.9.3