/// <summary> /// 加载柜台列表 /// </summary> private void LoadCounter() { try { DataSet ds = CounterBLL.GetPagingCounter(QueryCounter, this.m_pageNo, this.m_pageSize, out this.m_rowCount); DataTable allCounter; if (ds == null || ds.Tables[0].Rows.Count == 0) { allCounter = new DataTable(); if (!isFirstInit) { ShowMessageBox.ShowInformation("不存在记录!"); } } else { allCounter = ds.Tables[0]; } this.gridCounter.DataSource = allCounter; } catch (Exception ex) { //写日志 string errCode = "GL-3002"; string errMsg = "加载柜台列表失败!"; VTException exception = new VTException(errCode, errMsg, ex); LogHelper.WriteError(exception.ToString(), exception.InnerException); } isFirstInit = false; }