internal void setEmail(DemographicSetTO demoSet)
 {
     if (demoSet.emailAddresses != null)
     {
         this.email = demoSet.emailAddresses[0] + "\r\n";
     }
 }
 internal void setPhone(DemographicSetTO demoSet)
 {
     if (demoSet.phones != null)
     {
         this.phone = formattedPhoneNumber(demoSet.phones[0]);
     }
 }
Exemple #3
0
 public UserTO(User mdoUser)
 {
     if (mdoUser == null)
     {
         return;
     }
     this.name         = mdoUser.Name == null ? "" : mdoUser.Name.getLastNameFirst();
     this.SSN          = mdoUser.SSN == null ? "" : mdoUser.SSN.toString();
     this.DUZ          = mdoUser.Uid;
     this.siteId       = mdoUser.LogonSiteId == null ? "" : mdoUser.LogonSiteId.Id;
     this.office       = mdoUser.Office;
     this.phone        = mdoUser.Phone;
     this.pager        = mdoUser.VoicePager;
     this.digitalPager = mdoUser.DigitalPager;
     if (mdoUser.Service != null)
     {
         this.service = mdoUser.Service.Name;
     }
     this.title        = mdoUser.Title;
     this.orderRole    = mdoUser.OrderRole;
     this.userClass    = mdoUser.UserClass;
     this.greeting     = mdoUser.Greeting;
     this.emailAddress = mdoUser.EmailAddress;
     this.username     = mdoUser.UserName;
     this.demographics = new DemographicSetTO(mdoUser.Demographics);
     this.domain       = mdoUser.Domain;
     //if (mdoUser.SecurityKeys != null)
     //{
     //    this.securityKeys = new UserSecurityKeyArray(mdoUser.SecurityKeys);
     //}
     //if (mdoUser.MenuOptions != null)
     //{
     //    this.menuOptions = new UserOptionArray(mdoUser.MenuOptions);
     //}
     //if (mdoUser.DelegatedOptions != null)
     //{
     //    this.delegatedOptions = new UserOptionArray(mdoUser.DelegatedOptions);
     //}
     //if (mdoUser.Divisions != null)
     //{
     //    this.divisions = new TaggedTextArray(mdoUser.Divisions);
     //}
 }
Exemple #4
0
 public UserTO(User mdoUser)
 {
     if (mdoUser == null)
     {
         return;
     }
     this.name = mdoUser.Name == null ? "" : mdoUser.Name.getLastNameFirst();
     this.SSN = mdoUser.SSN == null ? "" : mdoUser.SSN.toString();
     this.DUZ = mdoUser.Uid;
     this.siteId = mdoUser.LogonSiteId == null ? "" : mdoUser.LogonSiteId.Id;
     this.office = mdoUser.Office;
     this.phone = mdoUser.Phone;
     this.pager = mdoUser.VoicePager;
     if (mdoUser.Service != null)
     {
         this.service = mdoUser.Service.Name;
     }
     this.title = mdoUser.Title;
     this.orderRole = mdoUser.OrderRole;
     this.userClass = mdoUser.UserClass;
     this.greeting = mdoUser.Greeting;
     this.emailAddress = mdoUser.EmailAddress;
     this.username = mdoUser.UserName;
     this.demographics = new DemographicSetTO(mdoUser.Demographics);
     this.domain = mdoUser.Domain;
     //if (mdoUser.SecurityKeys != null)
     //{
     //    this.securityKeys = new UserSecurityKeyArray(mdoUser.SecurityKeys);
     //}
     //if (mdoUser.MenuOptions != null)
     //{
     //    this.menuOptions = new UserOptionArray(mdoUser.MenuOptions);
     //}
     //if (mdoUser.DelegatedOptions != null)
     //{
     //    this.delegatedOptions = new UserOptionArray(mdoUser.DelegatedOptions);
     //}
     //if (mdoUser.Divisions != null)
     //{
     //    this.divisions = new TaggedTextArray(mdoUser.Divisions);
     //}
 }
 internal void setAddressProperties(DemographicSetTO demoSet)
 {
     if (demoSet.addresses != null)
     {
         AddressTO addr          = demoSet.addresses[0];
         string    streetAddress = addr.streetAddress1;
         if (!String.IsNullOrEmpty(addr.streetAddress2))
         {
             streetAddress += '\n' + addr.streetAddress2;
         }
         if (!String.IsNullOrEmpty(addr.streetAddress3))
         {
             streetAddress += '\n' + addr.streetAddress3;
         }
         this.address = streetAddress;
         this.city    = addr.city;
         this.state   = addr.state;
         this.zipcode = addr.zipcode;
     }
 }
Exemple #6
0
 internal void setAddressProperties(DemographicSetTO demoSet)
 {
     if (demoSet.addresses != null)
     {
         AddressTO addr = demoSet.addresses[0];
         string streetAddress = addr.streetAddress1;
         if (!String.IsNullOrEmpty(addr.streetAddress2))
         {
             streetAddress += '\n' + addr.streetAddress2;
         }
         if (!String.IsNullOrEmpty(addr.streetAddress3))
         {
             streetAddress += '\n' + addr.streetAddress3;
         }
         this.address = streetAddress;
         this.city = addr.city;
         this.state = addr.state;
         this.zipcode = addr.zipcode;
     }
 }
Exemple #7
0
 internal void setPhone(DemographicSetTO demoSet)
 {
     if (demoSet.phones != null)
     {
         this.phone = formattedPhoneNumber(demoSet.phones[0]);
     }
 }
Exemple #8
0
 internal void setEmail(DemographicSetTO demoSet)
 {
     if (demoSet.emailAddresses != null)
     {
         this.email = demoSet.emailAddresses[0] + "\r\n";
     }
 }