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