Package com.lgx8.common

Examples of com.lgx8.common.PageList


    }
   
   
    hql += " order by u.registertime desc";
   
    PageList pageList = userDao.findUserByConditions(hql, o, pageArgment);
    printJSON(response, pageList.toJSON());
    return null;
  }
View Full Code Here


  public PageList queryRolesByPage(PageArgument pageArgment, String hql,
      Object[] values) {
    int pageNum = pageArgment.getCurPage();
    int pageSize = pageArgment.getPageSize();
    PageList pageList = roleDao.findByPage4Report(hql, values, pageNum, pageSize);
    return pageList;
  }
View Full Code Here

      param = new Object[]{name};
    } else {
      hql = "from Brand b";
      param = new Object[]{};
    }
    PageList list = productDao.findBrand(hql, param, pageArgment);
    printJSON(response, list.toJSON());
    return null;
  }
View Full Code Here

      hql += " and m.sendId = '"+rtUser.getId()+"'";
    }
   
    hql += " order by m.id desc";
   
    PageList page =  messageRecordDao.findByPage4Report(hql, new Object[]{}, pagenum, 15);
   
    if(page!=null&&page.getDataList().size()>0) {
      root.put("page", page);
    }
   
    /* 将模板和数据模型合并 */
    Writer out = response.getWriter();
View Full Code Here

    }else{
      hql = "from Role r where r.name like ? and r.uid = ?";
      o = new Object[]{"%"+roleName+"%",curUser.getId()};
    }
   
    PageList pageList = roleService.queryRolesByPage(pageArgment, hql, o);
    printJSON(response, pageList.toJSON());
    return null;
  }
View Full Code Here

   
    String point = "0";
   
    List<Product> products = null;
   
    PageList pageList = null;
   
    IPObject iPObject = (IPObject) request.getSession().getAttribute("iPObject");
   
    if("0".equals(type)||"".equals(type)||"null".equals(type)||type == null)
    {
      pageList = gatewayService.findProductByConditions(5l, 0l, null, null,iPObject==null?null:iPObject.getAreaNode(),pagenum+"",orderStr);
      point = "0";
    }else if("1".equals(type))
    {
      pageList = gatewayService.findProductByConditions(5l, 0l, "0", "50",iPObject==null?null:iPObject.getAreaNode(),pagenum+"",orderStr);
      point = "1";
    }else if("2".equals(type))
    {
      pageList = gatewayService.findProductByConditions(5l, 0l, "50", "100",iPObject==null?null:iPObject.getAreaNode(),pagenum+"",orderStr);
      point = "2";
    }else if("3".equals(type))
    {
      pageList = gatewayService.findProductByConditions(5l, 0l, "100", "200",iPObject==null?null:iPObject.getAreaNode(),pagenum+"",orderStr);
      point = "3";
    }else if("4".equals(type))
    {
      pageList = gatewayService.findProductByConditions(5l, 0l, "200", "500",iPObject==null?null:iPObject.getAreaNode(),pagenum+"",orderStr);
      point = "4";
    }else if("5".equals(type))
    {
      pageList = gatewayService.findProductByConditions(5l, 0l, "500", "1000",iPObject==null?null:iPObject.getAreaNode(),pagenum+"",orderStr);
      point = "5";
    }else if("6".equals(type))
    {
      pageList = gatewayService.findProductByConditions(5l, 0l, "1000", null,iPObject==null?null:iPObject.getAreaNode(),pagenum+"",orderStr);
      point = "6";
    }
   
    root.put("point", point);
   
    root.put("order", order);
   
    if(pageList!=null&&pageList.getDataList()!=null)
    {
      root.put("pageList", pageList);
    }
   
    root.put("products", products);
View Full Code Here

    queryForm.setTruename(truename);
    queryForm.setMobile(mobile);
    queryForm.setOrganizationid(orid);
    queryForm.setParenttype(type);
    queryForm.setMerchant(merchant);
    PageList list = userDao.findUserByConditions(queryForm.toHql(), queryForm.getPara(), pageArgment);
    printJSON(response, list.toJSON());
    return null;
  }
View Full Code Here

      hql += " order by u.id desc";
    }
   
   
   
    PageList list = userDao.findUserByConditions(hql, new Object[]{}, pageArgment);
   
    @SuppressWarnings("unchecked")
    List<User> users = list.getDataList();
   
    for(User u : users)
    {
      if(u.getOrganizationid() != 0)
      {
        if(u.getUsertype() == 2)
        {
          Merchant m = merchantDao.getMerchantById(u.getOrganizationid());
          u.setMerchantname(m.getSJMC());
        }else if(u.getUsertype() == 3)
        {
          Organization o = organizationDao.getOrganizationById(u.getOrganizationid());
          u.setMerchantname(o.getJGMC());
        }
      }
    }
   
    list.setDataList(users);
   
    printJSON(response, list.toJSON());
    return null;
  }
View Full Code Here

      hql += " and (u.username like '%"+username+"%' or u.nickname like '%"+username+"%' or u.truename like '%"+username+"%'  or u.card.id like '%"+username+"%')";
    }
   
    hql += " order by u.id desc";
   
    PageList list = userDao.findUserByConditions(hql, new Object[]{}, pageArgment);
    printJSON(response, list.toJSON());
    return null;
  }
View Full Code Here

  IAddressDao addressDao ;
 
 
  public PageList queryAddress(String hql, Object[] values,
      PageArgument argment) {
    if(null==argment) return new PageList();
    return addressDao.findByPage4Report(hql, values, argment.getCurPage(), argment.getPageSize());
  }
View Full Code Here

TOP

Related Classes of com.lgx8.common.PageList

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.