Search in sources :

Example 1 with PickingSlotView

use of de.metas.ui.web.picking.pickingslot.PickingSlotView in project metasfresh-webui-api by metasfresh.

the class HUsToPickViewBasedProcess method getSingleSelectedPackageableRow.

protected final PackageableRow getSingleSelectedPackageableRow() {
    final PickingSlotView pickingSlotView = getPickingSlotView();
    final ViewId packageablesViewId = pickingSlotView.getParentViewId();
    if (packageablesViewId == null) {
        throw new AdempiereException("Packageables view is not available");
    }
    final DocumentId packageableRowId = pickingSlotView.getParentRowId();
    if (packageableRowId == null) {
        throw new AdempiereException("There is no single packageable row selected");
    }
    final PackageableView packageableView = PackageableView.cast(viewsRepo.getView(packageablesViewId));
    return packageableView.getById(packageableRowId);
}
Also used : PickingSlotView(de.metas.ui.web.picking.pickingslot.PickingSlotView) AdempiereException(org.adempiere.exceptions.AdempiereException) PackageableView(de.metas.ui.web.picking.packageable.PackageableView) ViewId(de.metas.ui.web.view.ViewId) DocumentId(de.metas.ui.web.window.datatypes.DocumentId)

Example 2 with PickingSlotView

use of de.metas.ui.web.picking.pickingslot.PickingSlotView in project metasfresh-webui-api by metasfresh.

the class HUsToPickViewBasedProcess method getPickingSlotRow.

protected PickingSlotRow getPickingSlotRow() {
    final HUEditorView huView = getView();
    final DocumentId pickingSlotRowId = huView.getParentRowId();
    final PickingSlotView pickingSlotView = getPickingSlotView();
    return pickingSlotView.getById(pickingSlotRowId);
}
Also used : PickingSlotView(de.metas.ui.web.picking.pickingslot.PickingSlotView) DocumentId(de.metas.ui.web.window.datatypes.DocumentId) HUEditorView(de.metas.ui.web.handlingunits.HUEditorView)

Example 3 with PickingSlotView

use of de.metas.ui.web.picking.pickingslot.PickingSlotView in project metasfresh-webui-api by metasfresh.

the class HUsToPickViewBasedProcess method addHUIdToCurrentPickingSlot.

protected final void addHUIdToCurrentPickingSlot(final int huId) {
    final PickingSlotView pickingSlotsView = getPickingSlotView();
    final PickingSlotRow pickingSlotRow = getPickingSlotRow();
    final int pickingSlotId = pickingSlotRow.getPickingSlotId();
    final int shipmentScheduleId = pickingSlotsView.getCurrentShipmentScheduleId();
    pickingCandidateService.addHUToPickingSlot(huId, pickingSlotId, shipmentScheduleId);
}
Also used : PickingSlotRow(de.metas.ui.web.picking.pickingslot.PickingSlotRow) PickingSlotView(de.metas.ui.web.picking.pickingslot.PickingSlotView)

Example 4 with PickingSlotView

use of de.metas.ui.web.picking.pickingslot.PickingSlotView in project metasfresh-webui-api by metasfresh.

the class HUsToPickViewBasedProcess method invalidatePickingSlotsView.

protected final void invalidatePickingSlotsView() {
    final PickingSlotView pickingSlotsView = getPickingSlotViewOrNull();
    if (pickingSlotsView == null) {
        return;
    }
    invalidateView(pickingSlotsView.getViewId());
}
Also used : PickingSlotView(de.metas.ui.web.picking.pickingslot.PickingSlotView)

Example 5 with PickingSlotView

use of de.metas.ui.web.picking.pickingslot.PickingSlotView in project metasfresh-webui-api by metasfresh.

the class HUsToPickViewBasedProcess method invalidatePackablesView.

protected final void invalidatePackablesView() {
    final PickingSlotView pickingSlotsView = getPickingSlotViewOrNull();
    if (pickingSlotsView == null) {
        return;
    }
    final ViewId packablesViewId = pickingSlotsView.getParentViewId();
    if (packablesViewId == null) {
        return;
    }
    invalidateView(packablesViewId);
}
Also used : PickingSlotView(de.metas.ui.web.picking.pickingslot.PickingSlotView) ViewId(de.metas.ui.web.view.ViewId)

Aggregations

PickingSlotView (de.metas.ui.web.picking.pickingslot.PickingSlotView)5 ViewId (de.metas.ui.web.view.ViewId)2 DocumentId (de.metas.ui.web.window.datatypes.DocumentId)2 HUEditorView (de.metas.ui.web.handlingunits.HUEditorView)1 PackageableView (de.metas.ui.web.picking.packageable.PackageableView)1 PickingSlotRow (de.metas.ui.web.picking.pickingslot.PickingSlotRow)1 AdempiereException (org.adempiere.exceptions.AdempiereException)1