public override void CalculateResult(DataTable i_Table) { GroupView.ConvertOldGroupInfo(this._RootGroupInfo); if (i_Table == null) { this.RootGroupInfo.ClearGroupResult(this._RootGroupInfo); return; } Webb.Collections.Int32Collection m_Rows = this.OneValueScFilter.Filter.GetFilteredRows(i_Table); m_Rows = this.RepeatFilter.Filter.GetFilteredRows(i_Table, m_Rows); //Added this code at 2008-12-26 12:22:40@Simon m_Rows = this.Filter.GetFilteredRows(i_Table, m_Rows); this.AddSummaries(this._Series); //create summaries by series this._RootGroupInfo.CalculateGroupResult(i_Table, m_Rows, m_Rows, this._RootGroupInfo); switch (this.AppearanceType) { //calculate chart case ChartAppearanceType.Pie: { // Pie pie = new Pie(); // this.Chart = pie.CalculatePie(i_Table,this._RootGroupInfo,this.Filter,this.OneValueScFilter); // if(this.Chart is PieChart) // { // PieChart pieChart = this.Chart as PieChart; // pieChart.GradientText = this.GradientText; // pieChart.Position = this.TextPosition; // } break; } default: break; } }
/// <summary> /// Calculate result by data struct and data source. /// </summary> /// <param name="i_Table">data source table</param> public override void CalculateResult(DataTable i_Table) { GroupView.ConvertOldGroupInfo(this._RootGroupInfo); }