Ejemplo n.º 1
0
 public virtual void AddAddress(PartyAddress newInstance)
 {
     //foreach (PartyAddress a in this.Addresses)
     //{
     //    if (a.Category.NodeID == newInstance.Category.NodeID)
     //    {
     //        //expire the existing one
     //        if (a.EffectivePeriod.To >= newInstance.EffectivePeriod.From)
     //            a.EffectivePeriod.To = newInstance.EffectivePeriod.From.Date.AddDays(-1);
     //    }
     //}
     this.Addresses.Add(newInstance);
 }
Ejemplo n.º 2
0
 public Incognito(String alias, PartyIdentity id, TimeInterval effectivePeriod,
                  PartyAddress address, string email, string phones, string mobilePhones,
                  TreeListNode religion, TreeListNode bloodGroup)
 {
     this.alias = alias;
     id.Party   = this;
     this.identities.Add(id);
     address.Party = this;
     this.addresses.Add(address);
     base.EffectivePeriod = effectivePeriod;
     this.email           = email;
     this.mobilePhone     = mobilePhones;
     this.phone           = phones;
     this.religion        = religion;
 }
Ejemplo n.º 3
0
 public Person(PersonName name, PartyIdentity id, TimeInterval livePeriod, Country citizenOf,
               TreeListNode gender, PartyAddress address, string email, string phones, string mobilePhones,
               TreeListNode religion, TreeListNode bloodGroup)
 {
     this.CurrentName = name;
     id.Party         = this;
     this.identities.Add(id);
     address.Party = this;
     this.addresses.Add(address);
     base.EffectivePeriod = livePeriod;
     this.citizenOf       = citizenOf;
     this.Gender          = gender;
     this.Email           = email;
     this.Phone           = phones;
     this.MobilePhone     = mobilePhones;
     this.Religion        = religion;
     this.BloodGroup      = bloodGroup;
 }
Ejemplo n.º 4
0
 public PartyAddress(PartyAddress original, User user)
     : base(original, user)
 {
     this.address = original.GeographicAddress;
 }