Exemple #1
0
        public List <PopulationDataEntry> ThesabanWithoutConstituencies()
        {
            List <PopulationDataEntry> lResult = new List <PopulationDataEntry>();

            PopulationData lGeocodes = TambonHelper.GetGeocodeList(mGeocode);

            lGeocodes.ReOrderThesaban();
            foreach (PopulationDataEntry lEntry in lGeocodes.Thesaban)
            {
                if (EntityTypeHelper.Thesaban.Contains(lEntry.Type) & (!lEntry.Obsolete))
                {
                    Boolean lSuccess = HasConstituencyAnnouncement(lEntry.Geocode, lEntry.Type);

                    if ((!lSuccess) & (lEntry.GeocodeOfCorrespondingTambon != 0))
                    {
                        lSuccess = HasConstituencyAnnouncement(lEntry.GeocodeOfCorrespondingTambon, lEntry.Type);
                    }
                    if (!lSuccess)
                    {
                        lResult.Add(lEntry);
                    }
                }
            }
            return(lResult);
        }
Exemple #2
0
        public static PopulationDataEntry GetCountryPopulationData(Int32 year)
        {
            PopulationDataEntry country = null;

            if (TambonHelper.PopulationDataByYear.Keys.Contains(year))
            {
                country = TambonHelper.PopulationDataByYear[year];
            }
            else
            {
                PopulationData downloader = new PopulationData(year, 0);
                downloader.Process();
                downloader.ReOrderThesaban();
                country = downloader.Data;
                TambonHelper.PopulationDataByYear[year] = country;
            }
            return(country);
        }
Exemple #3
0
 public static PopulationDataEntry GetCountryPopulationData(Int32 year)
 {
     PopulationDataEntry country = null;
     if ( TambonHelper.PopulationDataByYear.Keys.Contains(year) )
     {
         country = TambonHelper.PopulationDataByYear[year];
     }
     else
     {
         PopulationData downloader = new PopulationData(year, 0);
         downloader.Process();
         downloader.ReOrderThesaban();
         country = downloader.Data;
         TambonHelper.PopulationDataByYear[year] = country;
     }
     return country;
 }