Package org.g4studio.common.dao

Examples of org.g4studio.common.dao.Dao.queryForList()


    Dao g4Dao = (Dao) SpringBeanLoader.getSpringBean("g4Dao");
    HttpServletRequest request = (HttpServletRequest) this.pageContext.getRequest();
    Dto grantDto = new BaseDto();
    grantDto.put("roleid", request.getParameter("roleid"));
    grantDto.put("authorizelevel", authorizelevel);
    List grantedList = g4Dao.queryForList("ArmTagSupport.queryGrantedMenusByRoleId", grantDto);
    List menuList = new ArrayList();
    String account = WebUtils.getSessionContainer(request).getUserInfo().getAccount();
    String developerAccount = WebUtils.getParamValue("DEFAULT_DEVELOP_ACCOUNT", request);
    String superAccount = WebUtils.getParamValue("DEFAULT_ADMIN_ACCOUNT", request);
    Dto qDto = new BaseDto();
View Full Code Here


      menutype = SystemConstants.MENUTYPE_BUSINESS;
    }
    qDto.put("roleid", roletype);
    qDto.put("menutype", menutype);
    if (account.equalsIgnoreCase(developerAccount) || account.equalsIgnoreCase(superAccount)) {
      menuList = g4Dao.queryForList("ArmTagSupport.queryMenusForRoleGrant", qDto);
    } else {
      qDto.put("menutype", SystemConstants.MENUTYPE_BUSINESS);
      menuList = g4Dao.queryForList("ArmTagSupport.queryMenusForGrant", qDto);
    }
    for (int i = 0; i < menuList.size(); i++) {
View Full Code Here

    qDto.put("menutype", menutype);
    if (account.equalsIgnoreCase(developerAccount) || account.equalsIgnoreCase(superAccount)) {
      menuList = g4Dao.queryForList("ArmTagSupport.queryMenusForRoleGrant", qDto);
    } else {
      qDto.put("menutype", SystemConstants.MENUTYPE_BUSINESS);
      menuList = g4Dao.queryForList("ArmTagSupport.queryMenusForGrant", qDto);
    }
    for (int i = 0; i < menuList.size(); i++) {
      MenuVo menuVo = (MenuVo) menuList.get(i);
      if (checkGeant(grantedList, menuVo.getMenuid()).booleanValue()) {
        menuVo.setChecked("true");
View Full Code Here

    HttpServletRequest request = (HttpServletRequest)this.pageContext.getRequest();
    String deptid = request.getParameter("deptid");
    String roletype = request.getParameter("roletype");
    Dto deptDto = new BaseDto();
    deptDto.put("deptid", deptid);
    List deptList = g4Dao.queryForList("ArmTagSupport.queryDeptsForRoleGrant", deptDto);
    List userList = new ArrayList();
    Dto userDto = new BaseDto();
    //角色类型和用户类型代码是对应的
    userDto.put("usertype", roletype);
    if (roletype.equals("1")) {
View Full Code Here

      DeptVo deptVo = (DeptVo)deptList.get(i);
      if(deptVo.getDeptid().equals(deptid)){
        deptVo.setIsroot("true");
      }
      userDto.put("deptid", deptVo.getDeptid());
      List tempList = g4Dao.queryForList("ArmTagSupport.queryUsersForRoleGrant", userDto);
      userList.addAll(tempList);
    }
    Dto grantDto = new BaseDto();
    grantDto.put("roleid", request.getParameter("roleid"));
    List grantList = g4Dao.queryForList("ArmTagSupport.queryGrantedUsersByRoleId", grantDto);
View Full Code Here

      List tempList = g4Dao.queryForList("ArmTagSupport.queryUsersForRoleGrant", userDto);
      userList.addAll(tempList);
    }
    Dto grantDto = new BaseDto();
    grantDto.put("roleid", request.getParameter("roleid"));
    List grantList = g4Dao.queryForList("ArmTagSupport.queryGrantedUsersByRoleId", grantDto);
    for(int i = 0; i < userList.size(); i++){
      UserVo userVo = (UserVo)userList.get(i);
      String usertypeString = WebUtils.getCodeDesc("USERTYPE", userVo.getUsertype(), request);
      String usernameString = userVo.getUsername();
      usernameString += "[" + userVo.getAccount() + ", " + usertypeString + "]";
View Full Code Here

    HttpServletRequest request = (HttpServletRequest)this.pageContext.getRequest();
    String deptid = request.getParameter("deptid");
    String usertype = request.getParameter("usertype");
    Dto deptDto = new BaseDto();
    deptDto.put("deptid", deptid);
    List deptList = g4Dao.queryForList("ArmTagSupport.queryDeptsForUserGrant", deptDto);
    List roleList = new ArrayList();
    Dto roleDto = new BaseDto();
    //角色类型和用户类型代码是对应的
    //经办员和注册人员属于业务经办角色
    if (usertype.equals("4")) {
View Full Code Here

      DeptVo deptVo = (DeptVo)deptList.get(i);
      if(deptVo.getDeptid().equals(deptid)){
        deptVo.setIsroot("true");
      }
      roleDto.put("deptid", deptVo.getDeptid());
      List tempList = g4Dao.queryForList("ArmTagSupport.queryRolesForUserGrant", roleDto);
      roleList.addAll(tempList);
    }
    Dto grantDto = new BaseDto();
    grantDto.put("userid", request.getParameter("userid"));
    List grantList = g4Dao.queryForList("ArmTagSupport.queryGrantedRolesByUserId", grantDto);
View Full Code Here

      List tempList = g4Dao.queryForList("ArmTagSupport.queryRolesForUserGrant", roleDto);
      roleList.addAll(tempList);
    }
    Dto grantDto = new BaseDto();
    grantDto.put("userid", request.getParameter("userid"));
    List grantList = g4Dao.queryForList("ArmTagSupport.queryGrantedRolesByUserId", grantDto);
    for(int i = 0; i < roleList.size(); i++){
      RoleVo roleVo = (RoleVo)roleList.get(i);
      String roletypeString = WebUtils.getCodeDesc("ROLETYPE", roleVo.getRoletype(), request);
      String rolenameString = roleVo.getRolename();
      rolenameString += "[" + roletypeString + "]";
View Full Code Here

    Dao g4Dao = (Dao)SpringBeanLoader.getSpringBean("g4Dao");
    HttpServletRequest request = (HttpServletRequest)this.pageContext.getRequest();
    Dto grantDto = new BaseDto();
    grantDto.put("userid", request.getParameter("userid"));
    grantDto.put("authorizelevel", SystemConstants.AUTHORIZELEVEL_ACCESS);
    List grantedList = g4Dao.queryForList("ArmTagSupport.queryGrantedMenusByUserId", grantDto);
    List menuList = new ArrayList();
    String account = WebUtils.getSessionContainer(request).getUserInfo().getAccount();
    String developerAccount = WebUtils.getParamValue("DEFAULT_DEVELOP_ACCOUNT", request);
    String superAccount = WebUtils.getParamValue("DEFAULT_ADMIN_ACCOUNT", request);
    Dto qDto = new BaseDto();
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.