Exemplo n.º 1
0
        }                                                                                         // 2010-03-11: BACKWARDS COMPATIBILITY, REMOVED RESIDENTIAL

        public EntityAddress CurrentAddress(Server.Application.EntityAddressType forAddressType)
        {
            EntityAddress entityAddress = null;

            foreach (EntityAddress currentAddress in Addresses)
            {
                if (currentAddress.AddressType == forAddressType)
                {
                    if ((DateTime.Today >= currentAddress.EffectiveDate) && (DateTime.Today <= currentAddress.TerminationDate))
                    {
                        entityAddress = currentAddress;

                        break;
                    }
                }
            }

            return(entityAddress);
        }
Exemplo n.º 2
0
        protected void BaseConstructor(Application applicationReference, Server.Application.EntityAddress serverEntityAddress)
        {
            base.BaseConstructor(applicationReference, serverEntityAddress);


            entityId = serverEntityAddress.EntityId;

            addressType = serverEntityAddress.AddressType;

            line1 = serverEntityAddress.Line1;

            line2 = serverEntityAddress.Line2;

            city = serverEntityAddress.City;

            state = serverEntityAddress.State;

            zipCode = serverEntityAddress.ZipCode;

            zipPlus4 = serverEntityAddress.ZipPlus4;

            postalCode = serverEntityAddress.PostalCode;

            county = serverEntityAddress.County;


            longitude = serverEntityAddress.Longitude;

            latitude = serverEntityAddress.Latitude;


            effectiveDate = serverEntityAddress.EffectiveDate;

            terminationDate = serverEntityAddress.TerminationDate;

            return;
        }