protected void Page_Load(object sender, EventArgs e) { RedirectUtil.RedirectUnauthenticatedUserToLoginPage(); RedirectUtil.RedirectNonAdminUserToHomePage(); BreadCrumbUtil.DataBind(Page, new List <BreadCrumb>() { new BreadCrumb(NavUtil.GetHomePageUrl(), "Home"), new BreadCrumb(NavUtil.GetShowsPageUrl(), "Shows"), new BreadCrumb(NavUtil.GetShowPageUrl(GetShowId()), "Show"), new BreadCrumb(NavUtil.GetShowReportPageUrl(GetShowId()), "Judge Sheet Report", IsActive: true), }); var showId = GetShowId(); var show = ServiceFactory.ShowService.Get(showId); labelPageTitle.Text = show.Name; labelPageDescription.Text = show.Description; int contestId = Convert.ToInt32(Request.QueryString["contestId"]); if (contestId > 0) { contests = ServiceFactory.ContestService.GetShowContests(showId).Where(c => c.Id == contestId); } else { contests = ServiceFactory.ContestService.GetShowContests(showId); } }
protected void Page_Load(object sender, EventArgs e) { RedirectUtil.RedirectUnauthenticatedUserToLoginPage(); RedirectUtil.RedirectNonAdminUserToHomePage(); BreadCrumbUtil.DataBind(Page, new List <BreadCrumb>() { new BreadCrumb(NavUtil.GetHomePageUrl(), "Home"), new BreadCrumb(NavUtil.GetShowsPageUrl(), "Shows"), new BreadCrumb(NavUtil.GetShowPageUrl(GetShowId()), "Show"), new BreadCrumb(NavUtil.GetShowReportPageUrl(GetShowId()), "Report", IsActive: true), }); var showId = GetShowId(); var show = ServiceFactory.ShowService.Get(showId); labelPageTitle.Text = show.Name; labelPageDescription.Text = show.Description; this.contests = ServiceFactory.ContestService.GetShowContests(showId).Where(c => c.Status == "Complete"); }
protected void Page_Load(object sender, EventArgs e) { RedirectUtil.RedirectUnauthenticatedUserToLoginPage(); RedirectUtil.RedirectNonAdminUserToHomePage(); BreadCrumbUtil.DataBind(Page, new List <BreadCrumb>() { new BreadCrumb(NavUtil.GetHomePageUrl(), "Home"), new BreadCrumb(NavUtil.GetShowsPageUrl(), "Shows"), new BreadCrumb(NavUtil.GetShowPageUrl(GetShowId()), "Show"), new BreadCrumb(NavUtil.GetShowReportPageUrl(GetShowId()), "Report", IsActive: true), }); if (Page.IsPostBack) { var refreshRate = (Convert.ToInt32(dropDownListRefreshRate.SelectedValue) * 60) * 1000; refreshTimer.Interval = refreshRate; } else { dropDownListRefreshRate.SelectedValue = "5"; refreshTimer.Interval = 300000; dropDownListStatus.SelectedValue = "In Progress"; } var showId = GetShowId(); var show = ServiceFactory.ShowService.Get(showId); labelPageTitle.Text = show.Name; labelPageDescription.Text = show.Description; this.contests = ServiceFactory.ContestService.GetShowContests(showId); var status = dropDownListStatus.SelectedValue; if (status != "Any") { this.contests = this.contests.Where(c => c.Status == status); } }