Exemplo n.º 1
0
        private List <localhost.OrganizativeRecord> CreateListaOrganizativeRecords()
        {
            int i = 0;

            List <localhost.OrganizativeRecord> d = new List <localhost.OrganizativeRecord>();

            foreach (Hashtable item in _data)
            {
                OrganizativeRecord dto = CreateOrganizativeRecord(item);
                d.Add(dto);
                i++;
            }

            return(d);
        }
Exemplo n.º 2
0
        private OrganizativeRecord CreateOrganizativeRecord(Hashtable item)
        {
            OrganizativeRecord dto = new OrganizativeRecord();

            dto.Year                     = TryIntCast(item["ANNO"]);
            dto.Region                   = item["REGIONE"] as string;
            dto.Province                 = item["PROVINCIA"] as string;
            dto.Bilateral                = item["ENTE BILATERALE"] as string;
            dto.SpecificBilateral        = item["SOTTOENTE"] as string;
            dto.TotalWorkers             = TryIntCast(item["ADDETTI  ATTIVI"]);
            dto.TotalCompanies           = TryIntCast(item["AZIENDE ATTIVE"]);
            dto.TotalSindacalizedWorkers = TryIntCast(item["TOT ISCRITTI O.O.S.S."]);
            dto.FenealWorkers            = TryIntCast(item["FENEAL"]);
            dto.FilcaWorkers             = TryIntCast(item["FILCA"]);
            dto.FilleaWorkers            = TryIntCast(item["FILLEA"]);


            return(dto);
        }