/// <summary>
 /// Initializes a new instance of the <see cref="ApplicationListing"/> class.
 /// </summary>
 public ApplicationListing()
 {
     this.userStatuses        = UserStatus.LoadStatuses(this.PortalId);
     this.applicationStatuses = ApplicationStatus.GetStatuses(this.PortalId);
     this.leadsList           = (new ListController()).GetListEntryInfoCollection(Employment.Utility.LeadListName, Null.NullString, this.PortalId).Cast <ListEntryInfo>().ToDictionary(entry => entry.EntryID);
     this.locations           = Location.LoadLocations(null, this.PortalId);
 }
Exemple #2
0
        /// <summary>Fills <see cref="StatusesGrid"/> with the list of all <see cref="ApplicationStatus"/> instances for this portal</summary>
        private void BindData()
        {
            var statuses = ApplicationStatus.GetStatuses(this.PortalId).ToArray();

            this.StatusesGrid.DataSource = statuses;
            this.StatusesGrid.DataBind();

            this.NewPanel.CssClass = statuses.Length % 2 == 0
                ? this.StatusesGrid.RowStyle.CssClass
                : this.StatusesGrid.AlternatingRowStyle.CssClass;

            this.rowNewHeader.Visible = !statuses.Any();
        }
Exemple #3
0
 /// <summary>Creates the <see cref="applicationStatusMap" /> and <see cref="userStatusMap" />.</summary>
 private void InitializeStatusMaps()
 {
     this.applicationStatusMap = ApplicationStatus.GetStatuses(this.PortalId).ToDictionary(status => status.StatusId);
 }