Esempio n. 1
0
 public void Fill(ReportItemCollection collection)
 {
     foreach (IReportItem item in collection)
     {
         this.store.Fill(item);
     }
 }
Esempio n. 2
0
 private static void AdjustParentInternal(ReportItemCollection items, BaseReportItem parent)
 {
     foreach (BaseReportItem item in items)
     {
         item.Parent = parent;
     }
 }
Esempio n. 3
0
        public ReportItemCollection ExtractGroupedColumns()
        {
            Collection <BaseDataItem> inheritedReportItems = CreateGroupedList();
            ReportItemCollection      r = new ReportItemCollection();

            r.AddRange(inheritedReportItems);
            return(r);
        }
Esempio n. 4
0
 public void Fill(ReportItemCollection collection)
 {
     foreach (var item in collection)
     {
         IDataItem dataItem = item as IDataItem;
         if (dataItem != null)
         {
             this.store.Fill(dataItem);
         }
     }
 }
Esempio n. 5
0
 protected override void Dispose(bool disposing)
 {
     try {
         if (disposing)
         {
             if (this.items != null)
             {
                 this.items.Clear();
                 this.items = null;
             }
         }
     } finally {
         base.Dispose(disposing);
     }
 }
Esempio n. 6
0
        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();
                }
            }
        }
Esempio n. 7
0
 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);
         }
     }
 }
Esempio n. 8
0
 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());
         }
     }
 }
Esempio n. 9
0
 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);
         }
     }
 }
Esempio n. 10
0
 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);
 }
Esempio n. 11
0
        public void Fill(ReportItemCollection collection)
        {
            var position = this.indexList[this.indexList.CurrentPosition].ListIndex;

            dataStore.Fill(position, collection);
        }