1003869 Form to captured process parameter for scheduler. IDEMPIERE-1486 / Fixed captured to value for non-range parameter as well.

This commit is contained in:
Heng Sin Low 2014-04-02 06:47:46 +08:00
parent 63b3aac408
commit 63c57b944c
1 changed files with 4 additions and 4 deletions

View File

@ -73,21 +73,21 @@ public class WProcessParameter implements IFormController {
if (DisplayType.isNumeric(processPara.getAD_Reference_ID())) {
if (para.getP_Number() != null)
schedulerPara.setParameterDefault(para.getP_Number().toString());
if (para.getP_Number_To() != null)
if (processPara.isRange() && para.getP_Number_To() != null)
schedulerPara.setParameterToDefault(para.getP_Number_To().toString());
} else if (DisplayType.isID(processPara.getAD_Reference_ID())) {
if (para.getP_Number() != null)
schedulerPara.setParameterDefault(Integer.toString(para.getP_Number().intValue()));
if (para.getP_Number_To() != null)
if (processPara.isRange() && para.getP_Number_To() != null)
schedulerPara.setParameterToDefault(Integer.toString(para.getP_Number_To().intValue()));
} else if (DisplayType.isDate(processPara.getAD_Reference_ID())) {
if (para.getP_Date() != null)
schedulerPara.setParameterDefault(para.getP_Date().toString());
if (para.getP_Date_To() != null)
if (processPara.isRange() && para.getP_Date_To() != null)
schedulerPara.setParameterToDefault(para.getP_Date_To().toString());
} else {
schedulerPara.setParameterDefault(para.getP_String());
if (para.getP_String_To() != null)
if (processPara.isRange() && para.getP_String_To() != null)
schedulerPara.setParameterToDefault(para.getP_String_To());
}
if (!Util.isEmpty(para.getInfo())) {