Beispiel #1
0
 /**
  * 设置页面
  *
  * @return
  */
 public String config() {
   site = getManageSite();
   if (site != null) {
     // 设置模板名称
     if (site.getIndextemplet() != null && site.getIndextemplet().trim().length() > 0) {
       templet = templetService.findById(site.getIndextemplet());
       if (templet != null) {
         site.setIndextempletName(templet.getName());
       }
     }
     init("htmlquartzService");
     htmlquartz = htmlquartzService.findBySiteid(site.getId());
   }
   return "config";
 }
Beispiel #2
0
 /**
  * 添加页面
  *
  * @return
  */
 public String edit() {
   if (site != null && site.getId() != null && site.getId().trim().length() > 0) {
     site = siteService.findById(site.getId());
     // 设置模板名称
     if (site.getIndextemplet() != null && site.getIndextemplet().trim().length() > 0) {
       templet = templetService.findById(site.getIndextemplet());
       if (templet != null) {
         site.setIndextempletName(templet.getName());
       }
     }
     init("htmlquartzService");
     htmlquartz = htmlquartzService.findBySiteid(site.getId());
   }
   return "edit";
 }