Beispiel #1
0
        public void Render()
        {
            var str = new SimpleTableReport("Game Summary " + Game.ScoreOut());

            str.AddDenisStyle();
            str.SubHeader  = SubHeading();
            str.AnnounceIt = true;
            str.AddColumn(new ReportColumn("C1", "COL01", "{0}"));
            str.AddColumn(new ReportColumn("C2", "COL02", "{0}"));
            str.AddColumn(new ReportColumn("C3", "COL03", "{0}"));
            str.AddColumn(new ReportColumn("C4", "COL04", "{0}"));
            str.AddColumn(new ReportColumn("C5", "COL05", "{0}"));
            str.AddColumn(new ReportColumn("C6", "COL06", "{0}"));
            str.AddColumn(new ReportColumn("C7", "COL07", "{0}"));
            str.AddColumn(new ReportColumn("C8", "COL08", "{0}"));
            str.AddColumn(new ReportColumn("C9", "COL09", "{0}"));
            str.AddColumn(new ReportColumn("C10", "COL10", "{0}"));
            str.AddColumn(new ReportColumn("C11", "COL11", "{0}"));

            str.CustomHeader = SummaryHeader();

            str.LoadBody(BuildTable());
            GenerateFootNote(str);
            str.RenderAsHtml(FileName(), persist: true);
        }
Beispiel #2
0
        public void Render()
        {
            //  might have to load some stuff first ???

            var str = new SimpleTableReport( "Game Summary " + Game.ScoreOut() );
            str.AddDenisStyle();
            str.SubHeader = SubHeading();
            str.AnnounceIt = true;
            str.AddColumn( new ReportColumn( "C1", "COL01", "{0}" ) );
            str.AddColumn( new ReportColumn( "C2", "COL02", "{0}" ) );
            str.AddColumn( new ReportColumn( "C3", "COL03", "{0}" ) );
            str.AddColumn( new ReportColumn( "C4", "COL04", "{0}" ) );
            str.AddColumn( new ReportColumn( "C5", "COL05", "{0}" ) );
            str.AddColumn( new ReportColumn( "C6", "COL06", "{0}" ) );
            str.AddColumn( new ReportColumn( "C7", "COL07", "{0}" ) );
            str.AddColumn( new ReportColumn( "C8", "COL08", "{0}" ) );
            str.AddColumn( new ReportColumn( "C9", "COL09", "{0}" ) );
            str.AddColumn( new ReportColumn( "C10", "COL10", "{0}" ) );
            str.AddColumn( new ReportColumn( "C11", "COL11", "{0}" ) );

            str.CustomHeader = SummaryHeader();

            str.LoadBody( BuildTable() );
            str.RenderAsHtml( FileName(), persist: true );
        }
Beispiel #3
0
        /// <summary>
        ///   Creates the output.
        /// </summary>
        public void Render()
        {
            var homeRatings = Game.HomeNflTeam.Ratings;
            var awayRatings = Game.AwayNflTeam.Ratings;

            Game.LoadPrediction();              // ratings get overwritten!!

            Game.HomeNflTeam.Ratings = homeRatings;
            Game.AwayNflTeam.Ratings = awayRatings;

            var str = new SimpleTableReport("GameProjection " + Game.GameName());

            str.AddDenisStyle();
            str.ColumnHeadings  = true;
            str.DoRowNumbers    = false;
            str.ShowElapsedTime = false;
            str.IsFooter        = false;
            str.AnnounceIt      = AnnounceIt;
            str.AddColumn(new ReportColumn("Team", "TEAM", "{0}"));
            str.AddColumn(new ReportColumn("Rating", "RATING", "{0}"));
            str.AddColumn(new ReportColumn("Score", "SCORE", "{0}", ScoreTotalDelegate));
            str.AddColumn(new ReportColumn("YDp", "YDP", "{0}", true));
            str.AddColumn(new ReportColumn("Tdp", "TDP", "{0}", true));
            str.AddColumn(new ReportColumn("YDr", "YDR", "{0}", true));
            str.AddColumn(new ReportColumn("Tdr", "TDR", "{0}", true));
            str.AddColumn(new ReportColumn("TDd", "TDD", "{0}", true));
            str.AddColumn(new ReportColumn("TDs", "TDS", "{0}", true));
            str.AddColumn(new ReportColumn("FGs", "FG", "{0}", true));
            str.LoadBody(BuildTable());
            str.SubHeader = SubHeading();
            str.FootNote  = Game.PlayerProjectionsHtml();             //  these projections are old
            str.RenderAsHtml(FileName(), true);
        }
        /// <summary>
        ///   Creates the output.
        /// </summary>
        public void Render()
        {
            var homeRatings = Game.HomeNflTeam.Ratings;
            var awayRatings = Game.AwayNflTeam.Ratings;

             Game.LoadPrediction();  // ratings get overwritten!!

              Game.HomeNflTeam.Ratings = homeRatings;
            Game.AwayNflTeam.Ratings = awayRatings;

             var str = new SimpleTableReport( "GameProjection " + Game.GameName() );
             str.AddDenisStyle();
             str.ColumnHeadings = true;
             str.DoRowNumbers = false;
             str.ShowElapsedTime = false;
             str.IsFooter = false;
             str.AnnounceIt = AnnounceIt;
             str.AddColumn( new ReportColumn( "Team",      "TEAM",   "{0}"           ) );
             str.AddColumn( new ReportColumn( "Rating",    "RATING", "{0}"           ) );
             str.AddColumn( new ReportColumn( "Score",     "SCORE",  "{0}", ScoreTotalDelegate           ) );
             str.AddColumn( new ReportColumn( "YDp",       "YDP",    "{0}", true ) );
             str.AddColumn( new ReportColumn( "Tdp",       "TDP",    "{0}", true ) );
             str.AddColumn( new ReportColumn( "YDr",       "YDR",    "{0}", true ) );
             str.AddColumn( new ReportColumn( "Tdr",       "TDR",    "{0}", true     ) );
             str.AddColumn( new ReportColumn( "TDd",       "TDD",    "{0}", true     ) );
             str.AddColumn( new ReportColumn( "TDs",       "TDS",    "{0}", true     ) );
             str.AddColumn( new ReportColumn( "FGs",       "FG",     "{0}", true     ) );
             str.LoadBody( BuildTable() );
             str.SubHeader = SubHeading();
             str.FootNote = Game.PlayerProjectionsHtml();  //  these projections are old
             str.RenderAsHtml( FileName(), true );
        }
Beispiel #5
0
        public override void RenderAsHtml()
        {
            var str = new SimpleTableReport("Run Report");
             str.AddDenisStyle();
             str.ColumnHeadings = true;
             str.DoRowNumbers = false;
             str.ShowElapsedTime = true;
             str.IsFooter = false;
             str.AddColumn( new ReportColumn( "Machine", "MACHINE", "{0}", typeof( String ) ) );
             str.AddColumn( new ReportColumn( "Report", "REPORT", "{0}", typeof( String ) ) );
             str.AddColumn( new ReportColumn( "Finished", "FINISHED", "{0}", typeof( String ) ) );
             str.AddColumn( new ReportColumn( "At", "FINISHAT", "{0}", typeof( String ) ) );
             str.AddColumn( new ReportColumn( "Elapsed", "ELAPSED", "{0}", typeof( string ) ) );

             BuildTable( str );
             //str.SetSortOrder( "FINISHED DESC" );
             str.RenderAsHtml( OutputFilename(), true );
             Finish();
        }
Beispiel #6
0
        public override void RenderAsHtml()
        {
            var str = new SimpleTableReport("Run Report");

            str.AddDenisStyle();
            str.ColumnHeadings  = true;
            str.DoRowNumbers    = false;
            str.ShowElapsedTime = true;
            str.IsFooter        = false;
            str.AddColumn(new ReportColumn("Machine", "MACHINE", "{0}", typeof(String)));
            str.AddColumn(new ReportColumn("Report", "REPORT", "{0}", typeof(String)));
            str.AddColumn(new ReportColumn("Finished", "FINISHED", "{0}", typeof(String)));
            str.AddColumn(new ReportColumn("At", "FINISHAT", "{0}", typeof(String)));
            str.AddColumn(new ReportColumn("Elapsed", "ELAPSED", "{0}", typeof(string)));

            BuildTable(str);
            //str.SetSortOrder( "FINISHED DESC" );
            str.RenderAsHtml(OutputFilename(), true);
            Finish();
        }
        /// <summary>
        ///   Creates the output.
        /// </summary>
        public void Render()
        {
            var fileName       = $"{Utility.OutputDirectory()}players//{Player.PlayerCode}.htm";
            var lastReportDate = GetLastReportDate(fileName);

#if DEBUG
            var rootDataPath = "e:\\tfl\\";
#else
            var rootDataPath = "c:\\tfl";
#endif
            var  dData         = GetDataDate(rootDataPath);
            bool reportIsStale = dData > lastReportDate;
            if (reportIsStale)
            {
                var str = new SimpleTableReport("Player Profile " + Player.PlayerName);
                str.AddDenisStyle();
                str.ColumnHeadings  = true;
                str.DoRowNumbers    = true;
                str.ShowElapsedTime = false;
                str.IsFooter        = false;
                str.AddColumn(new ReportColumn("Week", "WEEK", "{0}"));
                str.AddColumn(new ReportColumn("Team", "TEAM", "{0}"));
                str.AddColumn(new ReportColumn("U-Res", "URES", "{0}"));
                str.AddColumn(new ReportColumn("EP", "EP", "{0:0.0}", true));
                str.AddColumn(new ReportColumn("Matchup", "MATCH", "{0}"));
                str.AddColumn(new ReportColumn("Stats", "STATS", "{0}"));
                str.AddColumn(new ReportColumn("F Pts", "FPTS", "{0}", true));
                str.LoadBody(BuildTable());
                str.SubHeader = SubHeading();
                str.RenderAsHtml(fileName, true);
            }
            else
            {
                Console.WriteLine($"player report for {Player.PlayerName} skipped");
            }
        }
Beispiel #8
0
        public void Render()
        {
            var str = new SimpleTableReport($"Suggested Lineup {Season}:{Week:#0} {LeagueId}");

            str.AddDenisStyle();
            str.ColumnHeadings  = true;
            str.DoRowNumbers    = false;
            str.ShowElapsedTime = false;
            str.IsFooter        = false;
            str.AddColumn(new ReportColumn("Slot", "SLOT", "{0:00}"));
            str.AddColumn(new ReportColumn("Player", "PLAYER", "{0}"));
            str.AddColumn(new ReportColumn("Team", "TEAM", "{0}"));
            str.AddColumn(new ReportColumn("Pos", "POS", "{0}"));
            str.AddColumn(new ReportColumn("RPoints", "PTS", "{0}"));
            str.AddColumn(new ReportColumn("Role", "ROLE", "{0}"));
            str.AddColumn(new ReportColumn("Game", "GAME", "{0}"));
            str.AddColumn(new ReportColumn("OppUnit", "OPPRATE", "{0}"));
            str.AddColumn(new ReportColumn("Spread", "SPREAD", "{0:##.#}"));
            str.AddColumn(new ReportColumn("Total", "TOTAL", "{0:##.#}"));
            str.AddColumn(new ReportColumn("Actual", "ACTUAL", "{0:##}"));
            str.LoadBody(BuildTable());
            str.SetSortOrder("SLOT,PTS DESC");
            str.RenderAsHtml(FileName(), true);
        }
 public void Render()
 {
     var str = new SimpleTableReport(string.Format("Suggested Lineup {0}:{1:#0} {2}", Season, Week, LeagueId));
      str.AddDenisStyle();
      str.ColumnHeadings = true;
      str.DoRowNumbers = false;
      str.ShowElapsedTime = false;
      str.IsFooter = false;
      str.AddColumn(new ReportColumn("Slot", "SLOT", "{0:00}"));
      str.AddColumn(new ReportColumn("Player", "PLAYER", "{0}"));
      str.AddColumn(new ReportColumn("Team", "TEAM", "{0}"));
      str.AddColumn(new ReportColumn("Pos", "POS", "{0}"));
      str.AddColumn(new ReportColumn("RPoints", "PTS", "{0}"));
      str.AddColumn(new ReportColumn("Role", "ROLE", "{0}"));
      str.AddColumn(new ReportColumn("Game", "GAME", "{0}"));
      str.AddColumn(new ReportColumn("OppUnit", "OPPRATE", "{0}"));
      str.AddColumn(new ReportColumn("Spread", "SPREAD", "{0:##.#}"));
      str.AddColumn(new ReportColumn("Total", "TOTAL", "{0:##.#}"));
      str.AddColumn(new ReportColumn("Actual", "ACTUAL", "{0:##}"));
      str.LoadBody(BuildTable());
      str.SetSortOrder( "SLOT,PTS DESC" );
      str.RenderAsHtml(FileName(), true);
 }