예제 #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;
 }