public void UpdateValues(LicenseeChangeLog update) { if (update != null) { Id = update.Id; ParentLicenseeChangeLogId = update.ParentLicenseeChangeLogId; LegalEntityId = update.LegalEntityId; BusinessAccountId = update.BusinessAccountId; BusinessType = update.BusinessType; IsIndividual = update.IsIndividual; ParentLegalEntityId = update.ParentLegalEntityId; ChangeType = update.ChangeType; IsDirectorNew = update.IsDirectorNew; IsDirectorOld = update.IsDirectorOld; IsManagerNew = update.IsManagerNew; IsManagerOld = update.IsManagerOld; IsOfficerNew = update.IsOfficerNew; IsOfficerOld = update.IsOfficerOld; IsOwnerNew = update.IsOwnerNew; IsOwnerOld = update.IsOwnerOld; IsShareholderNew = update.IsShareholderNew; IsShareholderOld = update.IsShareholderOld; IsTrusteeNew = update.IsTrusteeNew; IsTrusteeOld = update.IsTrusteeOld; ParentBusinessAccountId = update.ParentBusinessAccountId; BusinessAccountId = update.BusinessAccountId; NumberofSharesNew = update.NumberofSharesNew; NumberofSharesOld = update.NumberofSharesOld; EmailNew = update.EmailNew; EmailOld = update.EmailOld; FirstNameNew = update.FirstNameNew; FirstNameOld = update.FirstNameOld; LastNameNew = update.LastNameNew; LastNameOld = update.LastNameOld; BusinessNameNew = update.BusinessNameNew; NameOld = update.NameOld; DateofBirthNew = update.DateofBirthNew; DateofBirthOld = update.DateofBirthOld; TitleNew = update.TitleNew; TitleOld = update.TitleOld; // PhsLink = update.PhsLink; NumberOfMembers = update.NumberOfMembers; AnnualMembershipFee = update.AnnualMembershipFee; TotalSharesOld = update.TotalSharesOld; TotalSharesNew = update.TotalSharesNew; InterestPercentageOld = update.InterestPercentageOld; InterestPercentageNew = update.InterestPercentageNew; } }
public LicenseeChangeLog(LicenseeChangeLog copy) { if (copy != null) { Id = copy.Id; ParentLicenseeChangeLogId = copy.ParentLicenseeChangeLogId; LegalEntityId = copy.LegalEntityId; BusinessAccountId = copy.BusinessAccountId; BusinessType = copy.BusinessType; IsIndividual = copy.IsIndividual; ParentLegalEntityId = copy.ParentLegalEntityId; ChangeType = copy.ChangeType; IsDirectorNew = copy.IsDirectorNew; IsDirectorOld = copy.IsDirectorOld; IsManagerNew = copy.IsManagerNew; IsManagerOld = copy.IsManagerOld; IsOfficerNew = copy.IsOfficerNew; IsOfficerOld = copy.IsOfficerOld; IsOwnerNew = copy.IsOwnerNew; IsOwnerOld = copy.IsOwnerOld; IsShareholderNew = copy.IsShareholderNew; IsShareholderOld = copy.IsShareholderOld; IsTrusteeNew = copy.IsTrusteeNew; IsTrusteeOld = copy.IsTrusteeOld; ParentBusinessAccountId = copy.ParentBusinessAccountId; BusinessAccountId = copy.BusinessAccountId; NumberofSharesNew = copy.NumberofSharesNew; NumberofSharesOld = copy.NumberofSharesOld; EmailNew = copy.EmailNew; EmailOld = copy.EmailOld; FirstNameNew = copy.FirstNameNew; FirstNameOld = copy.FirstNameOld; LastNameNew = copy.LastNameNew; LastNameOld = copy.LastNameOld; BusinessNameNew = copy.BusinessNameNew; NameOld = copy.NameOld; DateofBirthNew = copy.DateofBirthNew; DateofBirthOld = copy.DateofBirthOld; TitleNew = copy.TitleNew; TitleOld = copy.TitleOld; PhsLink = copy.PhsLink; NumberOfMembers = copy.NumberOfMembers; AnnualMembershipFee = copy.AnnualMembershipFee; TotalSharesOld = copy.TotalSharesOld; TotalSharesNew = copy.TotalSharesNew; InterestPercentageOld = copy.InterestPercentageOld; InterestPercentageNew = copy.InterestPercentageNew; } }
public LicenseeChangeLog FindNodeByParentChangeLogId(string id) { LicenseeChangeLog result = null; if (id == Id) { result = this; } else if (Children != null && Children.Count > 0) { foreach (var item in Children) { var found = item.FindNodeByParentChangeLogId(id); if (found != null) { result = found; break; } } } return(result); }