Package com.jpoweredcart.common

Examples of com.jpoweredcart.common.PageParam


  private ReturnStatusAdminModel returnStatusAdminModel;
 
  @RequestMapping(value="/admin/localisation/returnStatus")
  public String index(Model model, HttpServletRequest request){
   
    PageParam pageParam = createPageParam(request);
    List<ReturnStatus> returnStatuses = returnStatusAdminModel.getList(pageParam);
    model.addAttribute("returnStatuses", returnStatuses);
   
    Integer defaultReturnStatusId = getSettingService().getConfig(SettingKey.CFG_RETURN_STATUS_ID, Integer.class);
    model.addAttribute("defaultReturnStatusId", defaultReturnStatusId);
View Full Code Here


  @RequestMapping(value="/admin/localisation/returnStatus/create")
  public String create(Model model){
   
    checkModifyPermission();
   
    List<Language> languages = languageAdminModel.getList(new PageParam());
    List<ReturnStatus> list = new ArrayList<ReturnStatus>();
    for(Language language: languages){
      ReturnStatus returnStatus = new ReturnStatus();
      returnStatus.setLanguageId(language.getId());
      returnStatus.setLanguageName(language.getName());
View Full Code Here

  private UserGroupAdminModel userGroupAdminModel;
 
  @RequestMapping(value={"", "/"})
  public String index(Model model, HttpServletRequest request){
   
    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

    model.addAttribute("totalReview", reviewAdminModel.getTotal());
    model.addAttribute("totalReviewApproval", reviewAdminModel.getTotalAwaitingApproval());
    model.addAttribute("totalAffiliate", affiliateAdminModel.getTotal(new AffiliateFilter()));
    model.addAttribute("totalAffiliateApproval", affiliateAdminModel.getTotalAwaitingApproval());
   
    PageParam orderListParam = PageParam.list(0, 10);
    orderListParam.addOrder("o.date_added", "DESC");
    model.addAttribute("orders", orderAdminModel.getList(orderListParam));
   
    return "/admin/common/home";
  }
View Full Code Here

  private TaxRateAdminModel taxRateAdminModel;
 
  @RequestMapping(value="/admin/localisation/taxRate")
  public String index(Model model, HttpServletRequest request){
   
    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)
View Full Code Here

  public String index(Model model, HttpServletRequest request){
   
    Integer defaultCustomerGroupId = getSettingService().getConfig(
        SettingKey.CFG_CUSTOMER_GROUP_ID, Integer.class);
    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)
View Full Code Here

  private GeoZoneAdminModel geoZoneAdminModel;
 
  @RequestMapping(value={"", "/"})
  public String index(Model model, HttpServletRequest request){
   
    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)
View Full Code Here

  private VoucherAdminModel voucherAdminModel;
 
  @RequestMapping(value={"", "/"})
  public String index(Model model, HttpServletRequest request){
   
    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)
View Full Code Here

  private StockStatusAdminModel stockStatusAdminModel;
 
  @RequestMapping(value="/admin/localisation/stockStatus")
  public String index(Model model, HttpServletRequest request){
   
    PageParam pageParam = createPageParam(request);
    List<StockStatus> stockStatuses = stockStatusAdminModel.getStockStatuses(pageParam);
    model.addAttribute("stockStatuses", stockStatuses);
   
    Integer defaultStockStatusId = getSettingService().getConfig(SettingKey.CFG_STOCK_STATUS_ID, Integer.class);
    model.addAttribute("defaultStockStatusId", defaultStockStatusId);
View Full Code Here

  @RequestMapping(value="/admin/localisation/stockStatus/create")
  public String create(Model model){
   
    checkModifyPermission();
   
    List<Language> languages = languageAdminModel.getList(new PageParam());
    List<StockStatus> list = new ArrayList<StockStatus>();
    for(Language language: languages){
      StockStatus stockStatus = new StockStatus();
      stockStatus.setLanguageId(language.getId());
      stockStatus.setLanguageName(language.getName());
View Full Code Here

TOP

Related Classes of com.jpoweredcart.common.PageParam

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.