예제 #1
0
 // 分页数量
 @Action(
     value = "count_examroom",
     results = {
       @Result(
           type = "json",
           name = "success",
           params = {"contentType", "text/json"})
     })
 public String count() {
   try {
     result.setRecordCount(examroombiz.findExamRoomPageCount(examroom, result));
   } catch (Exception e) {
     e.printStackTrace();
   }
   return SUCCESS;
 }
 // 分页数量
 @Action(
     value = "count_invigilators",
     results = {
       @Result(
           type = "json",
           name = "success",
           params = {"contentType", "text/json"})
     })
 public String count() {
   try {
     result.setRecordCount(invigilatorbiz.findInvigilatorPageCount(invigilator, result));
   } catch (Exception e) {
     e.printStackTrace();
   }
   return SUCCESS;
 }
예제 #3
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;
  }