//05-09-2008@Scott
//		private void CalculateAllTotal(System.Data.DataTable i_Table,int i_FilteredRowsCount, Webb.Collections.Int32Collection i_Rows)
//		{
//			this.TotalSummaries.Clear();
//
//			this.GetTotalSummaries(this.TotalSummaries);
//
//			foreach(GroupSummary summary in this.TotalSummaries)
//			{
//				summary.CalculateResult(i_Table,i_FilteredRowsCount,i_Rows.Count/*08-27-2008@Scott*/,i_Rows);
//			}
//		}

        //05-09-2008@Scott
        private Int32Collection GetAllTotalIndicators()
        {
            Int32Collection totalIndicators = new Int32Collection();

            if (this.RootGroupInfo.GroupResults == null)
            {
                return(totalIndicators);
            }

            foreach (GroupResult result in this.RootGroupInfo.GroupResults)
            {
                if (result.RowIndicators == null)
                {
                    continue;
                }

                foreach (int row in result.RowIndicators)
                {
                    if (totalIndicators.Contains(row))
                    {
                        continue;
                    }

                    totalIndicators.Add(row);
                }
            }

            return(totalIndicators);
        }
Beispiel #2
0
        public Int32Collection Combine(params Int32Collection[] array)
        {
            Int32Collection retArray = new Int32Collection();

            foreach (Int32Collection col in array)
            {
                if (col == null)
                {
                    continue;
                }

                foreach (int i in col)
                {
                    if (!retArray.Contains(i))
                    {
                        retArray.Add(i);
                    }
                }
            }

            return(retArray);
        }