Package com.iisigroup.cap.response

Examples of com.iisigroup.cap.response.GridResult


  public GridResult queryFactorDtlGridByFactorNo(ISearch search, IRequest params) {
    if (params.containsKey("factorNo") && !CapString.isEmpty(params.get("factorNo"))) {
      search.addSearchModeParameters(SearchMode.EQUALS, "factorNo",
          params.get("factorNo"));
    }else{
      return new GridResult();
    }
   
    Page<DivFtDtl> page = commonService.findPage(DivFtDtl.class, search);
    Map<String, IFormatter> fmt = new HashMap<String, IFormatter>();
    fmt.put("updateTime", new ADDateFormatter());
    return new GridResult(page.getContent(), page.getTotalRow(), fmt);
  }// ;
View Full Code Here


    search.addSearchModeParameters(SearchMode.NOT_EQUALS, "divRlNo", "");
   
    Page<DivRlItm> page = commonService.findPage(DivRlItm.class, search);
    Map<String, IFormatter> fmt = new HashMap<String, IFormatter>();
    fmt.put("ruleCont", new RuleValFormatter(this.conditionMntService));
    return new GridResult(page.getContent(), page.getTotalRow(), fmt);
  }// ;
View Full Code Here

//    }
//    search.addSearchModeParameters(SearchMode.EQUALS, "divCtNo", "C000001");
    Page<DivCtItm> page = commonService.findPage(DivCtItm.class, search);
    Map<String, IFormatter> fmt = new HashMap<String, IFormatter>();
    fmt.put("divCtCont", new CondValNmFormatter());
    return new GridResult(page.getContent(), page.getTotalRow(), fmt);
  }// ;
View Full Code Here

    if (params.containsKey("divRlNo")
        && !CapString.isEmpty(params.get("divRlNo"))) {
      search.addSearchModeParameters(SearchMode.EQUALS, "divRlNo",
          params.get("divRlNo"));
    } else {
      return new GridResult();
    }
   
    Page<DivRlDtl> page = commonService.findPage(DivRlDtl.class, search);
    Map<String, IFormatter> fmt = new HashMap<String, IFormatter>();
    fmt.put("divCtNm", new ConditionNmFormatter(conditionMntService));
    return new GridResult(page.getContent(), page.getTotalRow(), fmt);
  }// ;
View Full Code Here

            }
            return gridResult;
        } else {
            search.addOrderBy("code", false);
            Page<Role> page = commonService.findPage(Role.class, search);
            return new GridResult(page.getContent(), page.getTotalRow(), null);
        }
    }// ;
View Full Code Here

    @HandlerType(HandlerTypeEnum.GRID)
    public GridResult queryAllRole(ISearch search, IRequest params) {
        search.addOrderBy("code", false);
        Page<Role> page = commonService.findPage(Role.class, search);
        return new GridResult(page.getContent(), page.getTotalRow(), null);
    }// ;
View Full Code Here

                "userStatus");
        search.addSearchModeParameters(SearchMode.EQUALS, "locale",
                ((Locale) SimpleContextHolder.get(CapWebUtil.localeKey))
                        .toString());
        Page<CodeType> page = commonService.findPage(CodeType.class, search);
        return new GridResult(page.getContent(), page.getTotalRow(), null);
    }// ;
View Full Code Here

    Map<String, IFormatter> fmt = new HashMap<String, IFormatter>();
    fmt.put("SYSNAME", new CodeTypeFormatter(codeTypeService, "authSysId"));

    Page<Function> page = commonSrv.findPage(Function.class, search);
    return new GridResult(page.getContent(), page.getTotalRow(), fmt);
  }// ;
View Full Code Here

    search.addOrderBy("code");

    Map<String, IFormatter> fmt = new HashMap<String, IFormatter>();

    Page<Department> page = commonSrv.findPage(Department.class, search);
    return new GridResult(page.getContent(), page.getTotalRow(), fmt);
  }// ;
View Full Code Here

                return 0;
            }
        });

        Page<Role> page = commonSrv.findPage(Role.class, search);
        return new GridResult(page.getContent(), page.getTotalRow(), fmt);
    }// ;
View Full Code Here

TOP

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

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.