Package com.jpoweredcart.common.service

Examples of com.jpoweredcart.common.service.CurrencyService


  }
 
  @RequestMapping(value={"/admin/common/home"})
  public String dashboard(Model model, HttpServletRequest request){
   
    CurrencyService c = currencyService;
   
    UserAttributes userAttrs = (UserAttributes)WebUtils.getSessionAttribute(request, UserAttributes.NAME);
    String currencyCode = userAttrs.getCurrencyCode();
    /* Current year */
    int year = Calendar.getInstance().get(Calendar.YEAR);
   
    model.addAttribute("totalSale", c.format(
        orderAdminModel.getTotalSales(), currencyCode, null, userAttrs.getLanguageId()));
    model.addAttribute("totalSaleYear", c.format(
        orderAdminModel.getTotalSalesByYear(year), currencyCode, null, userAttrs.getLanguageId()));
   
    model.addAttribute("totalOrder", orderAdminModel.getTotal(new TotalOrdersFilter()));
   
    model.addAttribute("totalCustomer", customerAdminModel.getTotal(new CustomerFilter()));
View Full Code Here

TOP

Related Classes of com.jpoweredcart.common.service.CurrencyService

Copyright © 2018 www.massapicom. 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.