Ejemplo n.º 1
0
 public void Copyto(ref Contact to)
 {
     to.Prefix = this.Prefix;
     to.Initial = this.Initial;
     to.FirstName = this.FirstName;
     to.MiddleName = this.MiddleName;
     to.LastName = this.LastName;
     to.Suffix = this.Suffix;
     to.Title = this.Title;
     to.IsStrategic = this.IsStrategic;
     to.OrganisationName = this.OrganisationName;
     to.Region = this.Region;
     to.AddressLine1 = this.AddressLine1;
     to.AddressLine2 = this.AddressLine2;
     to.AddressLine3 = this.AddressLine3;
     to.AddressLine4 = this.AddressLine4;
     to.AddressCounty = this.AddressCounty;
     to.AddressPostcode = this.AddressPostcode;
     to.HomePhone = this.HomePhone;
     to.WorkPhone = this.WorkPhone;
     to.MobilePhone = this.MobilePhone;
     to.FaxNumber = this.FaxNumber;
     to.AltPhone = this.AltPhone;
     to.Switchboard = this.Switchboard;
     to.DXNumber = this.DXNumber;
     to.DefaultEmail = this.DefaultEmail;
     to.AlternativeEmail = this.AlternativeEmail;
     to.Website = this.Website;
     to.DDIPhone = this.DDIPhone;
     to.SetCreatedInfo();
     to.Town = this.Town;
     to.Type = this.Type;
     to.SortOrder = this.Id;
     to.referenceid = this.referenceid;
 }
Ejemplo n.º 2
0
 public static string GetCode(Contact c)
 {
     return (c.Prefix + " "+c.FirstName + " " + c.LastName + " " +c.Title +" "+ c.OrganisationName).Trim();
 }