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); }
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; }
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; }
public Person(PersonName name, PartyIdentity id) { this.CurrentName = name; id.Party = this; this.identities.Add(id); }
public Incognito(String alias, PartyIdentity id) { this.alias = alias; id.Party = this; this.identities.Add(id); }
//Copy constructor public PartyIdentity(PartyIdentity original, User user) : base(original, user) { this.IdentityNo = original.IdentityNo; this.IssuedBy = original.IssuedBy; }