Package org.jeecgframework.web.system.pojo.base

Examples of org.jeecgframework.web.system.pojo.base.TSDemo


  /**
   * @Description 修复Demo表,(界面表单验证功能)
   * @author tanghan 2013-7-23
   */
  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


  @ResponseBody
  public AjaxJson saveDemo(TSDemo demo, HttpServletRequest request) throws Exception{
    AjaxJson j = new AjaxJson();
    if (!StringUtil.isEmpty(demo.getId())) {
      message = "Demo维护例子: " + demo.getDemotitle() + "被更新成功";
      TSDemo entity = this.systemService.get(TSDemo.class, demo.getId());
      MyBeanUtils.copyBeanNotNull2Bean(demo, entity);
     
      if (demo.getTSDemo() == null || StringUtil.isEmpty(demo.getTSDemo().getId())) {
        entity.setTSDemo(null);
      }
      this.systemService.saveOrUpdate(entity);
    }else {
      message = "Demo例子: " + demo.getDemotitle() + "被添加成功";
      if (demo.getTSDemo() == null || StringUtil.isEmpty(demo.getTSDemo().getId())) {
View Full Code Here

TOP

Related Classes of org.jeecgframework.web.system.pojo.base.TSDemo

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.