public PartyAddress(Party party, TreeListNode addressCategory, GeographicAddress address, String description, String reference, String remark, TimeInterval effectivePeriod, User user) : base(party, addressCategory, description, reference, remark, effectivePeriod, user) { this.address = address; }
public virtual void AddAddress(TreeListNode category, GeographicAddress address, string description, string reference, string remark, TimeInterval effectivePeriod, User user) { //foreach (PartyAddress a in this.Addresses) //{ // if (a.Category.NodeID == category.NodeID) // { // //expire the existing one // if (a.EffectivePeriod.To >= effectivePeriod.From) // a.EffectivePeriod.To = effectivePeriod.From.Date.AddDays(-1); // } //} this.Addresses.Add(new PartyAddress(this, category, address, description, reference, remark, effectivePeriod, user)); }
public PartyAddress(Party party, TreeListNode addressCategory, GeographicAddress address) : base(party, null, null, null, null, TimeInterval.EffectiveNow, null) { this.address = address; }