Exemple #1
0
 public void Reset()
 {
     Type  = PlaylistType.None;
     oNote = new NoteObject();
     oGame = new GameObject();
     game  = null;
     note  = null;
     //iespTICK_Playlist_Details_Get_Results = spTICK_Playlist_Details_Get_Results.GetEnumerator();
 }
        //
        // GET: /Game/Details/5

        public ActionResult Details(int id = 0)
        {
            spTICK_Games_GetByEntryID_Result Game = db.spTICK_Games_GetByEntryID(0, id, 2, false, false).First();

            if (Game == null)
            {
                return(HttpNotFound());
            }
            return(View(Game));
        }
Exemple #3
0
        private object ProcessGames()
        {
            game = oGame.GetNext();

            if (game != null)
            {
                Name      = game.Matchup;
                OnAirName = pld.OnAirName;
                SortOrder = game.SortOrder;
                return(game);
            }

            return(null);
        }
Exemple #4
0
        private object ProcessGame()
        {
            if (curGame != null)
            {
                if (playlistdetailsOmissions.Where(plow => plow.ID == pld.PlaylistDetailsID).Count() > 0)
                {
                    if (playlistdetailsOmissions.Where(plow => plow.ID == pld.PlaylistDetailsID).First().notesOmitted.Where(now => now.gameID == curGame.ID).Count() > 0)
                    {
                        oNote.gameNotesOmitted = playlistdetailsOmissions.Where(plow => plow.ID == pld.PlaylistDetailsID).First().notesOmitted.Where(now => now.gameID == curGame.ID).First().gameNotesOmitted;
                    }
                }
                if (!gameNotes)
                {
                    oNote.LoadGame(curGame.ID, 18);
                }
                //if (oNote != null)
                //    return oNote;
                if (oNote.gameNotes.Count() > 0)
                {
                    gameNotes = true;
                    object retval = ProcessNote();
                    if (retval != null)
                    {
                        return(retval);
                    }
                }
                curGame   = null;
                gameNotes = false;
            }

            if (game == null)
            {
                if (playlistdetailsOmissions.Where(plow => plow.ID == pld.PlaylistDetailsID).Count() > 0)
                {
                    if (playlistdetailsOmissions.Where(plow => plow.ID == pld.PlaylistDetailsID).First().gamesOmitted.Where(now => now.ID == ID).Count() > 0)
                    {
                        oGame.GamesOmitted = playlistdetailsOmissions.Where(plow => plow.ID == pld.PlaylistDetailsID).First().gamesOmitted.Where(now => now.ID == ID).First().GamesOmitted;
                    }
                }

                oGame.Load(pld.EntryID, 18, pld.EntryTypeID, bOnlyFinals, bOnlySorted);
            }
            game = oGame.GetNext();

            if (game != null)
            {
                Name      = game.Matchup;
                OnAirName = pld.OnAirName;



                Name      = game.Matchup;
                OnAirName = pld.OnAirName;
                curGame   = game;
                logger.Trace("GetNext - ProcessGame - Group " + game.ID + " " + game.Matchup);

                return(game);
            }
            else
            {
                Type = PlaylistType.None;
            }

            return(null);
        }
Exemple #5
0
 // Insert a final game.
 public virtual void Ticker_Final_Insert(spTICK_Games_GetByEntryID_Result gameobject)
 {
     // stub.
 }