private void SetAllNull() { this.AutoFilter = new SLAutoFilter(); this.Field = 0; this.MemberPropertyFieldId = null; this.Type = PivotFilterValues.Unknown; this.EvaluationOrder = 0; this.Id = 0; this.MeasureHierarchy = null; this.MeasureField = null; this.Name = ""; this.Description = ""; this.StringValue1 = ""; this.StringValue2 = ""; }
internal void FromPivotFilter(PivotFilter pf) { this.SetAllNull(); if (pf.Field != null) this.Field = pf.Field.Value; if (pf.MemberPropertyFieldId != null) this.MemberPropertyFieldId = pf.MemberPropertyFieldId.Value; if (pf.Type != null) this.Type = pf.Type.Value; if (pf.EvaluationOrder != null) this.EvaluationOrder = pf.EvaluationOrder.Value; if (pf.Id != null) this.Id = pf.Id.Value; if (pf.MeasureHierarchy != null) this.MeasureHierarchy = pf.MeasureHierarchy.Value; if (pf.MeasureField != null) this.MeasureField = pf.MeasureField.Value; if (pf.Name != null) this.Name = pf.Name.Value; if (pf.Description != null) this.Description = pf.Description.Value; if (pf.StringValue1 != null) this.StringValue1 = pf.StringValue1.Value; if (pf.StringValue2 != null) this.StringValue2 = pf.StringValue2.Value; if (pf.AutoFilter != null) this.AutoFilter.FromAutoFilter(pf.AutoFilter); }