示例#1
0
        public ActionResult HeatSheetEventResults(int HeatSheetEventID)
        {
            ViewHeatSheetEventResult vhser = new ViewHeatSheetEventResult();
            vhser.ViewHeatSheetEvent = GetHeatSheetEvent(HeatSheetEventID);
            vhser.ViewHeats = GetHeats(HeatSheetEventID);

            return PartialView("_HeatSheetEventResults", vhser);
        }
示例#2
0
        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);
        }
示例#3
0
 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;
 }
示例#4
0
 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;
 }
示例#5
0
 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;
 }