use of eu.ggnet.dwoss.misc.saleschannel.OpenSalesChannelManagerAction in project dwoss by gg-net.
the class MiscActionFactory method createMetaActions.
@Override
public List<MetaAction> createMetaActions() {
List<MetaAction> actions = new ArrayList<>();
actions.add(new MetaAction("System", "Datenbank", new ProductSpecExportAction()));
actions.add(new MetaAction("System", "Datenbank", new DatabaseValidationAction()));
String s = "Listings";
actions.add(new MetaAction(s, new AllSalesListingAction()));
if (Dl.remote().contains(ListingActionService.class)) {
Map<ListingActionConfiguration.Location, List<ListingActionConfiguration>> actionConfigs = Dl.remote().lookup(ListingActionService.class).listingActionConfigurations().stream().collect(Collectors.groupingBy(ListingActionConfiguration::getLocation));
if (actionConfigs != null && !actionConfigs.isEmpty()) {
for (List<ListingActionConfiguration> listingActionConfigurations : actionConfigs.values()) {
actions.add(new MetaAction(s, null));
for (ListingActionConfiguration listingActionConfiguration : listingActionConfigurations) {
actions.add(new MetaAction(s, new SalesListingCreateAction(listingActionConfiguration)));
}
}
}
} else {
actions.add(new MetaAction(s, new SalesListingCreateAction(new ListingActionConfiguration(Type.XLS, Location.LOCAL, SalesChannel.RETAILER, "XLS für Händler"))));
actions.add(new MetaAction(s, new SalesListingCreateAction(new ListingActionConfiguration(Type.XLS, Location.LOCAL, SalesChannel.CUSTOMER, "XLS für Endkunden"))));
actions.add(new MetaAction(s, new SalesListingCreateAction(new ListingActionConfiguration(Type.PDF, Location.LOCAL, SalesChannel.RETAILER, "PDF für Händler"))));
actions.add(new MetaAction(s, new SalesListingCreateAction(new ListingActionConfiguration(Type.PDF, Location.LOCAL, SalesChannel.CUSTOMER, "PDF für Endkunden"))));
}
List<Stock> allStocks = Dl.remote().lookup(StockAgent.class).findAll(Stock.class);
for (Stock stock : allStocks) {
for (ListType listType : MovementListingProducer.ListType.values()) {
actions.add(new MetaAction("Lager/Logistik", "Versand & Abholung", new MovementAction(listType, stock)));
}
actions.add(new MetaAction("Lager/Logistik", "Inventur", new StockTakingAction(stock)));
}
actions.add(new MetaAction("Lager/Logistik", "Inventur", new StockTakingAction()));
actions.add(new MetaAction("Artikelstamm", "Bilder Ids", new NextImageIdAction()));
actions.add(new MetaAction("Artikelstamm", "Bilder Ids", new ExportImageIdsAction()));
actions.add(new MetaAction("Artikelstamm", "Bilder Ids", new ExportImageIdsAction(SalesChannel.CUSTOMER)));
actions.add(new MetaAction("Artikelstamm", "Bilder Ids", new ImportImageIdsAction()));
actions.add(new MetaAction("Geschäftsführung", "Allgemeine Reporte", new UnitQualityReportAction()));
actions.add(new MetaAction("Geschäftsführung", "Allgemeine Reporte", new ExportInputReportAction()));
actions.add(new MetaAction("Geschäftsführung", new OpenSalesChannelManagerAction()));
actions.add(new MetaAction("Geschäftsführung", "Abschluss Reporte", new ResolveRepaymentAction()));
actions.add(new MetaAction("Hilfe", new AboutAction()));
actions.add(new MetaAction("Hilfe", new ShowMandatorAction()));
actions.add(new MetaAction("Kunden und Aufträge", new OpenSearchAction()));
return actions;
}
Aggregations