public void Fill(ReportItemCollection collection) { foreach (IReportItem item in collection) { this.store.Fill(item); } }
private static void AdjustParentInternal(ReportItemCollection items, BaseReportItem parent) { foreach (BaseReportItem item in items) { item.Parent = parent; } }
public ReportItemCollection ExtractGroupedColumns() { Collection <BaseDataItem> inheritedReportItems = CreateGroupedList(); ReportItemCollection r = new ReportItemCollection(); r.AddRange(inheritedReportItems); return(r); }
public void Fill(ReportItemCollection collection) { foreach (var item in collection) { IDataItem dataItem = item as IDataItem; if (dataItem != null) { this.store.Fill(dataItem); } } }
protected override void Dispose(bool disposing) { try { if (disposing) { if (this.items != null) { this.items.Clear(); this.items = null; } } } finally { base.Dispose(disposing); } }
public void Fill(ReportItemCollection collection) { TableStrategy tableStrategy = store as TableStrategy; foreach (var item in collection) { IDataItem dataItem = item as IDataItem; if (dataItem != null) { CurrentItemsCollection currentItemsCollection = tableStrategy.FillDataRow(this.indexList[CurrentRow].ListIndex); CurrentItem s = currentItemsCollection.FirstOrDefault(x => x.ColumnName == dataItem.ColumnName); dataItem.DBValue = s.Value.ToString(); } } }
public static void AdjustParent(BaseReportItem parent, ReportItemCollection items) { foreach (BaseReportItem i in items) { i.Parent = parent; ISimpleContainer ic = i as ISimpleContainer; if (ic != null) { AdjustParentInternal(ic.Items, i); } else { AdjustParentInternal(items, parent); } } }
public static void Displaychain(ReportItemCollection items) { Console.WriteLine(); Console.WriteLine("BasePager:Displaychain"); foreach (BaseReportItem i in items) { ISimpleContainer ic = i as ISimpleContainer; if (ic != null) { Console.WriteLine("recursive with <{0}> as parent", i.ToString()); Displaychain(ic.Items); } else { Console.WriteLine("{0}", i.ToString()); } } }
private void EvaluateRecursive(IExpressionEvaluatorFacade evaluatorFassade, ReportItemCollection items) { foreach (BaseReportItem be in items) { ISimpleContainer ec = be as ISimpleContainer; if (ec != null) { if (ec.Items.Count > 0) { EvaluateRecursive(evaluatorFassade, ec.Items); } } BaseTextItem bt = be as BaseTextItem; if (bt != null) { bt.Text = evaluatorFassade.Evaluate(bt.Text); } } }
private BaseReportItem FindRec(ReportItemCollection items, string name) { foreach (BaseReportItem item in items) { ISimpleContainer cont = item as ISimpleContainer; if (cont != null) { return(FindRec(cont.Items, name)); } else { var query = from bt in items where bt.Name == name select bt; if (query.Count() > 0) { return(query.FirstOrDefault()); } } } return(null); }
public void Fill(ReportItemCollection collection) { var position = this.indexList[this.indexList.CurrentPosition].ListIndex; dataStore.Fill(position, collection); }