IDEMPIERE-768 when changing docaction doesn't need to requery

This commit is contained in:
Carlos Ruiz 2013-03-18 19:55:56 -05:00
parent 16935ef96c
commit 73d38c9886
2 changed files with 6 additions and 6 deletions

View File

@ -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"))

View File

@ -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"))