Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 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));
 }
Esempio n. 3
0
 public PartyAddress(Party party, TreeListNode addressCategory, GeographicAddress address)
     : base(party, null, null, null, null, TimeInterval.EffectiveNow, null)
 {
     this.address = address;
 }