public ActionResult HeatSheetEventResults(int HeatSheetEventID) { ViewHeatSheetEventResult vhser = new ViewHeatSheetEventResult(); vhser.ViewHeatSheetEvent = GetHeatSheetEvent(HeatSheetEventID); vhser.ViewHeats = GetHeats(HeatSheetEventID); return PartialView("_HeatSheetEventResults", vhser); }
public ActionResult SaveHeatSheetEventResults(List<ViewHeatSheetEventResult> viewHeatSheetEventResults) { SaveResults(viewHeatSheetEventResults); SwimMeet swimMeet = BizMgr.GetSwimMeetByHeatSheetEventID(viewHeatSheetEventResults[0].HeatSheetEventID); ViewHeatSheetEventResult vhser = new ViewHeatSheetEventResult(); vhser.ViewHeats = GetHeats(viewHeatSheetEventResults[0].HeatSheetEventID); vhser.SwimMeetID = swimMeet.SwimMeetID; return PartialView("_HeatSheetEventResultView", vhser); }
private List<ViewHeatSheetEventResult> GetSwimMeetResults(int SwimMeetID) { List<ViewHeatSheetEventResult> scoreList = new List<ViewHeatSheetEventResult>(); ViewHeatSheetEventResult viewScore = null; ScoreCollection scores = BizMgr.GetScoresBySwimMeetID(SwimMeetID); foreach (Score score in scores) { viewScore = new ViewHeatSheetEventResult(); viewScore.Abbrev = score.Abbrev; viewScore.Description = score.Description; viewScore.Disqualified = score.Disqualified; viewScore.ElapsedTime = score.ElapsedTime; viewScore.ElapsedTimeString = SwimomaticBusinessLib.Utility.GetTimeFromSeconds(score.ElapsedTime); viewScore.HeatSwimmerID = score.HeatSwimmerID; viewScore.HeatSheetEventID = score.HeatSheetEventID; viewScore.IsCertified = score.IsCertified; viewScore.IsProtested = score.IsProtested; viewScore.IsRelay = score.IsRelay; viewScore.Leg = score.Leg; viewScore.Place = score.Place; viewScore.Points = score.Points; viewScore.Sequence = score.Sequence; viewScore.Swimmer = score.Swimmer; scoreList.Add(viewScore); } return scoreList; }
private List<ViewHeatSheetEventResult> GetSwimMeetTotals(int SwimMeetID) { List<ViewHeatSheetEventResult> scoreList = new List<ViewHeatSheetEventResult>(); ViewHeatSheetEventResult viewScore = null; ScoreCollection scores = BizMgr.GetTotalScoresBySwimMeetID(SwimMeetID); foreach (Score score in scores) { viewScore = new ViewHeatSheetEventResult(); viewScore.Abbrev = score.Abbrev; viewScore.Points = score.Points; scoreList.Add(viewScore); } return scoreList; }
private List<ViewHeatSheetEventResult> GetSwimMeetResultsAsSwimmer(int SwimMeetID) { List<ViewHeatSheetEventResult> scoreList = new List<ViewHeatSheetEventResult>(); ViewHeatSheetEventResult viewScore = null; ScoreCollection scores = BizMgr.GetScoresBySystemUserIDAsSwimmer(SwimMeetID); foreach (Score score in scores) { viewScore = new ViewHeatSheetEventResult(); viewScore.Abbrev = score.Abbrev; viewScore.Description = score.Description; viewScore.Disqualified = score.Disqualified; viewScore.ElapsedTime = score.ElapsedTime; viewScore.HeatSwimmerID = score.HeatSwimmerID; viewScore.HeatSheetEventID = score.HeatSheetEventID; viewScore.IsCertified = score.IsCertified; viewScore.IsProtested = score.IsProtested; viewScore.IsRelay = score.IsRelay; viewScore.Leg = score.Leg; viewScore.Place = score.Place; viewScore.Points = score.Points; viewScore.Sequence = score.Sequence; viewScore.Swimmer = score.Swimmer; scoreList.Add(viewScore); } return scoreList; }