1003376 Form to captured process parameter for scheduler. Captured display label into AD_Scheduler_Para.Description. IDEMPIERE-1486

This commit is contained in:
Heng Sin Low 2013-10-23 17:08:37 +08:00
parent 2d7e991095
commit 270aa0c6f6
1 changed files with 12 additions and 0 deletions

View File

@ -24,6 +24,7 @@ import org.compiere.model.MScheduler;
import org.compiere.model.MSchedulerPara;
import org.compiere.util.DisplayType;
import org.compiere.util.Env;
import org.compiere.util.Util;
/**
* @author hengsin
@ -89,6 +90,17 @@ public class WProcessParameter implements IFormController {
if (para.getP_String_To() != null)
schedulerPara.setParameterToDefault(para.getP_String_To());
}
if (!Util.isEmpty(para.getInfo())) {
schedulerPara.setDescription(para.getInfo());
}
if (!Util.isEmpty(para.getInfo_To())) {
String s = schedulerPara.getDescription();
if (Util.isEmpty(s))
s = para.getInfo_To();
else
s = s + ", " + para.getInfo_To();
schedulerPara.setDescription(s);
}
break;
}
}