/**
   * 更新模板文件和系统内容设定
   *
   * @return
   */
  @Action(
      value = "updateTemplatesetT",
      results = {@Result(name = "json", type = "json")})
  public String updateTemplatesetT() {

    TemplatesetT tst = new TemplatesetT();
    tst.setTsid(this.getTsid());
    tst.setTemplateurl(this.getTemplateurl());
    tst.setSystemcontent(this.getSystemcontent().trim());
    tst.setBuildhtmlpath(this.getBuildhtmlpath());
    tst.setCreatetime(BaseTools.systemtime());
    tst.setCreatorid(BaseTools.adminCreateId());
    tst.setSign(this.getSign());
    // 获取模板主题和状态
    TemplateT tt = new TemplateT();
    tt = this.getTemplateTService().findTemplateBysign(this.getSign(), "1");
    if (tt != null) {
      tst.setThemeid(tt.getThemeid());
      tst.setThemename(tt.getThemename());
      tst.setStatus(tt.getStatus());
    }
    if (this.getTemplatesetTService().updateTemplatesetT(tst) > 0) {
      this.setSucflag(true);
      return "json";
    }
    this.setSucflag(false);
    return "json";
  }
 public void ProcessTemplatesetTlist(List<TemplatesetT> list) {
   rows.clear();
   for (Iterator<TemplatesetT> it = list.iterator(); it.hasNext(); ) {
     TemplatesetT tst = (TemplatesetT) it.next();
     tst.setStatus(StaticKey.DataUsingState.getName(tst.getStatus()));
     Map<String, Object> cellMap = new HashMap<String, Object>();
     cellMap.put("id", tst.getTsid());
     cellMap.put(
         "cell",
         new Object[] {
           tst.getThemename(),
           tst.getSystemcontent(),
           tst.getSign(),
           tst.getStatus(),
           tst.getTemplateurl(),
           tst.getBuildhtmlpath(),
           BaseTools.formateDbDate(tst.getCreatetime()),
           "<a  id='edittemplateset' href='templateset.jsp?operate=edit&folder=setting&tsid="
               + tst.getTsid()
               + "' name='edittemplateset'>[编辑]</a>"
         });
     rows.add(cellMap);
   }
 }