From 73d38c9886705a9b011e461ffee678cae21922b9 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Mon, 18 Mar 2013 19:55:56 -0500 Subject: [PATCH] IDEMPIERE-768 when changing docaction doesn't need to requery --- .../src/org/adempiere/webui/apps/form/WInOutGen.java | 6 +++--- .../src/org/adempiere/webui/apps/form/WInvoiceGen.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WInOutGen.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WInOutGen.java index 3b90957bac..a1e17f0d80 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WInOutGen.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WInOutGen.java @@ -141,7 +141,7 @@ public class WInOutGen extends InOutGen implements IFormController, EventListene false, "AD_Ref_List.Value IN ('CO','PR')"); docAction = new WTableDirEditor("DocAction", true, false, true,docActionL); docAction.setValue(DocAction.ACTION_Complete); - docAction.addValueChangeListener(this); + // docAction.addValueChangeListener(this); // IDEMPIERE-768 // C_Order.C_BPartner_ID MLookup bpL = MLookupFactory.get (Env.getCtx(), form.getWindowNo(), 0, 2762, DisplayType.Search); fBPartner = new WSearchEditor("C_BPartner_ID", false, false, true, bpL); @@ -174,7 +174,7 @@ public class WInOutGen extends InOutGen implements IFormController, EventListene */ public void onEvent(Event e) { - log.info("Cmd=" + e.getTarget().getId()); + if (log.isLoggable(Level.INFO)) log.info("Cmd=" + e.getTarget().getId()); // if(cmbDocType.equals(e.getTarget())) { @@ -214,7 +214,7 @@ public class WInOutGen extends InOutGen implements IFormController, EventListene */ public void valueChange(ValueChangeEvent e) { - log.info(e.getPropertyName() + "=" + e.getNewValue()); + if (log.isLoggable(Level.INFO)) log.info(e.getPropertyName() + "=" + e.getNewValue()); if (e.getPropertyName().equals("M_Warehouse_ID")) setM_Warehouse_ID(e.getNewValue()); if (e.getPropertyName().equals("C_BPartner_ID")) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WInvoiceGen.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WInvoiceGen.java index 7d51eb5610..b2b1a38b40 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WInvoiceGen.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WInvoiceGen.java @@ -143,7 +143,7 @@ public class WInvoiceGen extends InvoiceGen implements IFormController, EventLis false, "AD_Ref_List.Value IN ('CO','PR')"); docAction = new WTableDirEditor("DocAction", true, false, true,docActionL); docAction.setValue(DocAction.ACTION_Complete); - docAction.addValueChangeListener(this); + // docAction.addValueChangeListener(this); // IDEMPIERE-768 // Document Type Sales Order/Vendor RMA lDocType.setText(Msg.translate(Env.getCtx(), "C_DocType_ID")); @@ -172,7 +172,7 @@ public class WInvoiceGen extends InvoiceGen implements IFormController, EventLis */ public void onEvent(Event e) { - log.info("Cmd=" + e.getTarget().getId()); + if (log.isLoggable(Level.INFO)) log.info("Cmd=" + e.getTarget().getId()); // if(cmbDocType.equals(e.getTarget())) { @@ -201,7 +201,7 @@ public class WInvoiceGen extends InvoiceGen implements IFormController, EventLis */ public void valueChange(ValueChangeEvent e) { - log.info(e.getPropertyName() + "=" + e.getNewValue()); + if (log.isLoggable(Level.INFO)) log.info(e.getPropertyName() + "=" + e.getNewValue()); if (e.getPropertyName().equals("AD_Org_ID")) m_AD_Org_ID = e.getNewValue(); if (e.getPropertyName().equals("C_BPartner_ID"))