@ -439,9 +439,14 @@ public abstract class DesignTableDataManager {
* @throws Exception 异常
* /
public static EmbeddedTableData previewTableDataNeedInputParameters ( TableDataSource tableDataSource , TableData tabledata , int rowCount , boolean needLoadingBar ) throws Exception {
return previewTableData ( tableDataSource , tabledata , rowCount , true , needLoadingBar ) ;
return previewTableDataNeedInputParameters ( tableDataSource , tabledata , rowCount , needLoadingBar , null ) ;
}
public static EmbeddedTableData previewTableDataNeedInputParameters ( TableDataSource tableDataSource , TableData tabledata , int rowCount , boolean needLoadingBar , AutoProgressBar progressBar ) throws Exception {
return previewTableData ( tableDataSource , tabledata , rowCount , true , needLoadingBar , progressBar ) ;
}
/ * *
* 预览不需要参数的数据集
*
@ -478,7 +483,16 @@ public abstract class DesignTableDataManager {
* @return
* /
private static EmbeddedTableData previewTableData ( TableDataSource tableDataSource , TableData tabledata , int rowCount , boolean isMustInputParameters , boolean needLoadingBar ) throws Exception {
final AutoProgressBar loadingBar = PreviewTablePane . getInstance ( ) . getProgressBar ( ) ;
return previewTableData ( tableDataSource , tabledata , rowCount , isMustInputParameters , needLoadingBar , null ) ;
}
private static EmbeddedTableData previewTableData ( TableDataSource tableDataSource , TableData tabledata , int rowCount , boolean isMustInputParameters , boolean needLoadingBar , AutoProgressBar progressBar ) throws Exception {
final AutoProgressBar loadingBar ;
if ( progressBar = = null ) {
loadingBar = PreviewTablePane . getInstance ( ) . getProgressBar ( ) ;
} else {
loadingBar = progressBar ;
}
ParameterProvider [ ] parameters = DataOperator . getInstance ( ) . getTableDataParameters ( tabledata ) ;
if ( ArrayUtils . isEmpty ( parameters ) ) {
parameters = tabledata . getParameters ( Calculator . createCalculator ( ) ) ;