- Vendor checkbox on BP Lookup not working correctly
This commit is contained in:
Heng Sin Low 2009-06-18 12:25:28 +00:00
parent 70e0edbfa2
commit 60143c031e
2 changed files with 12 additions and 13 deletions

View File

@ -60,7 +60,7 @@ public class InfoBPartnerPanel extends InfoPanel implements EventListener, WTabl
/** /**
* *
*/ */
private static final long serialVersionUID = -660673175154418548L; private static final long serialVersionUID = 5677624151607188344L;
private Label lblValue ; private Label lblValue ;
private Textbox fieldValue ; private Textbox fieldValue ;
private Label lblName; private Label lblName;
@ -75,7 +75,6 @@ public class InfoBPartnerPanel extends InfoPanel implements EventListener, WTabl
private Intbox fieldPhone; private Intbox fieldPhone;
private Checkbox checkAND ; private Checkbox checkAND ;
private Checkbox checkCustomer; private Checkbox checkCustomer;
private Checkbox checkVendor;
private int m_AD_User_ID_index = -1; // Elaine 2008/12/16 private int m_AD_User_ID_index = -1; // Elaine 2008/12/16
private int m_C_BPartner_Location_ID_index = -1; private int m_C_BPartner_Location_ID_index = -1;
@ -171,13 +170,12 @@ public class InfoBPartnerPanel extends InfoPanel implements EventListener, WTabl
checkAND.setChecked(true); checkAND.setChecked(true);
checkAND.addEventListener(Events.ON_CHECK, this); checkAND.addEventListener(Events.ON_CHECK, this);
checkCustomer = new Checkbox(); checkCustomer = new Checkbox();
checkCustomer.setLabel(Msg.getMsg(Env.getCtx(), "OnlyCustomers"));
checkCustomer.setChecked(true); checkCustomer.setChecked(true);
checkCustomer.addEventListener(Events.ON_CHECK, this); checkCustomer.addEventListener(Events.ON_CHECK, this);
checkVendor = new Checkbox(); if (m_isSOTrx)
checkVendor.setChecked(true); checkCustomer.setLabel(Msg.getMsg(Env.getCtx(), "OnlyCustomers"));
checkVendor.setLabel(Msg.getMsg(Env.getCtx(), "OnlyVendors")); else
checkVendor.addEventListener(Events.ON_CHECK, this); checkCustomer.setLabel(Msg.getMsg(Env.getCtx(), "OnlyVendors"));
contentPanel.setWidth("99%"); contentPanel.setWidth("99%");
contentPanel.setHeight("400px"); contentPanel.setHeight("400px");
@ -207,7 +205,7 @@ public class InfoBPartnerPanel extends InfoPanel implements EventListener, WTabl
row.appendChild(fieldContact); row.appendChild(fieldContact);
row.appendChild(lblPhone.rightAlign()); row.appendChild(lblPhone.rightAlign());
row.appendChild(fieldPhone); row.appendChild(fieldPhone);
row.appendChild(m_isSOTrx ? checkCustomer : checkVendor); row.appendChild(checkCustomer);
row = new Row(); row = new Row();
rows.appendChild(row); rows.appendChild(row);

View File

@ -919,7 +919,8 @@ public abstract class InfoPanel extends Window implements EventListener, WTableM
contentPanel.setSelectedIndex(0); contentPanel.setSelectedIndex(0);
} }
} }
else if (Events.ON_OK.equals(event.getName())) //default
else
{ {
executeQuery(); executeQuery();
renderItems(); renderItems();