public object Clone()
        {
            ContactPersonDetail clone = new ContactPersonDetail();
            clone.Address = this.Address;
            clone.BusinessPhoneNumber = this.BusinessPhoneNumber;
            clone.HomePhoneNumber = this.HomePhoneNumber;
            clone.Name = this.Name;
            clone.Relationship = (EnumValueInfo)this.Relationship.Clone();
            clone.Type = (EnumValueInfo)this.Type.Clone();

            return clone;
        }
Beispiel #2
0
        public ContactPerson CreateContactPerson(ContactPersonDetail detail, IPersistenceContext context)
        {
            ContactPerson cp = new ContactPerson();

            cp.Name = detail.Name;
            cp.Address = detail.Address;
            cp.HomePhone = detail.HomePhoneNumber;
            cp.BusinessPhone = detail.BusinessPhoneNumber;
            cp.Relationship = EnumUtils.GetEnumValue<ContactPersonRelationshipEnum>(detail.Relationship, context);
            cp.Type = EnumUtils.GetEnumValue<ContactPersonTypeEnum>(detail.Type, context);

            return cp;
        }
Beispiel #3
0
        public ContactPersonDetail CreateContactPersonDetail(ContactPerson cp)
        {
            ContactPersonDetail detail = new ContactPersonDetail();

            detail.Name = cp.Name;
            detail.Address = cp.Address;
            detail.HomePhoneNumber = cp.HomePhone;
            detail.BusinessPhoneNumber = cp.BusinessPhone;
            detail.Relationship = EnumUtils.GetEnumValueInfo(cp.Relationship);
            detail.Type = EnumUtils.GetEnumValueInfo(cp.Type);

            return detail;
        }
Beispiel #4
0
        public object Clone()
        {
            ContactPersonDetail clone = new ContactPersonDetail();

            clone.Address             = this.Address;
            clone.BusinessPhoneNumber = this.BusinessPhoneNumber;
            clone.HomePhoneNumber     = this.HomePhoneNumber;
            clone.Name         = this.Name;
            clone.Relationship = (EnumValueInfo)this.Relationship.Clone();
            clone.Type         = (EnumValueInfo)this.Type.Clone();

            return(clone);
        }