/**
   * **********************************************
   *
   * @param type 设定文件
   * @return void 返回类型
   * @throws @Title: callListView @Description: TODO(上滑 下滑 监控)
   * @date 2014-11-19 ***********************************************
   */
  @InjectPullRefresh
  protected void callListView(int type) {
    // 这里的type来判断是否是下拉还是上拉
    switch (type) {
      case InjectView.PULL:
        ajaxRoomList(pageNo);
        break;

      case InjectView.DOWN:
        dataList.clear();
        srla.notifyDataSetChanged();
        ajaxRoomList(1);
        break;
    }
  }
  /**
   * **********************************************
   *
   * @param list 设定文件
   * @return void 返回类型
   * @throws @Title: getList @Description: TODO(为适配器装载数据)
   * @date 2014-11-19 ***********************************************
   */
  private void getList(ArrayList<HashMap<String, String>> list) {

    // RoomResourceDto
    if (list != null) {
      // dataList.clear();
      List<OrderCenterEntity> orderList = getNotSubOrder(rd.getStartDate(), rd.getEndDate());

      for (int i = 0; i < list.size(); i++) {

        HashMap<String, String> hashMap = new HashMap<String, String>();
        HashMap<String, String> r = list.get(i);
        if (orderList != null) {
          for (int j = 0; j < orderList.size(); j++) {
            if (orderList.get(j).getRoomCode().equals(r.get("roomCode"))) {
              hashMap.put("img_sel", "1"); // 是否存在 1是 空或0 不是
            }
          }
        }
        hashMap.put(
            "text_room_name",
            r.get("roomTypeName") + "-" + r.get("floorName") + "-" + r.get("roomCode"));
        hashMap.put("text_myExam_content", r.get("viewIntro"));
        hashMap.put("text_room_idx", getString(R.string._room_idx, r.get("roomIdx")));
        // hashMap.put("text_room_idx",
        // getString(R.string._room_idx,rd.get("roomIdx")));
        //                if (null != rd.getCardNo() && !"".equals(rd.getCardNo())) {
        //                    hashMap.put("text_pointsNight", r.get("idx") + "间夜");
        //                } else {
        //                    hashMap.put("text_pointsNight",
        //                            getString(R.string._price, r.get("price")));
        //                }
        hashMap.put("text_pointsNight", getString(R.string._price, r.get("price")));
        hashMap.put("text_infarIntro", r.get("infarIntro"));
        hashMap.put("roomCode", r.get("roomCode"));
        hashMap.put("image_myExam_infoIcon", r.get("logoUrl")); // rd.get("logoUrl")

        hashMap.put("btn_reservation", "预订");
        dataList.add(hashMap);
      }
    }
    srla.notifyDataSetChanged();
  }