trifonnt 2008-01-12 23:38:27 +00:00
parent f4ae71a961
commit 90771f9ef1
1 changed files with 9 additions and 7 deletions

View File

@ -803,14 +803,16 @@ public class ReportStarter implements ProcessCall, ClientProcess {
} }
private void addProcessInfoParameters(Map<String, Object> params, ProcessInfoParameter[] para) { private void addProcessInfoParameters(Map<String, Object> params, ProcessInfoParameter[] para) {
for (int i = 0; i < para.length; i++) { if (para != null) {
if (para[i].getParameter_To() == null) { for (int i = 0; i < para.length; i++) {
params.put(para[i].getParameterName(), para[i].getParameter()); if (para[i].getParameter_To() == null) {
} else { params.put(para[i].getParameterName(), para[i].getParameter());
params.put( para[i].getParameterName()+"1", para[i].getParameter()); } else {
params.put( para[i].getParameterName()+"2", para[i].getParameter_To()); params.put( para[i].getParameterName()+"1", para[i].getParameter());
params.put( para[i].getParameterName()+"2", para[i].getParameter_To());
}
} }
} }
} }
/** /**