Package com.iisigroup.cap.response

Examples of com.iisigroup.cap.response.GridResult


        } catch (Exception e) {
          return "X";
        }
      }
    });
    return new GridResult(page.getContent(), page.getTotalRow(), fmt);
  }// ;
View Full Code Here


    }
    Page<BatchSchedule> page = batchSrv.findSchPage(search);
    Map<String, IFormatter> fmt = new HashMap<String, IFormatter>();
    fmt.put("updateTime", new ADDateFormatter());
    fmt.put("schType", new I18NFormatter("sch.schType."));
    return new GridResult(page.getContent(), page.getTotalRow(), fmt);
  }// ;
View Full Code Here

    Map<String, IFormatter> fmt = new HashMap<String, IFormatter>();
    // fmt.put("lastModifyBy", new UserNameFormatter(this.userService));

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

      search.addOrderBy("parmId");
    }
    Page<SysParm> page = commonService.findPage(SysParm.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

      }
    }
    Page<CodeType> page = commonService.findPage(CodeType.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

   
    Page<DivCtItm> page = commonService.findPage(DivCtItm.class, search);
    Map<String, IFormatter> fmt = new HashMap<String, IFormatter>();
//    fmt.put("updateTime", new ADDateFormatter());
    fmt.put("condVal", new CondValFormatter(factorMntService));
    return new GridResult(page.getContent(), page.getTotalRow(), fmt);
  }// ;
View Full Code Here

  public GridResult queryConditionDtlByDivCtNo(ISearch search, IRequest params) {
    if (params.containsKey("divCtNo") && !CapString.isEmpty(params.get("divCtNo"))) {
      search.addSearchModeParameters(SearchMode.EQUALS, "divCtNo",
          params.get("divCtNo"));
    }else{
      return new GridResult();
    }
   
    Page<DivCtDtl> page = commonService.findPage(DivCtDtl.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

  public GridResult queryFactorDetailByFactorNo(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());
    fmt.put("rangeNm", new RangeNmFormatter());
    fmt.put("factorNm", new FactorNmFormatter());
    return new GridResult(page.getContent(), page.getTotalRow(), fmt);
  }// ;
View Full Code Here

  @HandlerType(HandlerTypeEnum.GRID)
  public GridResult queryConditionDtlGridByDivCtNo(ISearch search, IRequest params) {
    if (params.containsKey("divCtNo") && !CapString.isEmpty(params.get("divCtNo"))) {
      search.addSearchModeParameters(SearchMode.EQUALS, "divCtNo", params.get("divCtNo"));
    }else{
      return new GridResult();
    }
    Page<DivCtDtl> page = commonService.findPage(DivCtDtl.class, search);
    Map<String, IFormatter> fmt = new HashMap<String, IFormatter>();
    fmt.put("factorNm", new CondFactorNmFormatter());
    fmt.put("rangeNm", new CondRangeNmFormatter());
    return new GridResult(page.getContent(), page.getTotalRow(), fmt);
  }// ;
View Full Code Here

   
    Page<DivFtItm> page = commonService.findPage(DivFtItm.class, search);
    Map<String, IFormatter> fmt = new HashMap<String, IFormatter>();
//    fmt.put("updateTime", new ADDateFormatter());
    fmt.put("rangeNm", new RangeNmFormatter());
    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.