Ejemplo n.º 1
0
 public static DataTable GetTournamentUsersWithCreatedDate(StatusE statusID, int tournamentID)
 {
     return(BaseCollection.Select(InfiChess.TournamentUser, "TournamentID = " + tournamentID + " and StatusID = " + statusID.ToString("d") + " ORDER BY DateCreated ASC"));
 }
Ejemplo n.º 2
0
 public static DataTable GetTournamentUsersByTournamentID(int TeamA, int TeamB, int tournamentID)
 {
     return(BaseCollection.Select(InfiChess.TournamentUser, "TournamentID = " + tournamentID + " and (TeamID = " + TeamA + " or TeamID = " + TeamB + ")"));
 }
Ejemplo n.º 3
0
 public static DataTable GetTournamentUsersByTournamentID(int statusID, int tournamentID)
 {
     return(BaseCollection.Select(InfiChess.TournamentUser, "TournamentID = " + tournamentID + " and StatusID = " + statusID.ToString()));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// for online client
 /// </summary>
 /// <param name="statusID"></param>
 /// <param name="tournamentID"></param>
 /// <returns></returns>
 public static DataTable GetTournamentUsersByTournamentID(StatusE statusID, int tournamentID)
 {
     return(BaseCollection.Select(InfiChess.TournamentUser, "TournamentID = " + tournamentID + " and StatusID = " + statusID.ToString("d") + " ORDER BY EloBefore DESC"));
 }
Ejemplo n.º 5
0
 public static DataTable GetTournamntPlayers(int tournamentID)
 {
     return(BaseCollection.Select(InfiChess.TournamentMatch, "GameResultID  not in (1, 5, 6) and TournamentID = " + tournamentID + " and statusID <> 4"));
 }
Ejemplo n.º 6
0
 public static DataTable GetTournamntMatchesByParentID(int tournamentMatchParentID)
 {
     return(BaseCollection.Select(InfiChess.TournamentMatch, "ParentMatchID = " + tournamentMatchParentID));
 }
Ejemplo n.º 7
0
 public static DataTable GetWinnerTournamntMatch(int tournamentID, int round)
 {
     return(BaseCollection.Select(InfiChess.TournamentMatch, "GameResultID  not in (1, 5, 6) and TournamentID = " + tournamentID + " and Round = " + round + " and statusID <> 4"));
 }
Ejemplo n.º 8
0
 public static DataTable GetTournamntMatchByParentID(int parentMatchID)
 {
     return(BaseCollection.Select(InfiChess.TournamentMatch, "ParentMatchID", parentMatchID.ToString(), "StatusID", (int)StatusE.Active));
 }
Ejemplo n.º 9
0
 public static DataTable GetTournamentMatchByRound(int tournamentID, int round)
 {
     return(BaseCollection.Select(InfiChess.TournamentMatch, "TournamentID", tournamentID, "Round", round, "StatusID", (int)StatusE.Active));
 }
Ejemplo n.º 10
0
 public static DataTable GetTournamntMatchByTournamentID(int tournamentID)
 {
     return(BaseCollection.Select(InfiChess.TournamentMatch, "TournamentID", tournamentID, "StatusID", (int)StatusE.Active));
 }
Ejemplo n.º 11
0
 public static DataTable GetTournamntMatch()
 {
     return(BaseCollection.Select(InfiChess.TournamentMatch, 0));
 }