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());
}
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());
}
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());
}
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());
}
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());
}
Aggregations