private void SaveReport(string title, string fileName, string menuCode, string parentMenuCode, string topSection, string body, string bottomSection,
            IEnumerable<Data.ReportWriter.DataSource> dataSources, IEnumerable<Data.ReportWriter.Grid> gridViews)
        {
            ReportDefinition definition = new ReportDefinition
            {
                Title = title,
                FileName = fileName,
                MenuCode = menuCode,
                ParentMenuCode = parentMenuCode,
                TopSection = topSection,
                Body = body,
                BottomSection = bottomSection,
                DataSources = dataSources,
                GridViews = gridViews
            };

            definition.Save();
        }
Exemplo n.º 2
0
 public ReportDefinition GetDefinition(string fileName)
 {
     ReportDefinition definition = new ReportDefinition();
     return definition.Get(fileName);
 }
Exemplo n.º 3
0
 internal ReportBuilder(ReportDefinition definition)
 {
     this.Definition = definition;
 }
Exemplo n.º 4
0
 internal ReportBuilder(ReportDefinition definition)
 {
     this.Definition = definition;
 }