IDEMPIERE-768 when changing docaction doesn't need to requery
This commit is contained in:
parent
16935ef96c
commit
73d38c9886
|
@ -141,7 +141,7 @@ public class WInOutGen extends InOutGen implements IFormController, EventListene
|
||||||
false, "AD_Ref_List.Value IN ('CO','PR')");
|
false, "AD_Ref_List.Value IN ('CO','PR')");
|
||||||
docAction = new WTableDirEditor("DocAction", true, false, true,docActionL);
|
docAction = new WTableDirEditor("DocAction", true, false, true,docActionL);
|
||||||
docAction.setValue(DocAction.ACTION_Complete);
|
docAction.setValue(DocAction.ACTION_Complete);
|
||||||
docAction.addValueChangeListener(this);
|
// docAction.addValueChangeListener(this); // IDEMPIERE-768
|
||||||
// C_Order.C_BPartner_ID
|
// C_Order.C_BPartner_ID
|
||||||
MLookup bpL = MLookupFactory.get (Env.getCtx(), form.getWindowNo(), 0, 2762, DisplayType.Search);
|
MLookup bpL = MLookupFactory.get (Env.getCtx(), form.getWindowNo(), 0, 2762, DisplayType.Search);
|
||||||
fBPartner = new WSearchEditor("C_BPartner_ID", false, false, true, bpL);
|
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)
|
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()))
|
if(cmbDocType.equals(e.getTarget()))
|
||||||
{
|
{
|
||||||
|
@ -214,7 +214,7 @@ public class WInOutGen extends InOutGen implements IFormController, EventListene
|
||||||
*/
|
*/
|
||||||
public void valueChange(ValueChangeEvent e)
|
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"))
|
if (e.getPropertyName().equals("M_Warehouse_ID"))
|
||||||
setM_Warehouse_ID(e.getNewValue());
|
setM_Warehouse_ID(e.getNewValue());
|
||||||
if (e.getPropertyName().equals("C_BPartner_ID"))
|
if (e.getPropertyName().equals("C_BPartner_ID"))
|
||||||
|
|
|
@ -143,7 +143,7 @@ public class WInvoiceGen extends InvoiceGen implements IFormController, EventLis
|
||||||
false, "AD_Ref_List.Value IN ('CO','PR')");
|
false, "AD_Ref_List.Value IN ('CO','PR')");
|
||||||
docAction = new WTableDirEditor("DocAction", true, false, true,docActionL);
|
docAction = new WTableDirEditor("DocAction", true, false, true,docActionL);
|
||||||
docAction.setValue(DocAction.ACTION_Complete);
|
docAction.setValue(DocAction.ACTION_Complete);
|
||||||
docAction.addValueChangeListener(this);
|
// docAction.addValueChangeListener(this); // IDEMPIERE-768
|
||||||
|
|
||||||
// Document Type Sales Order/Vendor RMA
|
// Document Type Sales Order/Vendor RMA
|
||||||
lDocType.setText(Msg.translate(Env.getCtx(), "C_DocType_ID"));
|
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)
|
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()))
|
if(cmbDocType.equals(e.getTarget()))
|
||||||
{
|
{
|
||||||
|
@ -201,7 +201,7 @@ public class WInvoiceGen extends InvoiceGen implements IFormController, EventLis
|
||||||
*/
|
*/
|
||||||
public void valueChange(ValueChangeEvent e)
|
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"))
|
if (e.getPropertyName().equals("AD_Org_ID"))
|
||||||
m_AD_Org_ID = e.getNewValue();
|
m_AD_Org_ID = e.getNewValue();
|
||||||
if (e.getPropertyName().equals("C_BPartner_ID"))
|
if (e.getPropertyName().equals("C_BPartner_ID"))
|
||||||
|
|
Loading…
Reference in New Issue