void QueryPolicy(Pagination pagination) { try { var querylist = PolicyManageService.GetSuspendInfos(GetCondition(pagination), item => item.AbbreviateName); var list = from item in querylist select new { CompanyType = item.CompanyType.GetDescription(), item.CompanyId, item.AbbreviateName, SuspendByCompany = item.SuspendByCompany.Join(","), SuspendByPlatform = item.SuspendByPlatform.Join(",") }; grvhang.DataSource = list; grvhang.DataBind(); if (list.Any()) { this.pager.Visible = true; if (pagination.GetRowCount) { this.pager.RowCount = querylist.RowCount; } showempty.Visible = false; grvhang.HeaderRow.TableSection = TableRowSection.TableHeader; } else { showempty.Visible = true; this.pager.Visible = false; } } catch (Exception ex) { ShowExceptionMessage(ex, "查询"); } }