示例#1
0
 private void FillConnectionsGridView()
 {
     try
     {
         DataTable dt = new DataTable();
         dt = VSWebBL.DashboardBL.ConnectionsBL.Ins.GetConnectionsData();
         if (dt.Rows.Count > 0)
         {
             Session["ConnectionsTests"]    = dt;
             ConnectionsGridView.DataSource = dt;
             ConnectionsGridView.Columns.Clear();
             ConnectionsGridView.AutoGenerateColumns = true;
             ConnectionsGridView.KeyFieldName        = "Id";
             ConnectionsGridView.DataBind();
         }
     }
     catch (Exception ex)
     {
         Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex);
         throw ex;
     }
     finally { }
 }
示例#2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     //1/06/2016 sowmya added for VSPLUS-2934
     if (Session["UserPreferences"] != null)
     {
         DataTable UserPreferences = (DataTable)Session["UserPreferences"];
         foreach (DataRow dr in UserPreferences.Rows)
         {
             if (dr[1].ToString() == "ConnectionsHealth|CommunitiesGrid")
             {
                 CommunitiesGrid.SettingsPager.PageSize = Convert.ToInt32(dr[2]);
             }
         }
     }
     if (!IsPostBack)
     {
         HtmlGenericControl body = (HtmlGenericControl)Master.FindControl("Body1");
         body.Attributes.Add("onload", "DoCallback()");
         body.Attributes.Add("onResize", "Resized()");
     }
     else
     {
         if (Session["CompareUsersGrid"] != null)
         {
             CompareUsersGrid.DataSource = (DataTable)Session["CompareUsersGrid"];
             CompareUsersGrid.DataBind();
         }
     }
     FillConnectionsGridView();
     if (ConnectionsGridView.VisibleRowCount > 0)
     {
         int index = ConnectionsGridView.FocusedRowIndex;
         ConnectionsGridView.Selection.UnselectAll();
         if (index > -1)
         {
             //servernamelbldisp.InnerHtml = "";
             ID             = Convert.ToInt32(ConnectionsGridView.GetRowValues(index, "Id").ToString());
             selectedServer = ConnectionsGridView.GetRowValues(index, "ServerName").ToString();
         }
     }
     FillLibrariesGrid();
     FillActivitiesGridView();
     FillActivitiesHeader();
     FillUsersCombo();
     FillBlogsGridView();
     FillBookmarksGridView();
     FillBookmarkHeader();
     FillFilesGridView();
     FillForumsGridView();
     FillWikisGridView();
     FillDailyGridView();
     SetGraphForUsersDaily();
     SetGraphForTop5Tags();
     SetGraphForCommunityTypes();
     SetGraphForMostActiveCommunity();
     SetGraphForManagers();
     SetGraphForPictures();
     SetGraphForJobHierarchy();
     SetGraphForBlogs();
     SetGraphForActivities();
     SetGraphForFiles();
     SetGraphForForums();
     SetGraphForWikis();
     SetGraphForBookmarks();
     SetGraphForTop5Objects();
     SetGraphForTop5MostActiveCommunities();
     FillCommunitiesGrid();
     SetGraphForLibraries();
 }