|
|
@ -23,6 +23,7 @@ public abstract class VariableResolverAdapter implements VariableResolver { |
|
|
|
* |
|
|
|
* |
|
|
|
* @return 内置参数 |
|
|
|
* @return 内置参数 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Override |
|
|
|
public String[] resolveCurReportVariables() { |
|
|
|
public String[] resolveCurReportVariables() { |
|
|
|
String[] variables = new String[]{ |
|
|
|
String[] variables = new String[]{ |
|
|
|
ScriptConstants.SUMMARY_TAG + "page_number", |
|
|
|
ScriptConstants.SUMMARY_TAG + "page_number", |
|
|
@ -38,10 +39,10 @@ public abstract class VariableResolverAdapter implements VariableResolver { |
|
|
|
CalculatorProvider.SERVER_PORT, CalculatorProvider.SERVER_URL, CalculatorProvider.CONTEXT_PATH, CalculatorProvider.SESSION_ID |
|
|
|
CalculatorProvider.SERVER_PORT, CalculatorProvider.SERVER_URL, CalculatorProvider.CONTEXT_PATH, CalculatorProvider.SESSION_ID |
|
|
|
}; |
|
|
|
}; |
|
|
|
Set<BuiltInParametersProvider> set = ExtraClassManager.getInstance().getArray(BuiltInParametersProvider.XML_TAG); |
|
|
|
Set<BuiltInParametersProvider> set = ExtraClassManager.getInstance().getArray(BuiltInParametersProvider.XML_TAG); |
|
|
|
for (BuiltInParametersProvider provider : set) { |
|
|
|
for (BuiltInParametersProvider provider : set) { |
|
|
|
return (String[]) ArrayUtils.addAll(variables, new String[]{ |
|
|
|
ArrayUtils.addAll(variables, new String[]{ |
|
|
|
ScriptConstants.DETAIL_TAG + provider.getParametersName() |
|
|
|
ScriptConstants.DETAIL_TAG + provider.getParametersName() |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
return variables; |
|
|
|
return variables; |
|
|
|
} |
|
|
|
} |
|
|
@ -65,6 +66,8 @@ public abstract class VariableResolverAdapter implements VariableResolver { |
|
|
|
* |
|
|
|
* |
|
|
|
* @return 所有参数 |
|
|
|
* @return 所有参数 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
@SuppressWarnings("squid:S2259") |
|
|
|
public String[] resolveTableDataParameterVariables() { |
|
|
|
public String[] resolveTableDataParameterVariables() { |
|
|
|
Parameter[] parameters = getCurrentModeParameters(TABLE_DATA_PARA); |
|
|
|
Parameter[] parameters = getCurrentModeParameters(TABLE_DATA_PARA); |
|
|
|
String[] parameterNames = new String[parameters.length]; |
|
|
|
String[] parameterNames = new String[parameters.length]; |
|
|
@ -79,6 +82,8 @@ public abstract class VariableResolverAdapter implements VariableResolver { |
|
|
|
* |
|
|
|
* |
|
|
|
* @return 所有参数 |
|
|
|
* @return 所有参数 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
@SuppressWarnings("squid:S2259") |
|
|
|
public String[] resolveReportParameterVariables() { |
|
|
|
public String[] resolveReportParameterVariables() { |
|
|
|
Parameter[] parameters = getCurrentModeParameters(REPORT_DATA_PARA); |
|
|
|
Parameter[] parameters = getCurrentModeParameters(REPORT_DATA_PARA); |
|
|
|
String[] parameterNames = new String[parameters.length]; |
|
|
|
String[] parameterNames = new String[parameters.length]; |
|
|
@ -93,6 +98,7 @@ public abstract class VariableResolverAdapter implements VariableResolver { |
|
|
|
* |
|
|
|
* |
|
|
|
* @return 所有参数 |
|
|
|
* @return 所有参数 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Override |
|
|
|
public String[] resolveGlobalParameterVariables() { |
|
|
|
public String[] resolveGlobalParameterVariables() { |
|
|
|
// 加上全局的参数
|
|
|
|
// 加上全局的参数
|
|
|
|
Parameter[] globalParameters = ParameterConfig.getInstance().getGlobalParameters(); |
|
|
|
Parameter[] globalParameters = ParameterConfig.getInstance().getGlobalParameters(); |
|
|
|