Search in sources :

Example 71 with GridComponent

use of com.qcadoo.view.api.components.GridComponent in project mes by qcadoo.

the class DeliveryDetailsListeners method showProduct.

public final void showProduct(final ViewDefinitionState view, final ComponentState state, final String[] args) {
    GridComponent orderedProductGrid = (GridComponent) view.getComponentByReference(DeliveryFields.ORDERED_PRODUCTS);
    GridComponent deliveredProductsGrid = (GridComponent) view.getComponentByReference(DeliveryFields.DELIVERED_PRODUCTS);
    List<Entity> selectedEntities = orderedProductGrid.getSelectedEntities();
    if (selectedEntities.isEmpty()) {
        selectedEntities = deliveredProductsGrid.getSelectedEntities();
    }
    Entity selectedEntity = selectedEntities.iterator().next();
    selectedEntity = selectedEntity.getDataDefinition().getMasterModelEntity(selectedEntity.getId());
    Entity product = selectedEntity.getBelongsToField(L_PRODUCT);
    Map<String, Object> parameters = Maps.newHashMap();
    parameters.put("form.id", product.getId());
    parameters.put(L_WINDOW_ACTIVE_MENU, "basic.products");
    String url = "../page/basic/productDetails.html";
    view.redirectTo(url, false, true, parameters);
}
Also used : GridComponent(com.qcadoo.view.api.components.GridComponent)

Example 72 with GridComponent

use of com.qcadoo.view.api.components.GridComponent in project mes by qcadoo.

the class DeliveryDetailsListeners method changeStorageLocations.

public final void changeStorageLocations(final ViewDefinitionState view, final ComponentState state, final String[] args) {
    FormComponent deliveryForm = (FormComponent) view.getComponentByReference(QcadooViewConstants.L_FORM);
    GridComponent deliveredProductsGrid = (GridComponent) view.getComponentByReference(DeliveryFields.DELIVERED_PRODUCTS);
    List<Entity> selectedProducts = deliveredProductsGrid.getSelectedEntities();
    Set<Long> selectedProductsIds = deliveredProductsGrid.getSelectedEntitiesIds();
    Entity delivery = deliveryForm.getPersistedEntityWithIncludedFormValues();
    List<Entity> deliveredProducts = delivery.getHasManyField(DeliveryFields.DELIVERED_PRODUCTS);
    for (Entity selectedProduct : selectedProducts) {
        String palletNumber = selectedProduct.getStringField(DeliveredProductFields.PALLET_NUMBER);
        if (Objects.nonNull(palletNumber)) {
            List<Long> notSelectedMatchingProducts = deliveredProducts.stream().filter(deliveredProduct -> Objects.nonNull(deliveredProduct.getBelongsToField(DeliveredProductFields.PALLET_NUMBER)) && deliveredProduct.getBelongsToField(DeliveredProductFields.PALLET_NUMBER).getStringField(PalletNumberFields.NUMBER).equals(palletNumber)).map(Entity::getId).filter(deliveredProduct -> !selectedProductsIds.contains(deliveredProduct)).collect(Collectors.toList());
            selectedProductsIds.addAll(notSelectedMatchingProducts);
        }
    }
    String url = "../page/deliveries/changeStorageLocationHelper.html?context={\"form.deliveredProductIds\":\"" + selectedProductsIds.stream().map(Object::toString).collect(Collectors.joining(",")) + "\"," + "\"form.delivery\":\"" + delivery.getId() + "\"}";
    view.openModal(url);
}
Also used : MessageType(com.qcadoo.view.api.ComponentState.MessageType) java.util(java.util) CurrencyService(com.qcadoo.mes.basic.util.CurrencyService) ComponentState(com.qcadoo.view.api.ComponentState) QcadooViewConstants(com.qcadoo.view.constants.QcadooViewConstants) LoggerFactory(org.slf4j.LoggerFactory) com.qcadoo.mes.deliveries.constants(com.qcadoo.mes.deliveries.constants) Autowired(org.springframework.beans.factory.annotation.Autowired) UnitConversionService(com.qcadoo.model.api.units.UnitConversionService) ReservationService(com.qcadoo.mes.deliveries.ReservationService) StringUtils(org.apache.commons.lang3.StringUtils) com.qcadoo.model.api(com.qcadoo.model.api) FileService(com.qcadoo.model.api.file.FileService) DeliveriesService(com.qcadoo.mes.deliveries.DeliveriesService) DeliveryStateStringValues(com.qcadoo.mes.deliveries.states.constants.DeliveryStateStringValues) BigDecimal(java.math.BigDecimal) ViewDefinitionState(com.qcadoo.view.api.ViewDefinitionState) Lists(com.google.common.collect.Lists) ProductFieldsCNFP(com.qcadoo.mes.costNormsForProduct.constants.ProductFieldsCNFP) PossibleUnitConversions(com.qcadoo.model.api.units.PossibleUnitConversions) NumberGeneratorService(com.qcadoo.view.api.utils.NumberGeneratorService) PdfHelper(com.qcadoo.report.api.pdf.PdfHelper) FormComponent(com.qcadoo.view.api.components.FormComponent) PluginUtils(com.qcadoo.plugin.api.PluginUtils) DeliveredProductMultiPositionService(com.qcadoo.mes.deliveries.DeliveredProductMultiPositionService) OrderReportPdf(com.qcadoo.mes.deliveries.print.OrderReportPdf) com.qcadoo.model.api.search(com.qcadoo.model.api.search) SearchProjections.field(com.qcadoo.model.api.search.SearchProjections.field) Logger(org.slf4j.Logger) IOException(java.io.IOException) Maps(com.google.common.collect.Maps) Collectors(java.util.stream.Collectors) GridComponent(com.qcadoo.view.api.components.GridComponent) File(java.io.File) Component(org.springframework.stereotype.Component) ParameterService(com.qcadoo.mes.basic.ParameterService) FieldComponent(com.qcadoo.view.api.components.FieldComponent) com.qcadoo.mes.basic.constants(com.qcadoo.mes.basic.constants) LookupComponent(com.qcadoo.view.api.components.LookupComponent) CalculationQuantityService(com.qcadoo.mes.basic.CalculationQuantityService) SearchProjections.alias(com.qcadoo.model.api.search.SearchProjections.alias) DeliveryReportPdf(com.qcadoo.mes.deliveries.print.DeliveryReportPdf) FormComponent(com.qcadoo.view.api.components.FormComponent) GridComponent(com.qcadoo.view.api.components.GridComponent)

Example 73 with GridComponent

use of com.qcadoo.view.api.components.GridComponent in project mes by qcadoo.

the class DeliveryDetailsListeners method downloadProductAttachment.

public void downloadProductAttachment(final ViewDefinitionState view, final ComponentState state, final String[] args) {
    FormComponent deliveryForm = (FormComponent) view.getComponentByReference(QcadooViewConstants.L_FORM);
    GridComponent orderedProductsGrid = (GridComponent) view.getComponentByReference(DeliveryFields.ORDERED_PRODUCTS);
    Set<Long> ids = orderedProductsGrid.getSelectedEntitiesIds();
    SearchCriteriaBuilder searchCriteria = deliveriesService.getOrderedProductDD().find().createAlias(BasicConstants.MODEL_PRODUCT, BasicConstants.MODEL_PRODUCT, JoinType.INNER).createAlias(BasicConstants.MODEL_PRODUCT + L_DOT + ProductFields.PRODUCT_ATTACHMENTS, ProductFields.PRODUCT_ATTACHMENTS, JoinType.INNER).setProjection(SearchProjections.list().add(alias(field(ProductFields.PRODUCT_ATTACHMENTS + L_DOT + ProductAttachmentFields.ATTACHMENT), ProductAttachmentFields.ATTACHMENT)));
    if (ids.isEmpty()) {
        searchCriteria.createAlias(DeliveriesConstants.MODEL_DELIVERY, DeliveriesConstants.MODEL_DELIVERY, JoinType.INNER).add(SearchRestrictions.in(DeliveriesConstants.MODEL_DELIVERY + L_DOT + "id", deliveryForm.getEntityId()));
    } else {
        searchCriteria.add(SearchRestrictions.in("id", ids));
    }
    List<Entity> result = searchCriteria.list().getEntities();
    if (result.isEmpty()) {
        return;
    }
    List<File> attachments = result.stream().map(productAttachment -> new File(productAttachment.getStringField(ProductAttachmentFields.ATTACHMENT))).collect(Collectors.toList());
    File zipFile;
    try {
        zipFile = fileService.compressToZipFile(attachments, false);
    } catch (IOException e) {
        LOG.error("Unable to compress documents to zip file.", e);
        return;
    }
    view.redirectTo(fileService.getUrl(zipFile.getAbsolutePath()) + "?clean", true, false);
}
Also used : MessageType(com.qcadoo.view.api.ComponentState.MessageType) java.util(java.util) CurrencyService(com.qcadoo.mes.basic.util.CurrencyService) ComponentState(com.qcadoo.view.api.ComponentState) QcadooViewConstants(com.qcadoo.view.constants.QcadooViewConstants) LoggerFactory(org.slf4j.LoggerFactory) com.qcadoo.mes.deliveries.constants(com.qcadoo.mes.deliveries.constants) Autowired(org.springframework.beans.factory.annotation.Autowired) UnitConversionService(com.qcadoo.model.api.units.UnitConversionService) ReservationService(com.qcadoo.mes.deliveries.ReservationService) StringUtils(org.apache.commons.lang3.StringUtils) com.qcadoo.model.api(com.qcadoo.model.api) FileService(com.qcadoo.model.api.file.FileService) DeliveriesService(com.qcadoo.mes.deliveries.DeliveriesService) DeliveryStateStringValues(com.qcadoo.mes.deliveries.states.constants.DeliveryStateStringValues) BigDecimal(java.math.BigDecimal) ViewDefinitionState(com.qcadoo.view.api.ViewDefinitionState) Lists(com.google.common.collect.Lists) ProductFieldsCNFP(com.qcadoo.mes.costNormsForProduct.constants.ProductFieldsCNFP) PossibleUnitConversions(com.qcadoo.model.api.units.PossibleUnitConversions) NumberGeneratorService(com.qcadoo.view.api.utils.NumberGeneratorService) PdfHelper(com.qcadoo.report.api.pdf.PdfHelper) FormComponent(com.qcadoo.view.api.components.FormComponent) PluginUtils(com.qcadoo.plugin.api.PluginUtils) DeliveredProductMultiPositionService(com.qcadoo.mes.deliveries.DeliveredProductMultiPositionService) OrderReportPdf(com.qcadoo.mes.deliveries.print.OrderReportPdf) com.qcadoo.model.api.search(com.qcadoo.model.api.search) SearchProjections.field(com.qcadoo.model.api.search.SearchProjections.field) Logger(org.slf4j.Logger) IOException(java.io.IOException) Maps(com.google.common.collect.Maps) Collectors(java.util.stream.Collectors) GridComponent(com.qcadoo.view.api.components.GridComponent) File(java.io.File) Component(org.springframework.stereotype.Component) ParameterService(com.qcadoo.mes.basic.ParameterService) FieldComponent(com.qcadoo.view.api.components.FieldComponent) com.qcadoo.mes.basic.constants(com.qcadoo.mes.basic.constants) LookupComponent(com.qcadoo.view.api.components.LookupComponent) CalculationQuantityService(com.qcadoo.mes.basic.CalculationQuantityService) SearchProjections.alias(com.qcadoo.model.api.search.SearchProjections.alias) DeliveryReportPdf(com.qcadoo.mes.deliveries.print.DeliveryReportPdf) FormComponent(com.qcadoo.view.api.components.FormComponent) GridComponent(com.qcadoo.view.api.components.GridComponent) IOException(java.io.IOException) File(java.io.File)

Example 74 with GridComponent

use of com.qcadoo.view.api.components.GridComponent in project mes by qcadoo.

the class DeliveryDetailsListeners method fillBasedOnPricesFromLastDeliveryOffer.

private void fillBasedOnPricesFromLastDeliveryOffer(final ViewDefinitionState view, final boolean deliveryUseNominalCostWhenPriceNotSpecified) {
    GridComponent orderedProductsGrid = (GridComponent) view.getComponentByReference(DeliveryFields.ORDERED_PRODUCTS);
    FieldComponent currencyField = (FieldComponent) view.getComponentByReference(DeliveryFields.CURRENCY);
    Long deliveryCurrencyId = (Long) currencyField.getFieldValue();
    Entity plnCurrency = currencyService.getCurrencyByAlphabeticCode(CurrencyService.PLN);
    List<Entity> orderedProducts = deliveriesService.getSelectedOrderedProducts(orderedProductsGrid);
    List<Entity> productsToMessage = Lists.newArrayList();
    orderedProducts.forEach(orderedProduct -> {
        Entity product = orderedProduct.getBelongsToField(OrderedProductFields.PRODUCT);
        Entity supplier = orderedProduct.getBelongsToField(OrderedProductFields.DELIVERY).getBelongsToField(DeliveryFields.SUPPLIER);
        if (Objects.isNull(supplier)) {
            if (deliveryUseNominalCostWhenPriceNotSpecified) {
                Entity currency = product.getBelongsToField(ProductFieldsCNFP.NOMINAL_COST_CURRENCY);
                BigDecimal pricePerUnit = getPricePerUnit(deliveryCurrencyId, plnCurrency, product, productsToMessage, currency, product.getDecimalField(ProductFieldsCNFP.NOMINAL_COST));
                orderedProduct.setField(OrderedProductFields.PRICE_PER_UNIT, pricePerUnit);
                orderedProduct.getDataDefinition().save(orderedProduct);
            }
            return;
        }
        Entity offerProduct = getLastOfferProduct(supplier, product);
        if (Objects.nonNull(offerProduct)) {
            Entity currency = currencyService.getCurrentCurrency();
            BigDecimal pricePerUnit = getPricePerUnit(deliveryCurrencyId, plnCurrency, product, productsToMessage, currency, offerProduct.getDecimalField(OrderedProductFields.PRICE_PER_UNIT));
            orderedProduct.setField(OrderedProductFields.PRICE_PER_UNIT, pricePerUnit);
            orderedProduct.setField(L_OFFER, offerProduct.getBelongsToField(L_OFFER));
            orderedProduct.getDataDefinition().save(orderedProduct);
        } else if (deliveryUseNominalCostWhenPriceNotSpecified) {
            Entity currency = product.getBelongsToField(ProductFieldsCNFP.NOMINAL_COST_CURRENCY);
            BigDecimal pricePerUnit = getPricePerUnit(deliveryCurrencyId, plnCurrency, product, productsToMessage, currency, product.getDecimalField(ProductFieldsCNFP.NOMINAL_COST));
            orderedProduct.setField(OrderedProductFields.PRICE_PER_UNIT, pricePerUnit);
            orderedProduct.getDataDefinition().save(orderedProduct);
        }
    });
    if (!productsToMessage.isEmpty()) {
        view.addMessage("deliveries.orderedProducts.differentCurrencies", MessageType.INFO, false, productsToMessage.stream().map(e -> e.getStringField(ProductFields.NUMBER)).collect(Collectors.joining(", ")));
    }
    orderedProductsGrid.reloadEntities();
    BigDecimal totalPrice = orderedProducts.stream().filter(orderedProduct -> Objects.nonNull(orderedProduct.getDecimalField(OrderedProductFields.TOTAL_PRICE))).map(orderedProduct -> orderedProduct.getDecimalField(OrderedProductFields.TOTAL_PRICE)).reduce(BigDecimal.ZERO, BigDecimal::add);
    FieldComponent totalPriceComponent = (FieldComponent) view.getComponentByReference(L_ORDERED_PRODUCTS_CUMULATED_TOTAL_PRICE);
    totalPriceComponent.setFieldValue(numberService.formatWithMinimumFractionDigits(totalPrice, 0));
    totalPriceComponent.requestComponentUpdateState();
}
Also used : MessageType(com.qcadoo.view.api.ComponentState.MessageType) java.util(java.util) CurrencyService(com.qcadoo.mes.basic.util.CurrencyService) ComponentState(com.qcadoo.view.api.ComponentState) QcadooViewConstants(com.qcadoo.view.constants.QcadooViewConstants) LoggerFactory(org.slf4j.LoggerFactory) com.qcadoo.mes.deliveries.constants(com.qcadoo.mes.deliveries.constants) Autowired(org.springframework.beans.factory.annotation.Autowired) UnitConversionService(com.qcadoo.model.api.units.UnitConversionService) ReservationService(com.qcadoo.mes.deliveries.ReservationService) StringUtils(org.apache.commons.lang3.StringUtils) com.qcadoo.model.api(com.qcadoo.model.api) FileService(com.qcadoo.model.api.file.FileService) DeliveriesService(com.qcadoo.mes.deliveries.DeliveriesService) DeliveryStateStringValues(com.qcadoo.mes.deliveries.states.constants.DeliveryStateStringValues) BigDecimal(java.math.BigDecimal) ViewDefinitionState(com.qcadoo.view.api.ViewDefinitionState) Lists(com.google.common.collect.Lists) ProductFieldsCNFP(com.qcadoo.mes.costNormsForProduct.constants.ProductFieldsCNFP) PossibleUnitConversions(com.qcadoo.model.api.units.PossibleUnitConversions) NumberGeneratorService(com.qcadoo.view.api.utils.NumberGeneratorService) PdfHelper(com.qcadoo.report.api.pdf.PdfHelper) FormComponent(com.qcadoo.view.api.components.FormComponent) PluginUtils(com.qcadoo.plugin.api.PluginUtils) DeliveredProductMultiPositionService(com.qcadoo.mes.deliveries.DeliveredProductMultiPositionService) OrderReportPdf(com.qcadoo.mes.deliveries.print.OrderReportPdf) com.qcadoo.model.api.search(com.qcadoo.model.api.search) SearchProjections.field(com.qcadoo.model.api.search.SearchProjections.field) Logger(org.slf4j.Logger) IOException(java.io.IOException) Maps(com.google.common.collect.Maps) Collectors(java.util.stream.Collectors) GridComponent(com.qcadoo.view.api.components.GridComponent) File(java.io.File) Component(org.springframework.stereotype.Component) ParameterService(com.qcadoo.mes.basic.ParameterService) FieldComponent(com.qcadoo.view.api.components.FieldComponent) com.qcadoo.mes.basic.constants(com.qcadoo.mes.basic.constants) LookupComponent(com.qcadoo.view.api.components.LookupComponent) CalculationQuantityService(com.qcadoo.mes.basic.CalculationQuantityService) SearchProjections.alias(com.qcadoo.model.api.search.SearchProjections.alias) DeliveryReportPdf(com.qcadoo.mes.deliveries.print.DeliveryReportPdf) GridComponent(com.qcadoo.view.api.components.GridComponent) FieldComponent(com.qcadoo.view.api.components.FieldComponent) BigDecimal(java.math.BigDecimal)

Example 75 with GridComponent

use of com.qcadoo.view.api.components.GridComponent in project mes by qcadoo.

the class DeliveryDetailsListeners method fillBasedOnLastPurchasePrice.

private void fillBasedOnLastPurchasePrice(final ViewDefinitionState view, final boolean deliveryUseNominalCostWhenPriceNotSpecified) {
    GridComponent orderedProductsGrid = (GridComponent) view.getComponentByReference(DeliveryFields.ORDERED_PRODUCTS);
    FieldComponent currencyField = (FieldComponent) view.getComponentByReference(DeliveryFields.CURRENCY);
    Long deliveryCurrencyId = (Long) currencyField.getFieldValue();
    Entity plnCurrency = currencyService.getCurrencyByAlphabeticCode(CurrencyService.PLN);
    List<Entity> orderedProducts = deliveriesService.getSelectedOrderedProducts(orderedProductsGrid);
    List<Entity> productsToMessage = Lists.newArrayList();
    orderedProducts.forEach(orderedProduct -> {
        Entity product = orderedProduct.getBelongsToField(OrderedProductFields.PRODUCT);
        BigDecimal lastPurchaseCost = product.getDecimalField(ProductFieldsCNFP.LAST_PURCHASE_COST);
        BigDecimal pricePerUnit;
        if (BigDecimalUtils.convertNullToZero(lastPurchaseCost).compareTo(BigDecimal.ZERO) == 0 && deliveryUseNominalCostWhenPriceNotSpecified) {
            Entity currency = product.getBelongsToField(ProductFieldsCNFP.NOMINAL_COST_CURRENCY);
            pricePerUnit = getPricePerUnit(deliveryCurrencyId, plnCurrency, product, productsToMessage, currency, product.getDecimalField(ProductFieldsCNFP.NOMINAL_COST));
        } else {
            if (Objects.isNull(lastPurchaseCost)) {
                orderedProduct.setField(OrderedProductFields.TOTAL_PRICE, null);
            }
            Entity currency = product.getBelongsToField(ProductFieldsCNFP.LAST_PURCHASE_COST_CURRENCY);
            pricePerUnit = getPricePerUnit(deliveryCurrencyId, plnCurrency, product, productsToMessage, currency, lastPurchaseCost);
        }
        orderedProduct.setField(OrderedProductFields.PRICE_PER_UNIT, pricePerUnit);
        orderedProduct.getDataDefinition().save(orderedProduct);
    });
    if (!productsToMessage.isEmpty()) {
        view.addMessage("deliveries.orderedProducts.differentCurrencies", MessageType.INFO, false, productsToMessage.stream().map(e -> e.getStringField(ProductFields.NUMBER)).collect(Collectors.joining(", ")));
    }
    orderedProductsGrid.reloadEntities();
    BigDecimal totalPrice = orderedProducts.stream().filter(orderedProduct -> Objects.nonNull(orderedProduct.getDecimalField(OrderedProductFields.TOTAL_PRICE))).map(orderedProduct -> orderedProduct.getDecimalField(OrderedProductFields.TOTAL_PRICE)).reduce(BigDecimal.ZERO, BigDecimal::add);
    FieldComponent totalPriceComponent = (FieldComponent) view.getComponentByReference(L_ORDERED_PRODUCTS_CUMULATED_TOTAL_PRICE);
    totalPriceComponent.setFieldValue(numberService.formatWithMinimumFractionDigits(totalPrice, 0));
    totalPriceComponent.requestComponentUpdateState();
}
Also used : MessageType(com.qcadoo.view.api.ComponentState.MessageType) java.util(java.util) CurrencyService(com.qcadoo.mes.basic.util.CurrencyService) ComponentState(com.qcadoo.view.api.ComponentState) QcadooViewConstants(com.qcadoo.view.constants.QcadooViewConstants) LoggerFactory(org.slf4j.LoggerFactory) com.qcadoo.mes.deliveries.constants(com.qcadoo.mes.deliveries.constants) Autowired(org.springframework.beans.factory.annotation.Autowired) UnitConversionService(com.qcadoo.model.api.units.UnitConversionService) ReservationService(com.qcadoo.mes.deliveries.ReservationService) StringUtils(org.apache.commons.lang3.StringUtils) com.qcadoo.model.api(com.qcadoo.model.api) FileService(com.qcadoo.model.api.file.FileService) DeliveriesService(com.qcadoo.mes.deliveries.DeliveriesService) DeliveryStateStringValues(com.qcadoo.mes.deliveries.states.constants.DeliveryStateStringValues) BigDecimal(java.math.BigDecimal) ViewDefinitionState(com.qcadoo.view.api.ViewDefinitionState) Lists(com.google.common.collect.Lists) ProductFieldsCNFP(com.qcadoo.mes.costNormsForProduct.constants.ProductFieldsCNFP) PossibleUnitConversions(com.qcadoo.model.api.units.PossibleUnitConversions) NumberGeneratorService(com.qcadoo.view.api.utils.NumberGeneratorService) PdfHelper(com.qcadoo.report.api.pdf.PdfHelper) FormComponent(com.qcadoo.view.api.components.FormComponent) PluginUtils(com.qcadoo.plugin.api.PluginUtils) DeliveredProductMultiPositionService(com.qcadoo.mes.deliveries.DeliveredProductMultiPositionService) OrderReportPdf(com.qcadoo.mes.deliveries.print.OrderReportPdf) com.qcadoo.model.api.search(com.qcadoo.model.api.search) SearchProjections.field(com.qcadoo.model.api.search.SearchProjections.field) Logger(org.slf4j.Logger) IOException(java.io.IOException) Maps(com.google.common.collect.Maps) Collectors(java.util.stream.Collectors) GridComponent(com.qcadoo.view.api.components.GridComponent) File(java.io.File) Component(org.springframework.stereotype.Component) ParameterService(com.qcadoo.mes.basic.ParameterService) FieldComponent(com.qcadoo.view.api.components.FieldComponent) com.qcadoo.mes.basic.constants(com.qcadoo.mes.basic.constants) LookupComponent(com.qcadoo.view.api.components.LookupComponent) CalculationQuantityService(com.qcadoo.mes.basic.CalculationQuantityService) SearchProjections.alias(com.qcadoo.model.api.search.SearchProjections.alias) DeliveryReportPdf(com.qcadoo.mes.deliveries.print.DeliveryReportPdf) GridComponent(com.qcadoo.view.api.components.GridComponent) FieldComponent(com.qcadoo.view.api.components.FieldComponent) BigDecimal(java.math.BigDecimal)

Aggregations

GridComponent (com.qcadoo.view.api.components.GridComponent)260 Entity (com.qcadoo.model.api.Entity)131 FormComponent (com.qcadoo.view.api.components.FormComponent)85 FieldComponent (com.qcadoo.view.api.components.FieldComponent)33 WindowComponent (com.qcadoo.view.api.components.WindowComponent)30 RibbonActionItem (com.qcadoo.view.api.ribbon.RibbonActionItem)29 JSONObject (org.json.JSONObject)28 FilterValueHolder (com.qcadoo.view.api.components.lookup.FilterValueHolder)26 RibbonGroup (com.qcadoo.view.api.ribbon.RibbonGroup)24 ComponentState (com.qcadoo.view.api.ComponentState)23 DataDefinition (com.qcadoo.model.api.DataDefinition)22 ViewDefinitionState (com.qcadoo.view.api.ViewDefinitionState)22 QcadooViewConstants (com.qcadoo.view.constants.QcadooViewConstants)20 CheckBoxComponent (com.qcadoo.view.api.components.CheckBoxComponent)19 Autowired (org.springframework.beans.factory.annotation.Autowired)19 BigDecimal (java.math.BigDecimal)16 Service (org.springframework.stereotype.Service)16 LookupComponent (com.qcadoo.view.api.components.LookupComponent)15 Collectors (java.util.stream.Collectors)15 Lists (com.google.common.collect.Lists)12