Esempio n. 1
0
  private String _getCommonModelHTML(Set<CommonModel> list) {
    StringBuilder html = new StringBuilder();
    for (CommonModel model : list) {
      List<CommonModelField> fields = model.getCommonModelFieldListOrdered();

      html.append("<div>")
          .append(model.getName())
          .append("&lt;")
          .append(model.getCode())
          .append("&gt;</div>")
          .append("<table class=\"param-table\">")
          .append("<thead>")
          .append("<th class=\"th-identifier\">字段名</th>")
          .append("<th class=\"th-type\">类型</th>")
          .append("<th class=\"th-need\">必填</th>")
          .append("<th class=\"th-remark\">备注</th>")
          .append("</thead>");
      getCommonModelHTMLSub(html, fields, (short) 1);
      html.append("</table><hr/>");
    }
    return html.toString();
  }
Esempio n. 2
0
 // 更新CommonModel基本属性
 public void update(CommonModel commonModel) {
   setCode(commonModel.getCode());
   setName(commonModel.getName());
 }