Examples of CustomerProductRatesViewBean


Examples of org.hoteia.qalingo.core.web.mvc.viewbean.CustomerProductRatesViewBean

        avgValueRates = avgValueRates/valueRates.size();
      }
     
      avgRate = (avgQualityRates + avgPriceRates + avgValueRates) / 3;
     
      CustomerProductRatesViewBean customerProductRatesViewBean = new CustomerProductRatesViewBean();
      customerProductRatesViewBean.setAvgPriceRates(avgPriceRates);
      customerProductRatesViewBean.setAvgQualityRates(avgQualityRates);
      customerProductRatesViewBean.setAvgValueRates(avgValueRates);
     
      customerProductRatesViewBean.setPriceRateCount(priceRates.size());
      customerProductRatesViewBean.setQualityRateCount(qualityRates.size());
      customerProductRatesViewBean.setValueRateCount(valueRates.size());
      customerProductRatesViewBean.setAvgRate(avgRate);
     
      return customerProductRatesViewBean;
    }
View Full Code Here

Examples of org.hoteia.qalingo.core.web.mvc.viewbean.CustomerProductRatesViewBean

    }
   
    //TODO: Denis: should cache?
    public CustomerProductRatesViewBean calculateProductMarketingCustomerRatesByProductId(final Long productMarketingId) {
      Float avgRate = productDao.calculateProductMarketingCustomerRatesByProductId(productMarketingId);
      CustomerProductRatesViewBean customerProductRatesViewBean = new CustomerProductRatesViewBean();
      customerProductRatesViewBean.setAvgRate(avgRate);
      return customerProductRatesViewBean;
    }
View Full Code Here

Examples of org.hoteia.qalingo.core.web.mvc.viewbean.CustomerProductRatesViewBean

        //for now, get the featured products in same category
        //TODO: define related products
        final List<ProductMarketingViewBean> relatedProducts = catalogCategoryViewBean.getFeaturedProductMarketings();
        model.addAttribute(ModelConstants.RELATED_PPRODUCT_MARKETING_VIEW_BEAN, relatedProducts);
       
        final CustomerProductRatesViewBean customerProductRatesViewBean = productService.getProductMarketingCustomerRateDetails(productMarketing.getId());
        model.addAttribute(ModelConstants.CUSTOMER_PRODUCT_RATES_VIEW_BEAN, customerProductRatesViewBean);
       
        //Check if has authorized user
        if(requestData.getCustomer() != null){
          productCommentForm = formFactory.buildProductCommentForm(requestData, productMarketing);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.