private void EnsureParenetIdOfReportGroupItem(ReportGroupItem item) { if (item.ReportGroupId != this.ID) { item.AttachToParent(this.ID); } }
private void EnsureParenetIdOfReportGroupItem(ReportGroupItem item) { if (item.ReportGroupId != this.ID) item.AttachToParent(this.ID); }
/// <summary> /// 添加报表分组项 /// </summary> /// <param name="item">要添加的报表分组项</param> public void AddGroupItem(ReportGroupItem item) { this.EnsureNotNullOfReportGroupItems(); this.EnsureParenetIdOfReportGroupItem(item); this.ReportGroupItems.Add(item); }