schangxiang@126.com
2025-08-27 f0e8a2a8bb05e1cd234856853f3ba755acb3ba18
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崩溃 【Editby 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());