public override void SetSPItemFieldsByERType() { TrackSPItemFields = SPItemFieldFactory.GetChangedFieldsList(this, this.ERConf.ItemUpdatingTrackFields); TrackSingleMailSPItemFields = SPItemFieldFactory.GetChangedFieldsList(this, this.ERConf.TrackFieldsSingleMail); if (TrackSPItemFields.Count == 0 && TrackSingleMailSPItemFields.Count == 0) { return; } var updatingFixedFields = this.ERConf.ItemUpdatingFixedFields //.AsParallel() .Select(f => { var itemField = SPItemFieldFactory.Create(this, f); if (String.IsNullOrEmpty(itemField.FriendlyFieldValueAfter)) { itemField.GetFriendlyFieldValues(itemField.FieldValueAfter.ToString(), out itemField.FriendlyFieldValueAfter); } itemField.FriendlyFieldValueBefore = ""; return(itemField); }) .Where(f => !String.IsNullOrEmpty(f.FriendlyFieldValueAfter)) .ToList(); TrackSPItemFields.AddRange(updatingFixedFields); }
public override void SetSPItemFieldsByERType() { TrackSPItemFields = SPItemFieldFactory.GetChangedFieldsList(this, this.ERConf.ItemAddedTrackFields, false); TrackSingleMailSPItemFields = SPItemFieldFactory.GetChangedFieldsList(this, this.ERConf.TrackFieldsSingleMail, false); }