Search in sources :

Example 16 with LookupValue

use of de.metas.ui.web.window.datatypes.LookupValue in project metasfresh-webui-api by metasfresh.

the class HuTraceQueryCreator method updateDocStatusFromParameter.

private static HUTraceEventQuery updateDocStatusFromParameter(@NonNull final HUTraceEventQuery query, @NonNull final DocumentFilterParam parameter) {
    errorIfQueryValueNotEmpty("DocStatus", query.getDocStatus(), query);
    final LookupValue value = (LookupValue) parameter.getValue();
    return query.withDocStatus(value.getIdAsString());
}
Also used : LookupValue(de.metas.ui.web.window.datatypes.LookupValue) IntegerLookupValue(de.metas.ui.web.window.datatypes.LookupValue.IntegerLookupValue)

Example 17 with LookupValue

use of de.metas.ui.web.window.datatypes.LookupValue in project metasfresh-webui-api by metasfresh.

the class HuTraceQueryCreator method updateProductIdFromParameter.

private static HUTraceEventQuery updateProductIdFromParameter(@NonNull final HUTraceEventQuery query, @NonNull final DocumentFilterParam parameter) {
    errorfIfNotEqualsOperator(parameter);
    errorIfQueryValueGreaterThanZero("ProductId", query.getProductId(), query);
    final LookupValue value = (LookupValue) parameter.getValue();
    return query.withProductId(value.getIdAsInt());
}
Also used : LookupValue(de.metas.ui.web.window.datatypes.LookupValue) IntegerLookupValue(de.metas.ui.web.window.datatypes.LookupValue.IntegerLookupValue)

Example 18 with LookupValue

use of de.metas.ui.web.window.datatypes.LookupValue in project metasfresh-webui-api by metasfresh.

the class HuTraceQueryCreator method updateMovementIdFromParameter.

private static HUTraceEventQuery updateMovementIdFromParameter(@NonNull final HUTraceEventQuery query, @NonNull final DocumentFilterParam parameter) {
    errorIfQueryValueGreaterThanZero("MovementId", query.getMovementId(), query);
    final LookupValue value = (LookupValue) parameter.getValue();
    return query.withMovementId(value.getIdAsInt());
}
Also used : LookupValue(de.metas.ui.web.window.datatypes.LookupValue) IntegerLookupValue(de.metas.ui.web.window.datatypes.LookupValue.IntegerLookupValue)

Example 19 with LookupValue

use of de.metas.ui.web.window.datatypes.LookupValue in project metasfresh-webui-api by metasfresh.

the class HuTraceQueryCreator method updateShipmentScheduleIdFromParameter.

private static HUTraceEventQuery updateShipmentScheduleIdFromParameter(@NonNull final HUTraceEventQuery query, @NonNull final DocumentFilterParam parameter) {
    errorIfQueryValueGreaterThanZero("ShipmentScheduleId", query.getShipmentScheduleId(), query);
    final LookupValue value = (LookupValue) parameter.getValue();
    return query.withShipmentScheduleId(value.getIdAsInt());
}
Also used : LookupValue(de.metas.ui.web.window.datatypes.LookupValue) IntegerLookupValue(de.metas.ui.web.window.datatypes.LookupValue.IntegerLookupValue)

Example 20 with LookupValue

use of de.metas.ui.web.window.datatypes.LookupValue in project metasfresh-webui-api by metasfresh.

the class HuTraceQueryCreator method updatePpCostCollectorIdFromParameter.

private static HUTraceEventQuery updatePpCostCollectorIdFromParameter(@NonNull final HUTraceEventQuery query, @NonNull final DocumentFilterParam parameter) {
    errorIfQueryValueGreaterThanZero("PpCostCollectorId", query.getPpCostCollectorId(), query);
    final LookupValue value = (LookupValue) parameter.getValue();
    return query.withPpCostCollectorId(value.getIdAsInt());
}
Also used : LookupValue(de.metas.ui.web.window.datatypes.LookupValue) IntegerLookupValue(de.metas.ui.web.window.datatypes.LookupValue.IntegerLookupValue)

Aggregations

LookupValue (de.metas.ui.web.window.datatypes.LookupValue)31 IntegerLookupValue (de.metas.ui.web.window.datatypes.LookupValue.IntegerLookupValue)25 LookupValuesList (de.metas.ui.web.window.datatypes.LookupValuesList)7 JSONLookupValue (de.metas.ui.web.window.datatypes.json.JSONLookupValue)6 ITranslatableString (de.metas.i18n.ITranslatableString)5 AdempiereException (org.adempiere.exceptions.AdempiereException)4 Map (java.util.Map)3 ImmutableList (com.google.common.collect.ImmutableList)2 ImmutableSet (com.google.common.collect.ImmutableSet)2 IHUOrderBL (de.metas.handlingunits.order.api.IHUOrderBL)2 NumberTranslatableString (de.metas.i18n.NumberTranslatableString)2 BoilerPlateContext (de.metas.letters.model.MADBoilerPlate.BoilerPlateContext)2 ProcessInfoParameter (de.metas.process.ProcessInfoParameter)2 QuickInput (de.metas.ui.web.quickinput.QuickInput)2 DocumentPath (de.metas.ui.web.window.datatypes.DocumentPath)2 StringLookupValue (de.metas.ui.web.window.datatypes.LookupValue.StringLookupValue)2 Password (de.metas.ui.web.window.datatypes.Password)2 JSONDate (de.metas.ui.web.window.datatypes.json.JSONDate)2 JSONDocumentPath (de.metas.ui.web.window.datatypes.json.JSONDocumentPath)2 JSONLookupValuesList (de.metas.ui.web.window.datatypes.json.JSONLookupValuesList)2