Search in sources :

Example 1 with ProductsProposalView

use of de.metas.ui.web.order.products_proposal.view.ProductsProposalView in project metasfresh-webui-api by metasfresh.

the class WEBUI_ProductsProposal_ShowProductsSoldToOtherCustomers method doIt.

@Override
protected String doIt() {
    final ProductsProposalView view = getView();
    final List<ProductsProposalRow> selectedRows = getSelectedRows();
    final ProductsProposalView otherSalesPricesView = otherSalePricesProductsProposalViewFactory.createView(view, selectedRows);
    afterCloseOpenView(otherSalesPricesView.getViewId());
    return MSG_OK;
}
Also used : ProductsProposalRow(de.metas.ui.web.order.products_proposal.model.ProductsProposalRow) ProductsProposalView(de.metas.ui.web.order.products_proposal.view.ProductsProposalView)

Example 2 with ProductsProposalView

use of de.metas.ui.web.order.products_proposal.view.ProductsProposalView in project metasfresh-webui-api by metasfresh.

the class WEBUI_ProductsProposal_AddProductFromBasePriceList method addSelectedRowsToInitialView.

private void addSelectedRowsToInitialView() {
    final ProductsProposalView initialView = getInitialView();
    final List<ProductsProposalRowAddRequest> addRequests = getSelectedRows().stream().map(this::toProductsProposalRowAddRequest).collect(ImmutableList.toImmutableList());
    initialView.addOrUpdateRows(addRequests);
}
Also used : ProductsProposalRowAddRequest(de.metas.ui.web.order.products_proposal.model.ProductsProposalRowAddRequest) ProductsProposalView(de.metas.ui.web.order.products_proposal.view.ProductsProposalView)

Example 3 with ProductsProposalView

use of de.metas.ui.web.order.products_proposal.view.ProductsProposalView in project metasfresh-webui-api by metasfresh.

the class WEBUI_ProductsProposal_ShowProductsToAddFromBasePriceList method doIt.

@Override
protected String doIt() {
    final ProductsProposalView basePriceListView = basePLVProductsProposalViewFactory.createView(getView());
    afterCloseOpenView(basePriceListView.getViewId());
    return MSG_OK;
}
Also used : ProductsProposalView(de.metas.ui.web.order.products_proposal.view.ProductsProposalView)

Aggregations

ProductsProposalView (de.metas.ui.web.order.products_proposal.view.ProductsProposalView)3 ProductsProposalRow (de.metas.ui.web.order.products_proposal.model.ProductsProposalRow)1 ProductsProposalRowAddRequest (de.metas.ui.web.order.products_proposal.model.ProductsProposalRowAddRequest)1