Package com.iisigroup.cap.response

Examples of com.iisigroup.cap.response.MapGridResult


    Map<String, IFormatter> fmt = new HashMap<String, IFormatter>();
    fmt.put("startDate", new ADDateFormatter());
    fmt.put("START_TIME", new ADDateTimeFormatter("HH:mm:ss"));
    fmt.put("duration", new DurationFormatter("START_TIME", "END_TIME",
        "HH:mm:ss.SSS"));
    return new MapGridResult(page.getContent(), page.getTotalRow(), fmt);
  }// ;
View Full Code Here


    String executionId = request.get("jobExeId");
    List<Map<String, Object>> list = batchSrv.findSteps(executionId);
    Map<String, IFormatter> fmt = new HashMap<String, IFormatter>();
    fmt.put("duration", new DurationFormatter("START_TIME", "END_TIME",
        "HH:mm:ss.SSS"));
    return new MapGridResult(list, list.size(), fmt);
  }// ;
View Full Code Here

  @HandlerType(HandlerTypeEnum.GRID)
  public MapGridResult query(ISearch search, IRequest params) {

    Page<Map<String, Object>> page = seqSrv.findPage(
        search.getFirstResult(), search.getMaxResults());
    return new MapGridResult(page.getContent(), page.getTotalRow());
  }// ;
View Full Code Here

        fmt.put("createTime", new ADDateFormatter());
        fmt.put("updateTime", new ADDateFormatter());
        fmt.put("pwdExpiredTime", new ADDateFormatter());
        fmt.put("status", new CodeTypeFormatter(codeTypeService, "userStatus",
                (Locale) SimpleContextHolder.get(CapWebUtil.localeKey)));
        return new MapGridResult(page.getContent(), page.getTotalRow(), fmt);
    }// ;
View Full Code Here

        String type = params.get("type");
        if ("modify".equalsIgnoreCase(type)) {
            List<Map<String, Object>> roleList = null;
            String userCode = params.get("userCode");
            roleList = roleSetService.findAllRoleWithSelectedByUserCode(userCode);
            MapGridResult gridResult = new MapGridResult();
            if (!CollectionUtils.isEmpty(roleList)) {
                gridResult.setRowData(roleList);
            }
            return gridResult;
        } else {
            search.addOrderBy("code", false);
            Page<Role> page = commonService.findPage(Role.class, search);
View Full Code Here

  @HandlerType(HandlerTypeEnum.GRID)
  public MapGridResult queryRole(ISearch search, IRequest params) {
    String sysType = params.get("sysType");
    String code = params.get("code");
    if (CapString.isEmpty(code)) {
      return new MapGridResult();
    }

    Page<Map<String, Object>> page = functionSetService.findPage(search, sysType,
        code);
    return new MapGridResult(page.getContent(), page.getTotalRow(), null);
  }// ;
View Full Code Here

  @HandlerType(HandlerTypeEnum.GRID)
  public MapGridResult queryAllRole(ISearch search, IRequest params) {
    String sysType = params.get("sysType");
    String code = params.get("code");
    if (CapString.isEmpty(code)) {
      return new MapGridResult();
    }

    Page<Map<String, Object>> page = functionSetService.findEditPage(search,
        sysType, code);
    return new MapGridResult(page.getContent(), page.getTotalRow(), null);
  }// ;
View Full Code Here

    @HandlerType(HandlerTypeEnum.GRID)
    public MapGridResult queryGridUser(ISearch search, IRequest params) {
        String code = params.get("code");
        if (CapString.isEmpty(code)) {
            return new MapGridResult();
        }

        Page<Map<String, Object>> page = roleSetService.findPageUser(search,
                code);
        return new MapGridResult(page.getContent(), page.getTotalRow(), null);
    }
View Full Code Here

    @HandlerType(HandlerTypeEnum.GRID)
    public MapGridResult queryGridFunc(ISearch search, IRequest params) {
        String code = params.get("code");
        if (CapString.isEmpty(code)) {
            return new MapGridResult();
        }

        Page<Map<String, Object>> page = roleSetService.findPageFunc(search,
                code);
        return new MapGridResult(page.getContent(), page.getTotalRow(), null);
    }// ;
View Full Code Here

        String depCode = params.get("depCode");
        String roleCode = params.get("roleCode");

        Page<Map<String, Object>> page = roleSetService.findPageEditUsr(search,
                roleCode, depCode);
        return new MapGridResult(page.getContent(), page.getTotalRow(), null);
    }
View Full Code Here

TOP

Related Classes of com.iisigroup.cap.response.MapGridResult

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.