Package org.jeecgframework.web.cgreport.exception

Examples of org.jeecgframework.web.cgreport.exception.CgReportNotFoundException


    //step.1 根据id获取该动态报表的配置参数
    Map<String, Object>  cgReportMap = null;
    try{
      cgReportMap = cgReportService.queryCgReportConfig(id);
    }catch (Exception e) {
      throw new CgReportNotFoundException("动态报表配置不存在!");
    }
    //step.2 获取列表ftl模板路径
    FreemarkerHelper viewEngine = new FreemarkerHelper();
    //step.3 组合模板+数据参数,进行页面展现
    loadVars(cgReportMap);
View Full Code Here


    //step.1 根据id获取该动态报表的配置参数
    Map<String, Object>  cgReportMap = null;
    try{
      cgReportMap = cgReportService.queryCgReportConfig(id);
    }catch (Exception e) {
      throw new CgReportNotFoundException("动态报表配置不存在!");
    }
    //step.2 获取列表ftl模板路径
    FreemarkerHelper viewEngine = new FreemarkerHelper();
    //step.3 组合模板+数据参数,进行页面展现
    loadVars(cgReportMap);
View Full Code Here

    //step.1 根据id获取该动态报表的配置参数
    Map<String, Object>  cgReportMap = null;
    try{
      cgReportMap = cgReportService.queryCgReportConfig(configId);
      if(cgReportMap.size()<=0){
        throw new CgReportNotFoundException("动态报表配置不存在!");
      }
    }catch (Exception e) {
      throw new CgReportNotFoundException("查找动态报表配置失败!"+e.getMessage());
    }
    //step.2 获取该配置的查询SQL
    Map configM = (Map) cgReportMap.get(CgReportConstant.MAIN);
    String querySql = (String) configM.get(CgReportConstant.CONFIG_SQL);
    List<Map<String,Object>> items = (List<Map<String, Object>>) cgReportMap.get(CgReportConstant.ITEMS);
View Full Code Here

      String configId = request.getParameter("configId");
      Map<String, Object> cgReportMap = null;
      try{
        cgReportMap = cgReportService.queryCgReportConfig(configId);
      }catch (Exception e) {
        throw new CgReportNotFoundException("动态报表配置不存在!");
      }
      List<Map<String,Object>> fieldList = (List<Map<String, Object>>) cgReportMap.get(CgReportConstant.ITEMS);
      Map configM = (Map) cgReportMap.get(CgReportConstant.MAIN);
      codedFileName = configM.get("name")+codedFileName;
      String querySql = (String) configM.get(CgReportConstant.CONFIG_SQL);
View Full Code Here

TOP

Related Classes of org.jeecgframework.web.cgreport.exception.CgReportNotFoundException

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.