IDEMPIERE-5689 Make MLocatorLookup and WLocatorEditor more extensible (#1800)
* IDEMPIERE-5689 Add setValidationCode to MLocatorLookup * IDEMPIERE-5689 Make MLocatorLookup and WLocatorEditor more extensible
This commit is contained in:
parent
6f7e0001a4
commit
7bd5e579ce
|
@ -542,4 +542,13 @@ public final class MLocatorLookup extends Lookup implements Serializable
|
||||||
m_ctx = ctx;
|
m_ctx = ctx;
|
||||||
m_parsedValidation = null;
|
m_parsedValidation = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set SQL validation code for lookup
|
||||||
|
* @param validationCode
|
||||||
|
*/
|
||||||
|
public void setValidationCode(String validationCode)
|
||||||
|
{
|
||||||
|
m_validationCode = validationCode;
|
||||||
|
}
|
||||||
} // MLocatorLookup
|
} // MLocatorLookup
|
||||||
|
|
|
@ -467,7 +467,7 @@ public class WLocatorEditor extends WEditor implements EventListener<Event>, Pro
|
||||||
* @return M_Warehouse_ID or 0
|
* @return M_Warehouse_ID or 0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
private int getOnly_Warehouse_ID()
|
protected int getOnly_Warehouse_ID()
|
||||||
{
|
{
|
||||||
//IDEMPIERE-4882 : Load Locator To field value as per Warehouse TO field value
|
//IDEMPIERE-4882 : Load Locator To field value as per Warehouse TO field value
|
||||||
String only_Warehouse=null;
|
String only_Warehouse=null;
|
||||||
|
@ -505,7 +505,7 @@ public class WLocatorEditor extends WEditor implements EventListener<Event>, Pro
|
||||||
* @return M_Product_ID or 0
|
* @return M_Product_ID or 0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
private int getOnly_Product_ID()
|
protected int getOnly_Product_ID()
|
||||||
{
|
{
|
||||||
if (!Env.isSOTrx(Env.getCtx(), m_WindowNo))
|
if (!Env.isSOTrx(Env.getCtx(), m_WindowNo))
|
||||||
return 0; // No product restrictions for PO
|
return 0; // No product restrictions for PO
|
||||||
|
@ -602,4 +602,11 @@ public class WLocatorEditor extends WEditor implements EventListener<Event>, Pro
|
||||||
super.dynamicDisplay(ctx);
|
super.dynamicDisplay(ctx);
|
||||||
m_mLocator.dynamicDisplay(ctx);
|
m_mLocator.dynamicDisplay(ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@link MLocatorLookup}
|
||||||
|
*/
|
||||||
|
public MLocatorLookup getMLocatorLookup() {
|
||||||
|
return m_mLocator;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue