Ejemplo n.º 1
0
        public MatrixBuilder(DataClasses.ReportSettings settings)
        {
            _settings = settings;

            foreach (DataClasses.ReportColumn column in settings.MatrixRows)
            {
                RowFields.Add(column.Name.RemoveAccent());
            }


            foreach (DataClasses.ReportColumn column in settings.Columns)
            {
                if (column.ReportDataTypeId != DataClasses.ReportDataType.Number)
                {
                    ColumnFields.Add(column.Name);
                }
                else
                {
                    SummarizedFields.Add(column.Name);
                }
            }

            if (SummarizedFields.Count == 0)
            {
                SummarizedFields.Add("Qtd");
            }

            //SummarizedFields.Add(settings.MatrixRows[0].Name);
        }