Exemple #1
0
        public override Table[] GetTables(ReportTemplateParser parser)
        {
            var resultTables = new List <Table>();

            try
            {
                if (Body != null)
                {
                    parser.RunFor(Each, In,
                                  delegate
                    {
                        foreach (Table tableTemplate in Body)
                        {
                            var table = new Table
                            {
                                Columns  = tableTemplate.Columns,
                                IsDotted = tableTemplate.IsDotted,
                                Lines    = new Lines()
                            };
                            table.Lines.AddRange(ReportTemplate.ConstructHeader(tableTemplate.Body));
                            resultTables.Add(table);
                        }
                    });
                }
            }
            catch (ReportTemplateParserException pex)
            {
                throw new ApplicationException("Ошибка построения тела таблицы", pex);
            }
            return(resultTables.ToArray());
        }
Exemple #2
0
 public override Table[] GetTables(ReportTemplateParser parser)
 {
     Lines = new Lines();
     Lines.AddRange(ReportTemplate.ConstructHeader(Body));
     return(new[] { this });
 }