/// <summary> /// 查询库存 /// </summary> private void QueryStock() { if (checkBox1.Checked) { if (!m_storeServer.GetAllStore(null, true, out m_stockInfo, out m_error)) { MessageDialog.ShowErrorMessage(m_error); return; } } else { if (!m_storeServer.GetNoZeroStore(out m_stockInfo, out m_error)) { MessageDialog.ShowErrorMessage(m_error); return; } } // 用来显示的库存信息 List <View_S_Stock> showStockInfo = null; showStockInfo = m_stockInfo.ToList(); RefreshDataGridView(showStockInfo); }