IDEMPIERE-2613 Process saved params doesn't update Display and ReadOnly Logics
This commit is contained in:
parent
30d9374764
commit
66b75a91fb
|
@ -53,6 +53,7 @@ import org.compiere.model.MPInstancePara;
|
||||||
import org.compiere.process.ProcessInfo;
|
import org.compiere.process.ProcessInfo;
|
||||||
import org.compiere.util.CLogger;
|
import org.compiere.util.CLogger;
|
||||||
import org.compiere.util.DB;
|
import org.compiere.util.DB;
|
||||||
|
import org.compiere.util.DisplayType;
|
||||||
import org.compiere.util.Env;
|
import org.compiere.util.Env;
|
||||||
import org.compiere.util.Msg;
|
import org.compiere.util.Msg;
|
||||||
import org.zkoss.zk.ui.Component;
|
import org.zkoss.zk.ui.Component;
|
||||||
|
@ -504,10 +505,21 @@ public class ProcessParameterPanel extends Panel implements
|
||||||
}
|
}
|
||||||
else if ( !Env.ZERO.equals(para.getP_Number()) || !Env.ZERO.equals(para.getP_Number_To()) )
|
else if ( !Env.ZERO.equals(para.getP_Number()) || !Env.ZERO.equals(para.getP_Number_To()) )
|
||||||
{
|
{
|
||||||
|
if (DisplayType.isID(para.getDisplayType())) {
|
||||||
|
editor.setValue(para.getP_Number().intValue());
|
||||||
|
if (editor2 != null)
|
||||||
|
editor2.setValue(para.getP_Number_To().intValue());
|
||||||
|
} else {
|
||||||
editor.setValue(para.getP_Number());
|
editor.setValue(para.getP_Number());
|
||||||
if (editor2 != null)
|
if (editor2 != null)
|
||||||
editor2.setValue(para.getP_Number_To());
|
editor2.setValue(para.getP_Number_To());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
if (editor.getValue() != null) {
|
||||||
|
ValueChangeEvent changeEvent = new ValueChangeEvent(editor, editor.getColumnName(), editor.getValue(), null);
|
||||||
|
valueChange(changeEvent);
|
||||||
|
// Note that the second editor2 in ranges has no event verification
|
||||||
|
}
|
||||||
|
|
||||||
log.fine(para.toString());
|
log.fine(para.toString());
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue