Ejemplo n.º 1
0
        public ActionResult LoadTeamEditForm(int id)
        {
            var blTeam = new BLTeam();
            var team   = blTeam.GetTeamById(id);

            team.OnActionSuccess = "loadTeamList";

            return(View("EditTeam", team));
        }
Ejemplo n.º 2
0
        public ActionResult TeamMemberManagement(int id = -1)
        {
            var blTeam = new BLTeam();
            var team   = blTeam.GetTeamById(id);

            return(View("TeamMemberManagement",
                        new VmTeamMemberManagement
            {
                TeamId = id,
                TeamName = team.Name,
                WrittenReportUrl = team.WrittenReportUrl,
            }));
        }
Ejemplo n.º 3
0
        public ActionResult TeamMemberManagement()
        {
            var blTeam = new BLTeam();
            int id     = blTeam.GetLeaderTeam(CurrentUserId);

            var team = blTeam.GetTeamById(id);

            return(View("../Leader/TeamMemberManagement",
                        new VmTeamMemberManagement
            {
                TeamId = id,
                TeamName = team.Name,
                WrittenReportUrl = team.WrittenReportUrl,
                CurrentUserId = CurrentUserId,
            }));
        }
Ejemplo n.º 4
0
        public ActionResult LoadManagementSingleTeamGradingForm(int id)
        {
            var bsTeam   = new BLTeam();
            var teamInfo = bsTeam.GetTeamById(id);
            var teamName = teamInfo.Name;
            var bsGrade  = new BLGrade();

            var GradeList = bsGrade.GetGradeSelectListItem(0, int.MaxValue);

            return(View("../Judge/GradingTeamForm", new VmSingleTeamGradingManagement
            {
                CurrentUserId = CurrentUserId,
                GradeList = GradeList,
                TeamId = id,
                TeamName = teamName,
                Task = teamInfo.Task,
                University = teamInfo.University,
            }));
        }