@Override
 public void onLoadMore() {
   // TODO Auto-generated method stub
   if (mRecords.size() >= total) {
     mRecordList.stopLoadMore();
     mRecordList.setPullLoadEnable(false);
     CommonUtil.toastShort(getActivity(), "没有更多数据");
   } else {
     getMoreData();
   }
 }
 /**
  * enable or disable the buttons
  *
  * @param
  * @return
  */
 private void toggleButtons() {
   boolean shouldEnable =
       !TextUtils.isEmpty(tradeClientName)
           && !TextUtils.isEmpty(tradeStartDate)
           && !TextUtils.isEmpty(tradeEndDate);
   mTradeSearch.setEnabled(shouldEnable);
   mTradeStatistic.setEnabled(shouldEnable);
   if (mRecords.size() > 0) {
     mRecordList.setPullLoadEnable(shouldEnable);
   }
 }