Package com.jpoweredcart.common.view

Examples of com.jpoweredcart.common.view.Pagination


   
    Integer defaultReturnStatusId = getSettingService().getConfig(SettingKey.CFG_RETURN_STATUS_ID, Integer.class);
    model.addAttribute("defaultReturnStatusId", defaultReturnStatusId);
   
    int total = returnStatusAdminModel.getTotal();
    Pagination pagination = new Pagination();
    pagination.setTotal(total).setPageParam(pageParam)
      .setText(message(request, "text.pagination"))
      .setUrl(uri("/admin/localisation/returnStatus"));
    model.addAttribute("pagination", pagination.render());
   
    return "/admin/localisation/returnStatusList";
  }
View Full Code Here


    PageParam pageParam = createPageParam(request);
    List<User> userList = userAdminModel.getList(pageParam);
    model.addAttribute("users", userList);
   
    int total = userAdminModel.getTotal();
    Pagination pagination = new Pagination();
    pagination.setTotal(total).setPage(pageParam.getPage())
      .setLimit(pageParam.getLimit()).setText(message(request, "text.pagination"))
      .setUrl(uri("/admin/user/user"));
    model.addAttribute("pagination", pagination.render());
   
    return "/admin/user/userList";
  }
View Full Code Here

   
    PageParam pageParam = createPageParam(request);
    List<TaxRate> currencies = taxRateAdminModel.getList(pageParam);
    model.addAttribute("taxRates", currencies);
    int total = taxRateAdminModel.getTotal();
    Pagination pagination = new Pagination();
    pagination.setTotal(total).setPageParam(pageParam)
      .setText(message(request, "text.pagination"))
      .setUrl(uri("/admin/localisation/taxRate"));
    model.addAttribute("pagination", pagination.render());
   
    return "/admin/localisation/taxRateList";
  }
View Full Code Here

    model.addAttribute("defaultCustomerGroupId", defaultCustomerGroupId);
    PageParam pageParam = createPageParam(request);
    List<CustomerGroup> customerGroupList = customerGroupAdminModel.getList(pageParam);
    model.addAttribute("customerGroups", customerGroupList);
    int total = customerGroupAdminModel.getTotal();
    Pagination pagination = new Pagination();
    pagination.setTotal(total).setPageParam(pageParam)
      .setText(message(request, "text.pagination"))
      .setUrl(uri("/admin/sale/customerGroup"));
    model.addAttribute("pagination", pagination.render());
    return "/admin/sale/customerGroupList";
  }
View Full Code Here

   
    PageParam pageParam = createPageParam(request);
    List<GeoZone> geoZoneList = geoZoneAdminModel.getList(pageParam);
    model.addAttribute("geoZones", geoZoneList);
    int total = geoZoneAdminModel.getTotal();
    Pagination pagination = new Pagination();
    pagination.setTotal(total).setPageParam(pageParam)
      .setText(message(request, "text.pagination"))
      .setUrl(uri("/admin/localisation/geoZone"));
    model.addAttribute("pagination", pagination.render());
   
    return "/admin/localisation/geoZoneList";
  }
View Full Code Here

   
    PageParam pageParam = createPageParam(request);
    List<Voucher> voucherList = voucherAdminModel.getList(pageParam);
    model.addAttribute("vouchers", voucherList);
    int total = voucherAdminModel.getTotal();
    Pagination pagination = new Pagination();
    pagination.setTotal(total).setPageParam(pageParam)
      .setText(message(request, "text.pagination"))
      .setUrl(uri("/admin/sale/voucher"));
    model.addAttribute("pagination", pagination.render());
    model.addAttribute("currency", currencyService);
    return "/admin/sale/voucherList";
  }
View Full Code Here

   
    Integer defaultStockStatusId = getSettingService().getConfig(SettingKey.CFG_STOCK_STATUS_ID, Integer.class);
    model.addAttribute("defaultStockStatusId", defaultStockStatusId);
   
    int total = stockStatusAdminModel.getTotal();
    Pagination pagination = new Pagination();
    pagination.setTotal(total).setPageParam(pageParam)
      .setText(message(request, "text.pagination"))
      .setUrl(uri("/admin/localisation/stockStatus"));
    model.addAttribute("pagination", pagination.render());
   
    return "/admin/localisation/stockStatusList";
  }
View Full Code Here

   
    PageParam pageParam = createPageParam(request);
    List<VoucherTheme> voucherThemeList = voucherThemeAdminModel.getList(pageParam);
    model.addAttribute("voucherThemes", voucherThemeList);
    int total = voucherThemeAdminModel.getTotal();
    Pagination pagination = new Pagination();
    pagination.setTotal(total).setPageParam(pageParam)
      .setText(message(request, "text.pagination"))
      .setUrl(uri("/admin/sale/voucherTheme"));
    model.addAttribute("pagination", pagination.render());
    return "/admin/sale/voucherThemeList";
  }
View Full Code Here

   
    PageParam pageParam = createPageParam(request);
    List<Zone> zoneList = zoneAdminModel.getList(pageParam);
    model.addAttribute("zones", zoneList);
    int total = zoneAdminModel.getTotal();
    Pagination pagination = new Pagination();
    pagination.setTotal(total).setPageParam(pageParam)
      .setText(message(request, "text.pagination"))
      .setUrl(uri("/admin/localisation/zone"));
    model.addAttribute("pagination", pagination.render());
    return "/admin/localisation/zoneList";
  }
View Full Code Here

    PageParam pageParam = createPageParam(request);
    List<Currency> currencyList = currencyAdminModel.getList(pageParam);
    model.addAttribute("currencies", currencyList);
   
    int total = currencyAdminModel.getTotal();
    Pagination pagination = new Pagination();
    pagination.setTotal(total).setPageParam(pageParam)
      .setText(message(request, "text.pagination"))
      .setUrl(uri("/admin/localisation/currency"));
    model.addAttribute("pagination", pagination.render());
   
    return "/admin/localisation/currencyList";
  }
View Full Code Here

TOP

Related Classes of com.jpoweredcart.common.view.Pagination

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.