示例#1
0
 public ClientAdvisor(ClientAdvisor adv)
 {
     Address                      = new Address();
     AdvisorName                  = new Name();
     Address.Street               = adv.Address.Street;
     Address.City                 = adv.Address.City;
     Address.Country              = adv.Address.Country;
     Address.ZipCode              = adv.Address.ZipCode;
     AdvisorName.AddressName      = adv.AdvisorName.AddressName;
     AdvisorName.EmailAddress     = adv.AdvisorName.EmailAddress;
     AdvisorName.FaxNumber        = adv.AdvisorName.FaxNumber;
     AdvisorName.FirstName        = adv.AdvisorName.FirstName;
     AdvisorName.LastName         = adv.AdvisorName.LastName;
     AdvisorName.Salutation       = adv.AdvisorName.Salutation;
     AdvisorName.TelephoneNumber  = adv.AdvisorName.TelephoneNumber;
     AdvisorName.TelephoneNumber2 = adv.AdvisorName.TelephoneNumber2;
     AdvisorName.Title            = adv.AdvisorName.Title;
     CompanyName                  = adv.CompanyName;
     Department                   = adv.Department;
     EarlyNotification            = adv.EarlyNotification;
     Id           = adv.Id;
     Position     = adv.Position;
     IsAdvisor    = adv.IsAdvisor;
     IsClient     = adv.IsClient;
     IsTaxAdvisor = adv.IsTaxAdvisor;
 }
示例#2
0
        public ClientAdvisor CopyRecord(ClientAdvisor adv)
        {
            ClientAdvisor target = new ClientAdvisor();

            target.Address.Street               = adv.Address.Street;
            target.Address.City                 = adv.Address.City;
            target.Address.Country              = adv.Address.Country;
            target.Address.ZipCode              = adv.Address.ZipCode;
            target.AdvisorName.AddressName      = adv.AdvisorName.AddressName;
            target.AdvisorName.EmailAddress     = adv.AdvisorName.EmailAddress;
            target.AdvisorName.FaxNumber        = adv.AdvisorName.FaxNumber;
            target.AdvisorName.FirstName        = adv.AdvisorName.FirstName;
            target.AdvisorName.LastName         = adv.AdvisorName.LastName;
            target.AdvisorName.Salutation       = adv.AdvisorName.Salutation;
            target.AdvisorName.TelephoneNumber  = adv.AdvisorName.TelephoneNumber;
            target.AdvisorName.TelephoneNumber2 = adv.AdvisorName.TelephoneNumber2;
            target.AdvisorName.Title            = adv.AdvisorName.Title;
            target.CompanyName       = adv.CompanyName;
            target.Department        = adv.Department;
            target.EarlyNotification = adv.EarlyNotification;
            target.Id           = adv.Id;
            target.Position     = adv.Position;
            target.IsAdvisor    = adv.IsAdvisor;
            target.IsClient     = adv.IsClient;
            target.IsTaxAdvisor = adv.IsTaxAdvisor;

            return(target);
        }