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(); }
public ReportDefinition GetDefinition(string fileName) { ReportDefinition definition = new ReportDefinition(); return definition.Get(fileName); }
internal ReportBuilder(ReportDefinition definition) { this.Definition = definition; }