From 66b75a91fbabf321c52cba412c2fabaa01119ab0 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 27 May 2015 14:53:41 -0500 Subject: [PATCH] IDEMPIERE-2613 Process saved params doesn't update Display and ReadOnly Logics --- .../webui/apps/ProcessParameterPanel.java | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessParameterPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessParameterPanel.java index 7c0608fea2..698f8cf792 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessParameterPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessParameterPanel.java @@ -53,6 +53,7 @@ import org.compiere.model.MPInstancePara; import org.compiere.process.ProcessInfo; import org.compiere.util.CLogger; import org.compiere.util.DB; +import org.compiere.util.DisplayType; import org.compiere.util.Env; import org.compiere.util.Msg; import org.zkoss.zk.ui.Component; @@ -504,9 +505,20 @@ public class ProcessParameterPanel extends Panel implements } else if ( !Env.ZERO.equals(para.getP_Number()) || !Env.ZERO.equals(para.getP_Number_To()) ) { - editor.setValue(para.getP_Number()); - if (editor2 != null) - editor2.setValue(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()); + if (editor2 != null) + 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());