private void LoadLocalLinks()
        {
            var stateCode  = ViewState["StateCode"].ToString();
            var countyCode = ViewState["CountyCode"].ToString();

            TableLocalLinks.Visible = true;
            Label_County.Text       =
                Offices.GetElectoralClassDescription(stateCode, countyCode) +
                " LOCAL DISTRICTS, TOWNS and CITIES (" + countyCode + ")";
            LabelLocalDistricts.Text =
                LocalLinks.GetDefaultLocalLinks(stateCode, countyCode, true, true).RenderToString();
            if (string.IsNullOrEmpty(LabelLocalDistricts.Text))
            {
                LabelLocalDistricts.Text =
                    "No Local Districts, Towns or Cities have been identified for " +
                    Offices.GetElectoralClassDescription(stateCode, countyCode);

                LabelLocalDesc.Text = string.Empty;
            }
            else
            {
                LabelLocalDesc.Text =
                    "Use the links above to EDIT information for any of these local districts," +
                    " towns or cities in this county." +
                    " Use the link below to ADD local districts, towns and cities to this county.";
            }
        }
Exemple #2
0
 private void Local_Links()
 {
     LabelLocalDistricts.Text =
         LocalLinks.GetDistrictsLocalLinks(StateCode,
                                           CountyCode, RadioButtonListSort.SelectedValue != "Name")
         .RenderToString();
 }
Exemple #3
0
 private void LoadLocalLinks()
 {
     if (IsMasterUser || IsStateAdminUser || IsCountyAdminUser)
     {
         LocalLinksContainer.Visible = true;
         LocalLinks.AddDefaultLocalLinks(LocalLinkList, StateCode, CountyCode);
     }
 }
Exemple #4
0
        private void Local_Links()
        {
            #region Report of Local Districts

            LabelLocalDistricts.Text =
                LocalLinks.GetDistrictsLocalLinks(ViewState["StateCode"].ToString(),
                                                  ViewState["CountyCode"].ToString(),
                                                  RadioButtonListSort.SelectedValue != "Name").RenderToString();

            #endregion Report of Local Districts
        }