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:
hengsin 2023-04-28 18:26:47 +08:00 committed by GitHub
parent 6f7e0001a4
commit 7bd5e579ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 2 deletions

View File

@ -542,4 +542,13 @@ public final class MLocatorLookup extends Lookup implements Serializable
m_ctx = ctx;
m_parsedValidation = null;
}
/**
* Set SQL validation code for lookup
* @param validationCode
*/
public void setValidationCode(String validationCode)
{
m_validationCode = validationCode;
}
} // MLocatorLookup

View File

@ -467,7 +467,7 @@ public class WLocatorEditor extends WEditor implements EventListener<Event>, Pro
* @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
String only_Warehouse=null;
@ -505,7 +505,7 @@ public class WLocatorEditor extends WEditor implements EventListener<Event>, Pro
* @return M_Product_ID or 0
*/
private int getOnly_Product_ID()
protected int getOnly_Product_ID()
{
if (!Env.isSOTrx(Env.getCtx(), m_WindowNo))
return 0; // No product restrictions for PO
@ -602,4 +602,11 @@ public class WLocatorEditor extends WEditor implements EventListener<Event>, Pro
super.dynamicDisplay(ctx);
m_mLocator.dynamicDisplay(ctx);
}
/**
* @return {@link MLocatorLookup}
*/
public MLocatorLookup getMLocatorLookup() {
return m_mLocator;
}
}