Beispiel #1
0
 public virtual void AddIdentity(PartyIdentity newInstance)
 {
     //foreach (PartyIdentity a in this.Identities)
     //{
     //    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.Identities.Add(newInstance);
 }
Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #4
0
 public Person(PersonName name, PartyIdentity id)
 {
     this.CurrentName = name;
     id.Party         = this;
     this.identities.Add(id);
 }
Beispiel #5
0
 public Incognito(String alias, PartyIdentity id)
 {
     this.alias = alias;
     id.Party   = this;
     this.identities.Add(id);
 }
Beispiel #6
0
 //Copy constructor
 public PartyIdentity(PartyIdentity original, User user)
     : base(original, user)
 {
     this.IdentityNo = original.IdentityNo;
     this.IssuedBy   = original.IssuedBy;
 }