Server.Engines.Reports.StaffHistory.Render C# (CSharp) Méthode

Render() public méthode

public Render ( Server.Engines.Reports.ObjectCollection objects ) : void
objects Server.Engines.Reports.ObjectCollection
Résultat void
		public void Render( ObjectCollection objects )
		{
			lock ( RenderLock )
			{
				objects.Add( GraphQueueStatus() );

				StaffInfo[] staff = GetStaff();

				BaseInfo.SortRange = TimeSpan.FromDays( 7.0 );
				Array.Sort( staff );

				objects.Add( GraphHourlyPages( m_Pages, PageResolution.None, "New pages by hour", "graph_new_pages_hr" ) );
				objects.Add( GraphHourlyPages( m_Pages, PageResolution.Handled, "Handled pages by hour", "graph_handled_pages_hr" ) );
				objects.Add( GraphHourlyPages( m_Pages, PageResolution.Deleted, "Deleted pages by hour", "graph_deleted_pages_hr" ) );
				objects.Add( GraphHourlyPages( m_Pages, PageResolution.Canceled, "Canceled pages by hour", "graph_canceled_pages_hr" ) );
				objects.Add( GraphHourlyPages( m_Pages, PageResolution.Logged, "Logged-out pages by hour", "graph_logged_pages_hr" ) );

				BaseInfo.SortRange = TimeSpan.FromDays( 1.0 );
				Array.Sort( staff );

				objects.Add( ReportTotalPages( staff, TimeSpan.FromDays(  1.0 ), "1 Day" ) );
				objects.AddRange( (PersistableObject[])ChartTotalPages( staff, TimeSpan.FromDays(  1.0 ), "1 Day", "graph_daily_pages" ) );

				BaseInfo.SortRange = TimeSpan.FromDays( 7.0 );
				Array.Sort( staff );

				objects.Add( ReportTotalPages( staff, TimeSpan.FromDays(  7.0 ), "1 Week" ) );
				objects.AddRange( (PersistableObject[])ChartTotalPages( staff, TimeSpan.FromDays(  7.0 ), "1 Week", "graph_weekly_pages" ) );

				BaseInfo.SortRange = TimeSpan.FromDays( 30.0 );
				Array.Sort( staff );

				objects.Add( ReportTotalPages( staff, TimeSpan.FromDays( 30.0 ), "1 Month" ) );
				objects.AddRange( (PersistableObject[])ChartTotalPages( staff, TimeSpan.FromDays( 30.0 ), "1 Month", "graph_monthly_pages" ) );

				for ( int i = 0; i < staff.Length; ++i )
					objects.Add( GraphHourlyPages( staff[i] ) );
			}
		}

Usage Example

Exemple #1
0
        public HtmlRenderer(string outputDirectory, StaffHistory history) : this( outputDirectory )
        {
            m_TimeStamp = DateTime.UtcNow;

            m_Objects = new ObjectCollection();

            history.Render(m_Objects);
        }
All Usage Examples Of Server.Engines.Reports.StaffHistory::Render