예제 #1
0
  /*
   * 查询显示行数
   */
  @Action(
      value = "count_invoice",
      results = {
        @Result(
            type = "json",
            name = "success",
            params = {"contentType", "text/json"})
      })
  public String count() {
    try {
      result.setRecordCount(invoiceBiz.findInvoicePageCountByConditions(invoice, result));

    } catch (Exception e) {
      e.printStackTrace();
      return INPUT;
    }
    return SUCCESS;
  }
예제 #2
0
  // @SuppressWarnings("unchecked")
  @Action(
      value = "list_invoice",
      results = {
        @Result(
            name = "success",
            type = "json",
            params = {"contentType", "text/json"})
      })
  public String execute() throws Exception {

    try {
      list = invoiceBiz.findInvoicePageListByConditions(invoice, result);
      result.setList(list);
    } catch (Exception e) {
      e.printStackTrace();
    }
    return SUCCESS;
  }