예제 #1
0
        public EntityAddress Copy()
        {
            Server.Application.EntityAddress serverEntityAddress = (Server.Application.EntityAddress)ToServerObject();

            EntityAddress copiedEntityAddress = new EntityAddress(application, serverEntityAddress);

            return(copiedEntityAddress);
        }
예제 #2
0
        private void CurrentMailingAddressCompleted(Object sender, Server.Application.EntityAddressGetByTypeDateCompletedEventArgs e)
        {
            if ((!e.Cancelled) && (e.Error == null) && (e.Result != null))
            {
                currentMailingAddress = new EntityAddress(Application, e.Result);

                NotifyPropertyChanged("CurrentMailingAddress");
            }

            return;
        }
예제 #3
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);
        }
예제 #4
0
        public Boolean IsEqual(EntityAddress compareEntityAddress)
        {
            Boolean isEqual = base.IsEqual((CoreObject)compareEntityAddress);


            isEqual &= (entityId == compareEntityAddress.EntityId);

            isEqual &= (addressType == compareEntityAddress.AddressType);


            isEqual &= (line1 == compareEntityAddress.Line1);

            isEqual &= (line2 == compareEntityAddress.Line2);

            isEqual &= (city == compareEntityAddress.City);

            isEqual &= (state == compareEntityAddress.State);

            isEqual &= (zipCode == compareEntityAddress.ZipCode);

            isEqual &= (zipPlus4 == compareEntityAddress.ZipPlus4);

            isEqual &= (postalCode == compareEntityAddress.PostalCode);

            isEqual &= (county == compareEntityAddress.County);


            isEqual &= (longitude == compareEntityAddress.Longitude);

            isEqual &= (latitude == compareEntityAddress.Latitude);


            isEqual &= (effectiveDate == compareEntityAddress.EffectiveDate);

            isEqual &= (terminationDate == compareEntityAddress.TerminationDate);


            return(isEqual);
        }