|
|
@ -62,14 +62,12 @@ namespace ICSharpCode.Reporting.PageBuilder |
|
|
|
|
|
|
|
|
|
|
|
void BuildDetail(){ |
|
|
|
void BuildDetail(){ |
|
|
|
CurrentSection = ReportModel.DetailSection; |
|
|
|
CurrentSection = ReportModel.DetailSection; |
|
|
|
if(DataSourceContainsData()) { |
|
|
|
CurrentLocation = DetailStart; |
|
|
|
CurrentLocation = DetailStart; |
|
|
|
var converter = new ContainerConverter(DetailStart); |
|
|
|
var converter = new ContainerConverter(DetailStart); |
|
|
|
if (IsGrouped()) { |
|
|
|
if (IsGrouped()) { |
|
|
|
BuildGroupedDetails(converter,DetailStart); |
|
|
|
BuildGroupedDetails(converter,DetailStart); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
BuildSortedDetails(converter,DetailStart); |
|
|
|
BuildSortedDetails(converter,DetailStart); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -235,17 +233,7 @@ namespace ICSharpCode.Reporting.PageBuilder |
|
|
|
|
|
|
|
|
|
|
|
void CreateDataSource(){ |
|
|
|
void CreateDataSource(){ |
|
|
|
DataSource = new CollectionDataSource(List, ReportModel.ReportSettings); |
|
|
|
DataSource = new CollectionDataSource(List, ReportModel.ReportSettings); |
|
|
|
if (DataSourceContainsData()) { |
|
|
|
DataSource.Bind(); |
|
|
|
DataSource.Bind(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool DataSourceContainsData () { |
|
|
|
|
|
|
|
if (DataSource.Count > 0) { |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|