Package org.jeecgframework.web.cgform.entity.cgformftl

Examples of org.jeecgframework.web.cgform.entity.cgformftl.CgformFtlEntity


  @ResponseBody
  public AjaxJson save(CgformFtlEntity cgformFtl, HttpServletRequest request) {
    AjaxJson j = new AjaxJson();
    if (StringUtil.isNotEmpty(cgformFtl.getId())) {
      message = "更新成功";
      CgformFtlEntity t = cgformFtlService.get(CgformFtlEntity.class,
          cgformFtl.getId());
      try {
        MyBeanUtils.copyBeanNotNull2Bean(cgformFtl, t);
        cgformFtlService.saveOrUpdate(t);
        systemService.addLog(message, Globals.Log_Type_UPDATE,
View Full Code Here


   * @author 安超
   * @return
   */
  @RequestMapping(params = "formEkeditor")
  public ModelAndView ckeditor(HttpServletRequest request, String id) {
    CgformFtlEntity t = systemService.get(CgformFtlEntity.class, id);
    request.setAttribute("cgformFtlEntity", t);
    if (t.getFtlContent() == null) {
      request.setAttribute("contents", "");
    } else {
      request.setAttribute("contents", new String(t.getFtlContent()));
    }
    return new ModelAndView("jeecg/cgform/cgformftl/ckeditor");
  }
View Full Code Here

  @ResponseBody
  public AjaxJson saveCkeditor(HttpServletRequest request,
      CgformFtlEntity cgformFtlEntity, String contents) {
    AjaxJson j = new AjaxJson();
    if (StringUtil.isNotEmpty(cgformFtlEntity.getId())) {
      CgformFtlEntity t = systemService.get(CgformFtlEntity.class,
          cgformFtlEntity.getId());
      try {
        MyBeanUtils.copyBeanNotNull2Bean(cgformFtlEntity, t);
        t.setFtlContent(contents);
        systemService.saveOrUpdate(t);
        j.setSuccess(true);
        j.setMsg("更新成功");
      } catch (Exception e) {
        e.printStackTrace();
View Full Code Here

TOP

Related Classes of org.jeecgframework.web.cgform.entity.cgformftl.CgformFtlEntity

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.