Server.Engines.Reports.StaffHistory.ReportTotalPages C# (CSharp) 메소드

ReportTotalPages() 개인적인 메소드

private ReportTotalPages ( StaffInfo staff, System.TimeSpan ts, string title ) : Server.Engines.Reports.Report
staff StaffInfo
ts System.TimeSpan
title string
리턴 Server.Engines.Reports.Report
		private Report ReportTotalPages( StaffInfo[] staff, TimeSpan ts, string title )
		{
			DateTime max = DateTime.Now;
			DateTime min = max - ts;

			Report report = new Report( title + " Staff Report", "400" );

			report.Columns.Add( "65%", "left", "Staff Name" );
			report.Columns.Add( "35%", "center", "Page Count" );

			for ( int i = 0; i < staff.Length; ++i )
				report.Items.Add( staff[i].Display, GetPageCount( staff[i], min, max ) );

			return report;
		}