Ejemplo n.º 1
0
            private void WriteGameRoster(StreamWriter sw, List<GameSlot> plgm, ArbWeb.Roster rst)
            {
                sw.WriteLine("<tr>");
                sw.WriteLine(String.Format("<td class='rosterOuter'>{0}", plgm[0].GameNum));
                sw.WriteLine(String.Format("<td class='rosterOuter'>{0}", plgm[0].Dttm.ToString("ddd M/dd")));
                sw.WriteLine(String.Format("<td class='rosterOuter'>{0}", plgm[0].Dttm.ToString("h:mm tt")));
                sw.WriteLine(String.Format("<td class='rosterOuter'>{0}", plgm[0].SportLevel));
                sw.WriteLine(String.Format("<td class='rosterOuter'>{0}", plgm[0].Site));
                sw.WriteLine(String.Format("<td class='rosterOuter'>{0}", plgm[0].Home));
                sw.WriteLine(String.Format("<td class='rosterOuter'>{0}", plgm[0].Away));
                sw.WriteLine("<tr><td colspan='7' class='rosterOuter'>");
                sw.WriteLine("<table class='rosterInner'>");
                foreach (GameSlot gm in plgm)
                    {
                    sw.WriteLine("<tr>");
                    if (gm.Open)
                        {
                        sw.WriteLine(String.Format("<td class='rosterInner'>{0}", gm.Pos));
                        sw.WriteLine("<td colspan='4'>&nbsp;");
                        }
                    else
                        {
                        RosterEntry rste = rst.RsteLookupEmail(gm.Email);
                        int nBaseRank;

                        sw.WriteLine(String.Format("<td class='rosterInner'>{0} ({1})", gm.Pos, nBaseRank = rste.Rank(String.Format("{0}, {1}", gm.Sport, gm.Pos))));
                        sw.WriteLine(String.Format("<td class='rosterInnerName'>{0}", rste.Name));
                        sw.WriteLine(String.Format("<td class='rosterInner'>{0}", rste.CellPhone));
                        sw.WriteLine(String.Format("<td class='rosterInner'>{0}", rste.OtherRanks(gm.Sport, gm.Pos, nBaseRank)));
                        sw.WriteLine(String.Format("<td class='rosterInner'>{0}", gm.Status));
                        }
                    }
                sw.WriteLine("</table>");
            }