Exemplo n.º 1
0
  @Override
  public List<ProjectSystem> pageListByBudgetId(int currPage, int budgetId, int flag) {
    ProjectSystem projectSystem = new ProjectSystem();
    PagingService pagingService = new PagingServiceImpl();
    if (currPage == 1 && flag == 1) {
      ActionContext.getContext().getSession().put("bId", budgetId);
    }
    Integer integer = (Integer) ActionContext.getContext().getSession().get("bId");
    int bId = integer.intValue();

    return pagingService.pageListByBudgetId(currPage, projectSystem, bId);
  }
Exemplo n.º 2
0
  @Override
  public int getPageCountByProjectId(int currPage, int projectId, int flag) {
    ProjectSystem projectSystem = new ProjectSystem();
    PagingService pagingService = new PagingServiceImpl();
    if (currPage == 1 && flag == 1) {
      ActionContext.getContext().getSession().put("pId", projectId);
    }
    Integer integer = (Integer) ActionContext.getContext().getSession().get("pId");
    int pId = integer.intValue();

    return pagingService.getPageCountByProjectId(projectSystem, pId);
  }