/// <summary> /// Looks at the EP xml to dump out a report /// </summary> public void RosterExperience() { Utility.Announce("NFLRosterReport.RosterExperience - creating simple report"); CheckPreRequisites(); var str = new SimpleTableReport(string.Format("Roster Experience {0}", Utility.CurrentSeason())); str.AddStyle( "#container { text-align: left; background-color: #ccc; margin: 0 auto; border: 1px solid #545454; width: 641px; padding:10px; font: 13px/19px Trebuchet MS, Georgia, Times New Roman, serif; }"); str.AddStyle("#main { margin-left:1em; }"); str.AddStyle("#dtStamp { font-size:0.8em; }"); str.AddStyle(".end { clear: both; }"); str.AddStyle(".gponame { color:white; background:black }"); str.ColumnHeadings = true; str.DoRowNumbers = true; str.ShowElapsedTime = false; str.IsFooter = false; str.AddColumn(new ReportColumn("Team", "TEAM", "{0}", typeof(String))); str.AddColumn(new ReportColumn("Player", "PLAYER", "{0}", typeof(String))); str.AddColumn(new ReportColumn("Unit", "UNIT", "{0}", typeof(String))); str.AddColumn(new ReportColumn("EP", "EP", "{0}", typeof(Int32), true)); BuildTable(str); str.SetSortOrder("EP DESC"); str.RenderAsHtml( string.Format("{0}Experience-{1}-{2}.htm", Utility.OutputDirectory(), Utility.CurrentSeason(), Utility.CurrentWeek()), true); }
/// <summary> /// Renders the object as a simple HTML report. /// </summary> public void Render() { MetricsBase = new MetricsBase(new PreStyleBreakdown(), Season) { DoBreakdowns = true }; MetricsBase.Load(Season, skipPostseason: true); TeamList = MetricsBase.TeamList; var str = new SimpleTableReport(string.Format("Balance Report {0}", Season)); str.AddStyle("#container { text-align: left; background-color: #ccc; margin: 0 auto; border: 1px solid #545454; width: 641px; padding:10px; font: 13px/19px Trebuchet MS, Georgia, Times New Roman, serif; }"); str.AddStyle("#main { margin-left:1em; }"); str.AddStyle("#dtStamp { font-size:0.8em; }"); str.AddStyle(".end { clear: both; }"); str.AddStyle(".gponame { color:white; background:black }"); str.ColumnHeadings = true; str.DoRowNumbers = true; str.ShowElapsedTime = false; str.IsFooter = false; str.AddColumn(new ReportColumn("Team", "TEAM", "{0}", typeof(String))); str.AddColumn(new ReportColumn("Rating", "RATING", "{0}", typeof(String))); str.AddColumn(new ReportColumn("Plays", "PLAYS", "{0}", typeof(Int32), true)); str.AddColumn(new ReportColumn("Passes", "PASSES", "{0}", typeof(Int32), true)); str.AddColumn(new ReportColumn("Runs", "RUNS", "{0}", typeof(Int32), true)); str.AddColumn(new ReportColumn("Pass%", "PPERCENT", "{0:0.00}", typeof(decimal), false)); str.AddColumn(new ReportColumn("Run%", "RPERCENT", "{0:0.00}", typeof(decimal), false)); str.AddColumn(new ReportColumn("Tdp", "TDPASSES", "{0}", typeof(string))); str.AddColumn(new ReportColumn("Tdr", "TDRUNS", "{0}", typeof(String))); BuildTable(str); str.SetSortOrder("PASSES DESC"); str.RenderAsHtml(OutputFilename(), true); }
/// <summary> /// Renders the object as a simple HTML report. /// </summary> public void Render() { MetricsBase = new MetricsBase(new PreStyleBreakdown(), Season) { DoBreakdowns = true }; MetricsBase.Load(Season, skipPostseason:true); TeamList = MetricsBase.TeamList; var str = new SimpleTableReport( string.Format( "Balance Report {0}", Season ) ); str.AddStyle( "#container { text-align: left; background-color: #ccc; margin: 0 auto; border: 1px solid #545454; width: 641px; padding:10px; font: 13px/19px Trebuchet MS, Georgia, Times New Roman, serif; }" ); str.AddStyle( "#main { margin-left:1em; }" ); str.AddStyle( "#dtStamp { font-size:0.8em; }" ); str.AddStyle( ".end { clear: both; }" ); str.AddStyle( ".gponame { color:white; background:black }" ); str.ColumnHeadings = true; str.DoRowNumbers = true; str.ShowElapsedTime = false; str.IsFooter = false; str.AddColumn( new ReportColumn( "Team", "TEAM", "{0}", typeof( String ) ) ); str.AddColumn( new ReportColumn( "Rating", "RATING", "{0}", typeof( String ) ) ); str.AddColumn( new ReportColumn( "Plays", "PLAYS", "{0}", typeof( Int32 ), true ) ); str.AddColumn( new ReportColumn( "Passes", "PASSES", "{0}", typeof( Int32 ), true ) ); str.AddColumn( new ReportColumn( "Runs", "RUNS", "{0}", typeof( Int32 ), true ) ); str.AddColumn( new ReportColumn( "Pass%", "PPERCENT", "{0:0.00}", typeof( decimal ), false ) ); str.AddColumn( new ReportColumn( "Run%", "RPERCENT", "{0:0.00}", typeof( decimal ), false ) ); str.AddColumn( new ReportColumn( "Tdp", "TDPASSES", "{0}", typeof( string ) ) ); str.AddColumn( new ReportColumn( "Tdr", "TDRUNS", "{0}", typeof( String ) ) ); BuildTable( str ); str.SetSortOrder( "PASSES DESC"); str.RenderAsHtml( OutputFilename(), true ); }
public void RenderTeam(NflTeam team) { if (team.MetricsHt == null) { LoadTeam(team, team.TeamCode); } var metricsHt = team.MetricsHt; var str = new SimpleTableReport(string.Format("Metrics-{0}", team.TeamCode)); str.AddStyle("#container { text-align: left; background-color: #ccc; margin: 0 auto; border: 1px solid #545454; width: 761px; padding:10px; font: 13px/19px Trebuchet MS, Georgia, Times New Roman, serif; }"); str.AddStyle("#main { margin-left:1em; }"); str.AddStyle("#dtStamp { font-size:0.8em; }"); str.AddStyle(".end { clear: both; }"); str.AddStyle(".gponame { color:white; background:black }"); str.ColumnHeadings = true; str.DoRowNumbers = true; str.ShowElapsedTime = false; str.IsFooter = false; str.AddColumn(new ReportColumn("Week", "WeekSeed", "{0}", typeof(String), false)); str.AddColumn(new ReportColumn("OffTDp", "OffTDp", "{0}", typeof(Int32), true)); str.AddColumn(new ReportColumn("Mult", "AvgOffTDp", "{0:#.#}", typeof(Decimal), false)); str.AddColumn(new ReportColumn("OffTDr", "OFFTDR", "{0}", typeof(Int32), true)); str.AddColumn(new ReportColumn("Mult", "AvgOffTDr", "{0:#.#}", typeof(Decimal), false)); str.AddColumn(new ReportColumn("OffSAKa", "OFFSAKa", "{0}", typeof(Decimal), true)); str.AddColumn(new ReportColumn("Mult", "AvgOffSaka", "{0:#.#}", typeof(Decimal), false)); str.AddColumn(new ReportColumn("DefTDpa", "DefTDpa", "{0}", typeof(Int32), true)); str.AddColumn(new ReportColumn("Mult", "AvgDefTDp", "{0:#.#}", typeof(Decimal), false)); str.AddColumn(new ReportColumn("DefTDra", "DEFTDRa", "{0}", typeof(Int32), true)); str.AddColumn(new ReportColumn("Mult", "AvgDefTDr", "{0:#.#}", typeof(Decimal), false)); str.AddColumn(new ReportColumn("DefSAK", "DEFSAK", "{0}", typeof(Decimal), true)); str.AddColumn(new ReportColumn("Mult", "AvgDefSak", "{0:#.#}", typeof(Decimal), false)); BuildTable(str, metricsHt, team); str.SetSortOrder("WeekSeed"); str.RenderAsHtml(string.Format("{0}Metrics-{1}.htm", Utility.OutputDirectory(), team.TeamCode), true); }
/// <summary> /// Creates the output. /// </summary> public void Render() { var str = new SimpleTableReport("GameProjection " + Game.GameName()); str.AddStyle("#container { text-align: left; background-color: #ccc; margin: 0 auto; border: 1px solid #545454; width: 641px; padding:10px; font: 13px/19px Trebuchet MS, Georgia, Times New Roman, serif; }"); str.AddStyle("#main { margin-left:1em; }"); str.AddStyle("#dtStamp { font-size:0.8em; }"); str.AddStyle(".end { clear: both; }"); str.AddStyle(".gponame { color:white; background:black }"); str.AddStyle("label { display:block; float:left; width:130px; padding: 3px 5px; margin: 0px 0px 5px 0px; text-align:right; }"); str.AddStyle("value { display:block; float:left; width:100px; padding: 3px 5px; margin: 0px 0px 5px 0px; text-align:left; font-weight: bold; color:blue }"); str.AddStyle("#notes { float:right; height:auto; width:308px; font-size: 88%; background-color: #ffffe1; border: 1px solid #666666; padding: 5px; margin: 0px 0px 10px 10px; color:#666666 }"); str.AddStyle("div.notes H4 { background-image: url(images/icon_info.gif); background-repeat: no-repeat; background-position: top left; padding: 3px 0px 3px 27px; border-width: 0px 0px 1px 0px; border-style: solid; border-color: #666666; color: #666666; font-size: 110%;}"); str.ColumnHeadings = true; str.DoRowNumbers = false; str.ShowElapsedTime = false; str.IsFooter = false; str.AnnounceIt = false; str.AddColumn(new ReportColumn("Team", "TEAM", "{0}")); str.AddColumn(new ReportColumn("Rating", "RATING", "{0}")); str.AddColumn(new ReportColumn("Score", "SCORE", "{0}")); 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.RenderAsHtml(FileName(), true); }
/// <summary> /// Creates the output. /// </summary> public void Render() { var str = new SimpleTableReport("Player Profile " + Player.PlayerName); str.AddStyle("#container { text-align: left; background-color: #ccc; margin: 0 auto; border: 1px solid #545454; width: 641px; padding:10px; font: 13px/19px Trebuchet MS, Georgia, Times New Roman, serif; }"); str.AddStyle("#main { margin-left:1em; }"); str.AddStyle("#dtStamp { font-size:0.8em; }"); str.AddStyle(".end { clear: both; }"); str.AddStyle(".gponame { color:white; background:black }"); str.AddStyle("label { display:block; float:left; width:130px; padding: 3px 5px; margin: 0px 0px 5px 0px; text-align:right; }"); str.AddStyle("value { display:block; float:left; width:100px; padding: 3px 5px; margin: 0px 0px 5px 0px; text-align:left; font-weight: bold; color:blue }"); str.AddStyle("#notes { float:right; height:auto; width:308px; font-size: 88%; background-color: #ffffe1; border: 1px solid #666666; padding: 5px; margin: 0px 0px 10px 10px; color:#666666 }"); str.AddStyle("div.notes H4 { background-image: url(images/icon_info.gif); background-repeat: no-repeat; background-position: top left; padding: 3px 0px 3px 27px; border-width: 0px 0px 1px 0px; border-style: solid; border-color: #666666; color: #666666; font-size: 110%;}"); 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.LoadBody(BuildTable()); str.SubHeader = SubHeading(); str.RenderAsHtml(string.Format("{0}players//{1}.htm", Utility.OutputDirectory(), Player.PlayerCode), true); }
public void Render() { var str = new SimpleTableReport("Tipping Report " + m_Season); str.AddStyle("#container { text-align: left; background-color: #ccc; margin: 0 auto; border: 1px solid #545454; width: 641px; padding:10px; font: 13px/19px Trebuchet MS, Georgia, Times New Roman, serif; }"); str.AddStyle("#main { margin-left:1em; }"); str.AddStyle("#dtStamp { font-size:0.8em; }"); str.AddStyle(".end { clear: both; }"); str.AddStyle(".gponame { color:white; background:black }"); str.AddStyle("label { display:block; float:left; width:130px; padding: 3px 5px; margin: 0px 0px 5px 0px; text-align:right; }"); str.AddStyle("value { display:block; float:left; width:100px; padding: 3px 5px; margin: 0px 0px 5px 0px; text-align:left; font-weight: bold; color:blue }"); str.AddStyle("#notes { float:right; height:auto; width:308px; font-size: 88%; background-color: #ffffe1; border: 1px solid #666666; padding: 5px; margin: 0px 0px 10px 10px; color:#666666 }"); str.AddStyle("div.notes H4 { background-image: url(images/icon_info.gif); background-repeat: no-repeat; background-position: top left; padding: 3px 0px 3px 27px; border-width: 0px 0px 1px 0px; border-style: solid; border-color: #666666; color: #666666; font-size: 110%;}"); str.ColumnHeadings = true; str.DoRowNumbers = false; str.ShowElapsedTime = false; str.IsFooter = false; str.AddColumn(new ReportColumn("Wk", "WEEK", "{0}", typeof(String))); str.AddColumn(new ReportColumn("G", "GAMES", "{0}", typeof(Int32), true)); str.AddColumn(new ReportColumn("Spr", "SPREAD", "{0}", typeof(Int32), true)); str.AddColumn(new ReportColumn("MyT", "MYTIPS", "{0}", typeof(Int32), true)); str.AddColumn(new ReportColumn("ATS", "ATS", "{0}", typeof(Int32), true)); str.AddColumn(new ReportColumn("H", "HOME", "{0}", typeof(Int32), true)); BuildTable(str); str.RenderAsHtml(string.Format("{0}//tipping{1}.htm", Utility.OutputDirectory(), m_Season), true); }
/// <summary> /// Creates the output. /// </summary> public void Render() { var str = new SimpleTableReport( "Player Profile " + Player.PlayerName ); str.AddStyle( "#container { text-align: left; background-color: #ccc; margin: 0 auto; border: 1px solid #545454; width: 641px; padding:10px; font: 13px/19px Trebuchet MS, Georgia, Times New Roman, serif; }" ); str.AddStyle( "#main { margin-left:1em; }" ); str.AddStyle( "#dtStamp { font-size:0.8em; }" ); str.AddStyle( ".end { clear: both; }" ); str.AddStyle( ".gponame { color:white; background:black }" ); str.AddStyle( "label { display:block; float:left; width:130px; padding: 3px 5px; margin: 0px 0px 5px 0px; text-align:right; }" ); str.AddStyle( "value { display:block; float:left; width:100px; padding: 3px 5px; margin: 0px 0px 5px 0px; text-align:left; font-weight: bold; color:blue }" ); str.AddStyle( "#notes { float:right; height:auto; width:308px; font-size: 88%; background-color: #ffffe1; border: 1px solid #666666; padding: 5px; margin: 0px 0px 10px 10px; color:#666666 }" ); str.AddStyle( "div.notes H4 { background-image: url(images/icon_info.gif); background-repeat: no-repeat; background-position: top left; padding: 3px 0px 3px 27px; border-width: 0px 0px 1px 0px; border-style: solid; border-color: #666666; color: #666666; font-size: 110%;}" ); 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( string.Format("{0}players//{1}.htm", Utility.OutputDirectory(), Player.PlayerCode), true); }
public void Render() { SimpleTableReport str = new SimpleTableReport( "Volume Report " + m_Season ); str.AddStyle("#container { text-align: left; background-color: #ccc; margin: 0 auto; border: 1px solid #545454; width: 641px; padding:10px; font: 13px/19px Trebuchet MS, Georgia, Times New Roman, serif; }"); str.AddStyle("#main { margin-left:1em; }"); str.AddStyle("#dtStamp { font-size:0.8em; }"); str.AddStyle(".end { clear: both; }"); str.AddStyle(".gponame { color:white; background:black }"); str.AddStyle("label { display:block; float:left; width:130px; padding: 3px 5px; margin: 0px 0px 5px 0px; text-align:right; }"); str.AddStyle("value { display:block; float:left; width:100px; padding: 3px 5px; margin: 0px 0px 5px 0px; text-align:left; font-weight: bold; color:blue }"); str.AddStyle("#notes { float:right; height:auto; width:308px; font-size: 88%; background-color: #ffffe1; border: 1px solid #666666; padding: 5px; margin: 0px 0px 10px 10px; color:#666666 }"); str.AddStyle("div.notes H4 { background-image: url(images/icon_info.gif); background-repeat: no-repeat; background-position: top left; padding: 3px 0px 3px 27px; border-width: 0px 0px 1px 0px; border-style: solid; border-color: #666666; color: #666666; font-size: 110%;}"); str.ColumnHeadings = true; str.DoRowNumbers = false; str.ShowElapsedTime = false; str.IsFooter = false; str.AddColumn(new ReportColumn("Wk", "WEEK", "{0}", typeof(String) )); str.AddColumn(new ReportColumn("G", "GAMES", "{0}", typeof(Int32), true )); str.AddColumn(new ReportColumn("Spr", "SPREAD", "{0}", typeof(Int32), true )); str.AddColumn(new ReportColumn("MyT", "MYTIPS", "{0}", typeof(Int32), true )); str.AddColumn(new ReportColumn("ATS", "ATS", "{0}", typeof(Int32), true)); str.AddColumn(new ReportColumn("H", "HOME", "{0}", typeof(Int32), true)); BuildTable(str); str.RenderAsHtml(string.Format("{0}//tipping{1}.htm", Utility.OutputDirectory(), m_Season), true); }
/// <summary> /// Creates the output. /// </summary> public void Render() { var str = new SimpleTableReport("Player Projection " + Player.PlayerName + "-" + Season); str.AddStyle( "#container { text-align: left; background-color: #ccc; margin: 0 auto; border: 1px solid #545454; width: 641px; padding:10px; font: 13px/19px Trebuchet MS, Georgia, Times New Roman, serif; }"); str.AddStyle("#main { margin-left:1em; }"); str.AddStyle("#dtStamp { font-size:0.8em; }"); str.AddStyle(".end { clear: both; }"); str.AddStyle(".gponame { color:white; background:black }"); str.AddStyle( "label { display:block; float:left; width:130px; padding: 3px 5px; margin: 0px 0px 5px 0px; text-align:right; }"); str.AddStyle( "value { display:block; float:left; width:100px; padding: 3px 5px; margin: 0px 0px 5px 0px; text-align:left; font-weight: bold; color:blue }"); str.AddStyle( "#notes { float:right; height:auto; width:308px; font-size: 88%; background-color: #ffffe1; border: 1px solid #666666; padding: 5px; margin: 0px 0px 10px 10px; color:#666666 }"); str.AddStyle( "div.notes H4 { background-image: url(images/icon_info.gif); background-repeat: no-repeat; background-position: top left; padding: 3px 0px 3px 27px; border-width: 0px 0px 1px 0px; border-style: solid; border-color: #666666; color: #666666; font-size: 110%;}"); str.ColumnHeadings = true; str.DoRowNumbers = false; str.ShowElapsedTime = false; str.IsFooter = false; str.AddColumn(new ReportColumn("Week", "WEEK", "{0}")); str.AddColumn(new ReportColumn("Matchup", "MATCH", "{0}")); str.AddColumn(new ReportColumn("Score", "SCORE", "{0}")); str.AddColumn(new ReportColumn("OppUnit", "OPPRATE", "{0}")); str.AddColumn(new ReportColumn("Projection", "PROJ", "{0:0.0}", true)); str.AddColumn(new ReportColumn("Y-FP", "FP", "{0:0.0}", true)); str.AddColumn(new ReportColumn("Stats", "STATS", "{0}")); str.AddColumn(new ReportColumn("Actual", "ACTUAL", "{0:0.0}", true)); str.AddColumn(new ReportColumn("Variation", "VAR", "{0:0.0}")); str.LoadBody(BuildTable()); str.SubHeader = SubHeading(); str.RenderAsHtml(FileName(), true); }
public void Render() { var str = new SimpleTableReport(string.Format("Projected Lineup {0}:{1:#0} {2}", Season, Week, LeagueId)); str.AddStyle( "#container { text-align: left; background-color: #ccc; margin: 0 auto; border: 1px solid #545454; padding:10px; font: 13px/19px Trebuchet MS, Georgia, Times New Roman, serif; }"); str.AddStyle("#main { margin-left:1em; }"); str.AddStyle("#dtStamp { font-size:0.8em; }"); str.AddStyle(".end { clear: both; }"); str.AddStyle(".gponame { color:white; background:black }"); str.ColumnHeadings = true; str.DoRowNumbers = false; str.ShowElapsedTime = false; str.IsFooter = false; str.AddColumn(new ReportColumn("Week", "WEEK", "{0}")); if (LeagueId.Equals(Constants.K_LEAGUE_Gridstats_NFL1)) { str.AddColumn(new ReportColumn("Q1", "Q1", "{0}")); str.AddColumn(new ReportColumn("R1", "R1", "{0}")); str.AddColumn(new ReportColumn("R2", "R2", "{0}")); str.AddColumn(new ReportColumn("T1", "T1", "{0}")); str.AddColumn(new ReportColumn("W1", "W1", "{0}")); str.AddColumn(new ReportColumn("W2", "W2", "{0}")); str.AddColumn(new ReportColumn("K1", "K1", "{0}")); str.AddColumn(new ReportColumn("Q2", "Q2", "{0}")); str.AddColumn(new ReportColumn("R4", "R4", "{0}")); str.AddColumn(new ReportColumn("R3", "R3", "{0}")); str.AddColumn(new ReportColumn("T2", "T2", "{0}")); str.AddColumn(new ReportColumn("W4", "W4", "{0}")); str.AddColumn(new ReportColumn("W3", "W3", "{0}")); str.AddColumn(new ReportColumn("K2", "K2", "{0}")); } else { str.AddColumn(new ReportColumn("QB", "QB", "{0}")); str.AddColumn(new ReportColumn("RB1", "RB1", "{0}")); str.AddColumn(new ReportColumn("RB2", "RB2", "{0}")); str.AddColumn(new ReportColumn("WR1", "WR1", "{0}")); str.AddColumn(new ReportColumn("WR2", "WR2", "{0}")); str.AddColumn(new ReportColumn("WR3", "WR3", "{0}")); str.AddColumn(new ReportColumn("TE", "TE", "{0}")); str.AddColumn(new ReportColumn("PK", "PK", "{0}")); } str.LoadBody(BuildTable()); str.RenderAsHtml(FileName(), true); }
/// <summary> /// Creates the output. /// </summary> public void Render() { SimpleTableReport str = new SimpleTableReport( string.Format( "{0}-{1}", StatCode, Team.TeamCode ) ); str.AddStyle( "#container { text-align: left; background-color: #ccc; margin: 0 auto; border: 1px solid #545454; width: 641px; padding:10px; font: 13px/19px Trebuchet MS, Georgia, Times New Roman, serif; }" ); str.AddStyle( "#main { margin-left:1em; }" ); str.AddStyle( "#dtStamp { font-size:0.8em; }" ); str.AddStyle( ".end { clear: both; }" ); str.AddStyle( ".gponame { color:white; background:black }" ); str.ColumnHeadings = true; str.DoRowNumbers = false; str.ShowElapsedTime = false; str.IsFooter = false; str.AddColumn( new ReportColumn( "Week", "WEEK", "{0}", typeof( String ) ) ); str.AddColumn( new ReportColumn( "Opp", "OPP", "{0}", typeof( String ) ) ); str.AddColumn( new ReportColumn( "Count", "COUNT", "{0}", typeof( String ), true ) ); str.AddColumn( new ReportColumn( "Who", "WHO", "{0}", typeof( String ) ) ); BuildTable( str ); //str.SubHeader = SubHeading(); str.RenderAsHtml(string.Format("{0}{1}-{2}.htm", Utility.OutputDirectory(), Team.TeamCode, StatCode), true); }
public void Render() { var str = new SimpleTableReport( string.Format( "Tipping Comp - {0:d}", DateTime.Now ) ); str.AddStyle( "#container { text-align: left; background-color: #ccc; margin: 0 auto; border: 1px solid #545454; width: 761px; padding:10px; font: 13px/19px Trebuchet MS, Georgia, Times New Roman, serif; }" ); str.AddStyle( "#main { margin-left:1em; }" ); str.AddStyle( "#dtStamp { font-size:0.8em; }" ); str.AddStyle( ".end { clear: both; }" ); str.AddStyle( ".gponame { color:white; background:black }" ); str.ColumnHeadings = true; str.DoRowNumbers = true; str.ShowElapsedTime = false; str.IsFooter = false; str.AddColumn( new ReportColumn( "Method", "METHOD", "{0}", typeof( String ), false ) ); str.AddColumn( new ReportColumn( "Wins", "WINS", "{0}", typeof( Int32 ), tally: true ) ); str.AddColumn( new ReportColumn( "Losses", "LOSSES", "{0}", typeof( Int32 ), tally:true ) ); str.AddColumn( new ReportColumn( "Ties", "TIES", "{0}", typeof( Int32 ), tally: true ) ); str.AddColumn( new ReportColumn( "Clip", "CLIP", "{0:#.##0}", typeof( Decimal ), false ) ); BuildTable( str ); str.SetSortOrder( "Clip DESC" ); str.RenderAsHtml( OutputFilename, true ); }
/// <summary> /// Creates the output. /// </summary> public void Render() { SimpleTableReport str = new SimpleTableReport(string.Format("{0}-{1}", StatCode, Team.TeamCode)); str.AddStyle("#container { text-align: left; background-color: #ccc; margin: 0 auto; border: 1px solid #545454; width: 641px; padding:10px; font: 13px/19px Trebuchet MS, Georgia, Times New Roman, serif; }"); str.AddStyle("#main { margin-left:1em; }"); str.AddStyle("#dtStamp { font-size:0.8em; }"); str.AddStyle(".end { clear: both; }"); str.AddStyle(".gponame { color:white; background:black }"); str.ColumnHeadings = true; str.DoRowNumbers = false; str.ShowElapsedTime = false; str.IsFooter = false; str.AddColumn(new ReportColumn("Week", "WEEK", "{0}", typeof(String))); str.AddColumn(new ReportColumn("Opp", "OPP", "{0}", typeof(String))); str.AddColumn(new ReportColumn("Count", "COUNT", "{0}", typeof(String), true)); str.AddColumn(new ReportColumn("Who", "WHO", "{0}", typeof(String))); BuildTable(str); //str.SubHeader = SubHeading(); str.RenderAsHtml(string.Format("{0}{1}-{2}.htm", Utility.OutputDirectory(), Team.TeamCode, StatCode), true); }
public void Render() { var str = new SimpleTableReport(string.Format("Tipping Comp - {0:d}", DateTime.Now)); str.AddStyle("#container { text-align: left; background-color: #ccc; margin: 0 auto; border: 1px solid #545454; width: 761px; padding:10px; font: 13px/19px Trebuchet MS, Georgia, Times New Roman, serif; }"); str.AddStyle("#main { margin-left:1em; }"); str.AddStyle("#dtStamp { font-size:0.8em; }"); str.AddStyle(".end { clear: both; }"); str.AddStyle(".gponame { color:white; background:black }"); str.ColumnHeadings = true; str.DoRowNumbers = true; str.ShowElapsedTime = false; str.IsFooter = false; str.AddColumn(new ReportColumn("Method", "METHOD", "{0}", typeof(String), false)); str.AddColumn(new ReportColumn("Wins", "WINS", "{0}", typeof(Int32), tally: true)); str.AddColumn(new ReportColumn("Losses", "LOSSES", "{0}", typeof(Int32), tally: true)); str.AddColumn(new ReportColumn("Ties", "TIES", "{0}", typeof(Int32), tally: true)); str.AddColumn(new ReportColumn("Clip", "CLIP", "{0:#.##0}", typeof(Decimal), false)); BuildTable(str); str.SetSortOrder("Clip DESC"); str.RenderAsHtml(OutputFilename, true); }
public void Render() { var str = new SimpleTableReport(string.Format("Suggested Lineup {0}:{1:#0} {2}", Season, Week, LeagueId)); str.AddStyle( "#container { text-align: left; background-color: #ccc; margin: 0 auto; border: 1px solid #545454; padding:10px; font: 13px/19px Trebuchet MS, Georgia, Times New Roman, serif; }"); str.AddStyle("#main { margin-left:1em; }"); str.AddStyle("#dtStamp { font-size:0.8em; }"); str.AddStyle(".end { clear: both; }"); str.AddStyle(".gponame { color:white; background:black }"); str.AddStyle( "label { display:block; float:left; width:130px; padding: 3px 5px; margin: 0px 0px 5px 0px; text-align:right; }"); str.AddStyle( "value { display:block; float:left; width:100px; padding: 3px 5px; margin: 0px 0px 5px 0px; text-align:left; font-weight: bold; color:blue }"); str.AddStyle( "#notes { float:right; height:auto; width:308px; font-size: 88%; background-color: #ffffe1; border: 1px solid #666666; padding: 5px; margin: 0px 0px 10px 10px; color:#666666 }"); str.AddStyle( "div.notes H4 { background-image: url(images/icon_info.gif); background-repeat: no-repeat; background-position: top left; padding: 3px 0px 3px 27px; border-width: 0px 0px 1px 0px; border-style: solid; border-color: #666666; color: #666666; font-size: 110%;}"); 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); }
/// <summary> /// Looks at the EP xml to dump out a report /// </summary> public void RosterExperience() { Utility.Announce("NFLRosterReport.RosterExperience - creating simple report"); CheckPreRequisites(); var str = new SimpleTableReport(string.Format("Roster Experience {0}", Utility.CurrentSeason())); str.AddStyle( "#container { text-align: left; background-color: #ccc; margin: 0 auto; border: 1px solid #545454; width: 641px; padding:10px; font: 13px/19px Trebuchet MS, Georgia, Times New Roman, serif; }"); str.AddStyle("#main { margin-left:1em; }"); str.AddStyle("#dtStamp { font-size:0.8em; }"); str.AddStyle(".end { clear: both; }"); str.AddStyle(".gponame { color:white; background:black }"); str.ColumnHeadings = true; str.DoRowNumbers = true; str.ShowElapsedTime = false; str.IsFooter = false; str.AddColumn(new ReportColumn("Team", "TEAM", "{0}", typeof (String))); str.AddColumn(new ReportColumn("Player", "PLAYER", "{0}", typeof (String))); str.AddColumn(new ReportColumn("Unit", "UNIT", "{0}", typeof (String))); str.AddColumn(new ReportColumn("EP", "EP", "{0}", typeof (Int32), true)); BuildTable(str); str.SetSortOrder("EP DESC"); str.RenderAsHtml( string.Format("{0}Experience-{1}-{2}.htm", Utility.OutputDirectory(), Utility.CurrentSeason(), Utility.CurrentWeek()), true); }
/// <summary> /// Creates the output. /// </summary> public void Render() { var str = new SimpleTableReport("Player Projection " + Player.PlayerName + "-" + Season); str.AddStyle( "#container { text-align: left; background-color: #ccc; margin: 0 auto; border: 1px solid #545454; width: 641px; padding:10px; font: 13px/19px Trebuchet MS, Georgia, Times New Roman, serif; }"); str.AddStyle("#main { margin-left:1em; }"); str.AddStyle("#dtStamp { font-size:0.8em; }"); str.AddStyle(".end { clear: both; }"); str.AddStyle(".gponame { color:white; background:black }"); str.AddStyle( "label { display:block; float:left; width:130px; padding: 3px 5px; margin: 0px 0px 5px 0px; text-align:right; }"); str.AddStyle( "value { display:block; float:left; width:100px; padding: 3px 5px; margin: 0px 0px 5px 0px; text-align:left; font-weight: bold; color:blue }"); str.AddStyle( "#notes { float:right; height:auto; width:308px; font-size: 88%; background-color: #ffffe1; border: 1px solid #666666; padding: 5px; margin: 0px 0px 10px 10px; color:#666666 }"); str.AddStyle( "div.notes H4 { background-image: url(images/icon_info.gif); background-repeat: no-repeat; background-position: top left; padding: 3px 0px 3px 27px; border-width: 0px 0px 1px 0px; border-style: solid; border-color: #666666; color: #666666; font-size: 110%;}"); str.ColumnHeadings = true; str.DoRowNumbers = false; str.ShowElapsedTime = false; str.IsFooter = false; str.AddColumn(new ReportColumn("Week", "WEEK", "{0}")); str.AddColumn(new ReportColumn("Matchup", "MATCH", "{0}")); str.AddColumn(new ReportColumn("Score", "SCORE", "{0}")); str.AddColumn(new ReportColumn("OppUnit", "OPPRATE", "{0}")); str.AddColumn(new ReportColumn("Proj", "PROJ", "{0:0.0}", true)); str.AddColumn(new ReportColumn("Y-FP", "FP", "{0:0.0}", true)); str.AddColumn(new ReportColumn("Stats", "STATS", "{0}")); str.AddColumn(new ReportColumn("Actual", "ACTUAL", "{0:0.0}", true)); str.AddColumn(new ReportColumn("ActStats", "ACTUALSTAT", "{0:0.0}")); str.AddColumn(new ReportColumn("Variation", "VAR", "{0:0.0}", tally:true)); str.LoadBody(BuildTable()); str.SubHeader = SubHeading(); str.RenderAsHtml(FileName(), true); }
//public void RenderTeam( string teamCode ) //{ // var team = new NflTeam( teamCode ); // RenderTeam( team ); //} public void RenderTeam( NflTeam team, bool skipPostseason ) { if ( team.MetricsHt == null ) LoadTeam( team, team.TeamCode, skipPostseason ); var metricsHt = team.MetricsHt; var str = new SimpleTableReport( string.Format( "Metrics-{0}", team.TeamCode ) ); str.AddStyle( "#container { text-align: left; background-color: #ccc; margin: 0 auto; border: 1px solid #545454; width: 761px; padding:10px; font: 13px/19px Trebuchet MS, Georgia, Times New Roman, serif; }" ); str.AddStyle( "#main { margin-left:1em; }" ); str.AddStyle( "#dtStamp { font-size:0.8em; }" ); str.AddStyle( ".end { clear: both; }" ); str.AddStyle( ".gponame { color:white; background:black }" ); str.ColumnHeadings = true; str.DoRowNumbers = true; str.ShowElapsedTime = false; str.IsFooter = false; str.AddColumn( new ReportColumn( "Week", "WeekSeed", "{0}", typeof( String ), false ) ); str.AddColumn( new ReportColumn( "OffTDp", "OffTDp", "{0}", typeof( Int32 ), true ) ); str.AddColumn( new ReportColumn( "Mult", "AvgOffTDp", "{0:#.#}", typeof( Decimal ), false ) ); str.AddColumn( new ReportColumn( "OffTDr", "OFFTDR", "{0}", typeof( Int32 ), true ) ); str.AddColumn( new ReportColumn( "Mult", "AvgOffTDr", "{0:#.#}", typeof( Decimal ), false ) ); str.AddColumn( new ReportColumn( "OffSAKa", "OFFSAKa", "{0}", typeof( Decimal ), true ) ); str.AddColumn( new ReportColumn( "Mult", "AvgOffSaka", "{0:#.#}", typeof( Decimal ), false ) ); str.AddColumn( new ReportColumn( "DefTDpa", "DefTDpa", "{0}", typeof( Int32 ), true ) ); str.AddColumn( new ReportColumn( "Mult", "AvgDefTDp", "{0:#.#}", typeof( Decimal ), false ) ); str.AddColumn( new ReportColumn( "DefTDra", "DEFTDRa", "{0}", typeof( Int32 ), true ) ); str.AddColumn( new ReportColumn( "Mult", "AvgDefTDr", "{0:#.#}", typeof( Decimal ), false ) ); str.AddColumn( new ReportColumn( "DefSAK", "DEFSAK", "{0}", typeof( Decimal ), true ) ); str.AddColumn( new ReportColumn( "Mult", "AvgDefSak", "{0:#.#}", typeof( Decimal ), false ) ); BuildTable( str, metricsHt, team ); str.SetSortOrder( "WeekSeed" ); str.RenderAsHtml(string.Format("{0}Metrics-{1}.htm", Utility.OutputDirectory(), team.TeamCode), true); }