public ReportView AddRootView()
{
ReportViewTemplate reportTemplate = Repository.ViewTemplates.FirstOrDefault(i => i.ParentNames.Count == 0 && i.Name == "Report");
ReportView view = null;
if (reportTemplate != null)
{
view = ReportView.Create(reportTemplate);
view.ModelGUID = "";
view.Report = this;
view.InitReferences();
Views.Add(view);
}
return view;
}