예제 #1
0
  public static StringBuffer makeOutListByTableBeanWithPage(
      TableBean tbean, Map<String, Object> param, int pageIndex, int pageSize, int recordCount) {
    StringBuffer ret = new StringBuffer();
    ret.append(tbean.toHtmlListTable(true));
    ret.append("<form id='queryform' action='")
        .append(tbean.getQueryid())
        .append(QConst.ACTION_SUFFIX_OUTPUT);
    ret.append("' method='post'>\n");
    ret.append("<tr><td style='border:gray 0px solid;text-align:left;' colspan='")
        .append(tbean.isShowRowNO() ? tbean.getColsize() + 1 : tbean.getColsize())
        .append("'>");
    ret.append(new PageBean(pageIndex, pageSize, recordCount).toHtml());
    ret.append("</td></tr>\n");

    ret.append("<tr><td style='border:gray 0px solid;text-align:center;' colspan='")
        .append(tbean.isShowRowNO() ? tbean.getColsize() + 1 : tbean.getColsize())
        .append("'>");
    ret.append("<input type='button' value='返回' class='button' onclick=\"window.location.href='")
        .append(tbean.getQueryid())
        .append(QConst.ACTION_SUFFIX_QUERY)
        .append("';\">");
    ret.append("</td></tr>\n");
    ret.append("</table>\n");
    ret.append(inputHiddens(param));
    ret.append("</form>");
    return wrapByHtmlBody(
        ret, QueryconfLoader.instance().getConf(tbean.getQueryid()).getBo().getQueryname());
  }
예제 #2
0
 public static Object makeOutDetailByTableBean(TableBean tbean) {
   StringBuffer ret = new StringBuffer();
   ret.append(tbean.toHtmlDetailTable());
   return wrapByHtmlBody(
       ret,
       QueryconfLoader.instance().getConf(tbean.getQueryid()).getBo().getQueryname() + "-详细信息");
 }