private void ShowReportLists() { var crcr = new CrissCrossServices(); uxRecentListView.DataSource = crcr.GetUsersRecentRuns(uxHiddenFullUsername.Text, 200); uxRecentListView.DataBind(); }
protected void uxGetHistory_Click(object sender, EventArgs e) { throw new NotImplementedException(); string forUser = uxUsername.Text; var crcr = new CrissCrossServices(); uxRecentListView.DataSource = crcr.GetUsersRecentRuns(forUser, 200); uxRecentListView.DataBind(); }
private void ShowReportLists() { var crcr = new CrissCrossServices(); uxFeaturedReportsTitle.Text = FeaturedReportsTitle; var featuredItems = crcr.GetFeaturedReports(uxHiddenFullUsername.Text); uxFeaturedListView.DataSource = featuredItems; uxFeaturedListView.DataBind(); if (UseReportHistory) { var catalogItems = crcr.GetPopularReportsForUser(uxHiddenFullUsername.Text); uxPopularListView.DataSource = catalogItems; uxPopularListView.DataBind(); if (ShowEveryonesMostUsed) { var globalItems = crcr.GetGloballyPopularReports(uxHiddenFullUsername.Text); uxGlobalPopularListView.DataSource = globalItems; uxGlobalPopularListView.DataBind(); } else { uxEveryonesMostUsedPanel.Visible = false; } uxRecentListView.DataSource = crcr.GetUsersRecentRuns(uxHiddenFullUsername.Text, 5); uxRecentListView.DataBind(); uxCatalogFoldersListView.DataSource = crcr.GetPopularFoldersForUser(uxHiddenFullUsername.Text); uxCatalogFoldersListView.DataBind(); } else { uxUsersMostUsedPanel.Visible = false; uxEveryonesMostUsedPanel.Visible = false; uxUserReportHistoryPanel.Visible = false; } }