| | |
| | | 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(); |
| | |
| | | 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()); |
| | | |