Remove unnecessary max length for search criteria input box.

This commit is contained in:
Heng Sin Low 2011-02-07 18:07:39 +08:00
parent 3cb79e95d4
commit b7b4573689
1 changed files with 1 additions and 6 deletions

View File

@ -257,13 +257,9 @@ public class InfoProductPanel extends InfoPanel implements EventListener
m_InfoPAttributeButton.addEventListener(Events.ON_CLICK,this); m_InfoPAttributeButton.addEventListener(Events.ON_CLICK,this);
fieldValue = new Textbox(); fieldValue = new Textbox();
fieldValue.setMaxlength(40);
fieldName = new Textbox(); fieldName = new Textbox();
fieldName.setMaxlength(40);
fieldUPC = new Textbox(); fieldUPC = new Textbox();
fieldUPC.setMaxlength(40);
fieldSKU = new Textbox(); fieldSKU = new Textbox();
fieldSKU.setMaxlength(40);
pickPriceList = new Listbox(); pickPriceList = new Listbox();
pickPriceList.setRows(0); pickPriceList.setRows(0);
pickPriceList.setMultiple(false); pickPriceList.setMultiple(false);
@ -294,7 +290,6 @@ public class InfoProductPanel extends InfoPanel implements EventListener
pickWarehouse.addEventListener(Events.ON_SELECT, this); pickWarehouse.addEventListener(Events.ON_SELECT, this);
fieldVendor = new Textbox(); fieldVendor = new Textbox();
fieldVendor.setMaxlength(40);
contentPanel.setVflex(true); contentPanel.setVflex(true);
} // initComponents } // initComponents
@ -1164,7 +1159,7 @@ public class InfoProductPanel extends InfoPanel implements EventListener
if (s_productLayout == null) if (s_productLayout == null)
{ {
ArrayList<ColumnInfo> list = new ArrayList<ColumnInfo>(); ArrayList<ColumnInfo> list = new ArrayList<ColumnInfo>();
list.add(new ColumnInfo(" ", "p.M_Product_ID", IDColumn.class)); list.add(new ColumnInfo(" ", "p.M_Product_ID", IDColumn.class, false, false, null));
list.add(new ColumnInfo(Msg.translate(Env.getCtx(), "Discontinued").substring(0, 1), "p.Discontinued", Boolean.class)); list.add(new ColumnInfo(Msg.translate(Env.getCtx(), "Discontinued").substring(0, 1), "p.Discontinued", Boolean.class));
list.add(new ColumnInfo(Msg.translate(Env.getCtx(), "Value"), "p.Value", String.class)); list.add(new ColumnInfo(Msg.translate(Env.getCtx(), "Value"), "p.Value", String.class));
list.add(new ColumnInfo(Msg.translate(Env.getCtx(), "Name"), "p.Name", String.class)); list.add(new ColumnInfo(Msg.translate(Env.getCtx(), "Name"), "p.Name", String.class));