Package org.jeecgframework.web.cgform.engine

Examples of org.jeecgframework.web.cgform.engine.FreemarkerHelper


      cgReportMap = cgReportService.queryCgReportConfig(id);
    }catch (Exception e) {
      throw new CgReportNotFoundException("动态报表配置不存在!");
    }
    //step.2 获取列表ftl模板路径
    FreemarkerHelper viewEngine = new FreemarkerHelper();
    //step.3 组合模板+数据参数,进行页面展现
    loadVars(cgReportMap);
    String html = viewEngine.parseTemplate("/org/jeecgframework/web/cgreport/engine/core/cgreportlist.ftl", cgReportMap);
    try {
      response.setContentType("text/html");
      response.setHeader("Cache-Control", "no-store");
      PrintWriter writer = response.getWriter();
      writer.println(html);
View Full Code Here


      cgReportMap = cgReportService.queryCgReportConfig(id);
    }catch (Exception e) {
      throw new CgReportNotFoundException("动态报表配置不存在!");
    }
    //step.2 获取列表ftl模板路径
    FreemarkerHelper viewEngine = new FreemarkerHelper();
    //step.3 组合模板+数据参数,进行页面展现
    loadVars(cgReportMap);
    String html = viewEngine.parseTemplate("/org/jeecgframework/web/cgreport/engine/core/cgreportlistpopup.ftl", cgReportMap);
    try {
      response.setContentType("text/html");
      response.setHeader("Cache-Control", "no-store");
      PrintWriter writer = response.getWriter();
      writer.println(html);
View Full Code Here

    long start = System.currentTimeMillis();
    //step.1 根据表名获取该表单的配置参数
    String jversion = cgFormFieldService.getCgFormVersionByTableName(id);
    Map<String, Object> configs = configService.queryConfigs(id,jversion);
    //step.2 获取列表ftl模板路径
    FreemarkerHelper viewEngine = new FreemarkerHelper();
    Map<String, Object> paras = new HashMap<String, Object>();
    //step.3 封装页面数据
    loadVars(configs,paras,request);
    //step.4 组合模板+数据参数,进行页面展现
    String html = viewEngine.parseTemplate("/org/jeecgframework/web/cgform/engine/autolist/autolist.ftl", paras);
    try {
      response.setContentType("text/html");
      response.setHeader("Cache-Control", "no-store");
      PrintWriter writer = response.getWriter();
      writer.println(html);
View Full Code Here

   */
  private void repairDemo() {
    TSDemo demo = new TSDemo();
    // -------------------------------------------------
    // 复杂字符串文本读取,采用文件方式存储
    String html = new FreemarkerHelper().parseTemplate("/org/jeecgframework/web/system/txt/valid-code-demo.ftl", null);
    // -------------------------------------------------
    demo.setDemocode(html);
    demo.setDemotitle("表单验证");
    commonDao.saveOrUpdate(demo);

View Full Code Here

TOP

Related Classes of org.jeecgframework.web.cgform.engine.FreemarkerHelper

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.