상속: Server.Engines.Reports.PersistableObject
예제 #1
0
파일: HtmlRenderer.cs 프로젝트: Nerun/runuo
        public HtmlRenderer(string outputDirectory, StaffHistory history) : this( outputDirectory )
        {
            m_TimeStamp = DateTime.UtcNow;

            m_Objects = new ObjectCollection();

            history.Render(m_Objects);
        }
예제 #2
0
		public HtmlRenderer( string outputDirectory, StaffHistory history ) : this( outputDirectory )
		{
			m_TimeStamp = DateTime.Now;

			m_Objects = new ObjectCollection();

			history.Render( m_Objects );
		}
예제 #3
0
        public static void Initialize()
        {
            m_StatsHistory = new SnapshotHistory();
            m_StatsHistory.Load();

            m_StaffHistory = new StaffHistory();
            m_StaffHistory.Load();

            DateTime now = DateTime.Now;

            DateTime date      = now.Date;
            TimeSpan timeOfDay = now.TimeOfDay;

            m_GenerateTime = date + TimeSpan.FromHours(Math.Ceiling(timeOfDay.TotalHours));

            Timer.DelayCall(TimeSpan.FromMinutes(0.5), TimeSpan.FromMinutes(0.5), new TimerCallback(CheckRegenerate));
        }
예제 #4
0
		public static void Initialize()
		{
			m_StatsHistory = new SnapshotHistory();
			m_StatsHistory.Load();

			m_StaffHistory = new StaffHistory();
			m_StaffHistory.Load();

			DateTime now = DateTime.Now;

			DateTime date = now.Date;
			TimeSpan timeOfDay = now.TimeOfDay;

			m_GenerateTime = date + TimeSpan.FromHours( Math.Ceiling( timeOfDay.TotalHours ) );

			Timer.DelayCall( TimeSpan.FromMinutes( 0.5 ), TimeSpan.FromMinutes( 0.5 ), new TimerCallback( CheckRegenerate ) );
		}
예제 #5
0
        public static void Initialize()
        {
            CommandSystem.Register("GenReports", AccessLevel.Administrator, new CommandEventHandler(GenReports_OnCommand));

            m_StatsHistory = new SnapshotHistory();
            m_StatsHistory.Load();

            m_StaffHistory = new StaffHistory();
            m_StaffHistory.Load();

            DateTime now = DateTime.UtcNow;

            if (!Enabled)
                return;

            DateTime date = now.Date;
            TimeSpan timeOfDay = now.TimeOfDay;

            m_GenerateTime = date + TimeSpan.FromHours(Math.Ceiling(timeOfDay.TotalHours));

            Timer.DelayCall(TimeSpan.FromMinutes(0.5), TimeSpan.FromMinutes(0.5), new TimerCallback(CheckRegenerate));
        }
예제 #6
0
 public int GetPageCount(PageResolution res, DateTime min, DateTime max)
 {
     return(StaffHistory.GetPageCount(m_Pages, res, min, max));
 }