Search in sources :

Example 6 with WLocatorEditor

use of org.adempiere.webui.editor.WLocatorEditor in project adempiere by adempiere.

the class WStocktake method dynParameter.

//  jbInit
/**
	 *  Initialize Parameter fields
	 *  @throws Exception if Lookups cannot be initialized
	 */
private void dynParameter() throws Exception {
    Properties ctx = Env.getCtx();
    //  Physical Inventory
    String vcode = "M_Inventory.IsStocktake='Y' ";
    MLookup inventoryLookup = MLookupFactory.get(ctx, m_WindowNo, 3563, DisplayType.TableDir, Env.getLanguage(Env.getCtx()), "M_Inventory_ID", 53249, true, vcode);
    inventoryField = new WTableDirEditor("M_Inventory_ID", false, false, true, inventoryLookup);
    //  Locator
    MLocatorLookup locatorLookup = new MLocatorLookup(ctx, m_WindowNo);
    locatorField = new WLocatorEditor("M_Locator_ID", false, false, true, locatorLookup, m_WindowNo);
    //	locatorField.addVetoableChangeListener(this);
    //  Product
    MLookup productLookup = MLookupFactory.get(ctx, m_WindowNo, 0, 3668, DisplayType.Search);
    productField = new WSearchEditor("M_Product_ID", false, false, true, productLookup);
    productField.addValueChangeListener(this);
    // Aisle(X)
    MLookup aislexLookup = MLookupFactory.get(ctx, m_WindowNo, 1399, DisplayType.Table, Env.getLanguage(Env.getCtx()), "X", 53562, false, null);
    aislexField = new WTableDirEditor("X", false, false, true, aislexLookup);
    //  Dates
    lineFField = new WNumberEditor();
    lineTField = new WNumberEditor();
    //
    confirmPanel.addActionListener(this);
    statusBar.setStatusLine("");
}
Also used : WTableDirEditor(org.adempiere.webui.editor.WTableDirEditor) MLocatorLookup(org.compiere.model.MLocatorLookup) WLocatorEditor(org.adempiere.webui.editor.WLocatorEditor) MLookup(org.compiere.model.MLookup) WSearchEditor(org.adempiere.webui.editor.WSearchEditor) Properties(java.util.Properties) WNumberEditor(org.adempiere.webui.editor.WNumberEditor)

Aggregations

WLocatorEditor (org.adempiere.webui.editor.WLocatorEditor)6 MLocatorLookup (org.compiere.model.MLocatorLookup)6 Properties (java.util.Properties)3 WSearchEditor (org.adempiere.webui.editor.WSearchEditor)3 WStringEditor (org.adempiere.webui.editor.WStringEditor)3 MLookup (org.compiere.model.MLookup)3 Row (org.adempiere.webui.component.Row)2 Rows (org.adempiere.webui.component.Rows)2 WTableDirEditor (org.adempiere.webui.editor.WTableDirEditor)2 Separator (org.zkoss.zul.Separator)2 WDateEditor (org.adempiere.webui.editor.WDateEditor)1 WNumberEditor (org.adempiere.webui.editor.WNumberEditor)1 WPAttributeEditor (org.adempiere.webui.editor.WPAttributeEditor)1 GridField (org.compiere.model.GridField)1 GridFieldVO (org.compiere.model.GridFieldVO)1 Language (org.compiere.util.Language)1