Пример #1
0
 /**
  * **********************************************
  *
  * @return void 返回类型
  * @throws @Title: ajaxPOST @Description: (酒店介绍 图片列表 请求操作) 设定文件
  * @date 2014-11-19 ***********************************************
  */
 private void ajaxPOST() {
   rd = (ReservationDto) MapVo.get("reservtion");
   if (rd == null) {
     Toast.makeText(activity, "数据异常,请重新选择酒店及入住时间", Toast.LENGTH_SHORT).show();
   } else {
     if (rd.getHotelCode() != null && rd.getHotelCode() != "") {
       String jsonParams = "{'hotelCode':" + rd.getHotelCode() + "}";
       InternetConfig config = new InternetConfig();
       config.setKey(111);
       FastHttpHander.ajaxString(Url.HOTELRESERVE_ASSET_BULIDING_ARRAY, jsonParams, config, this);
     } else {
       Toast.makeText(activity, "数据异常,请重新选择酒店及入住时间", Toast.LENGTH_SHORT).show();
     }
   }
 }
Пример #2
0
  private void ajaxImgList() {

    InternetConfig config = new InternetConfig();
    JsonObject json = new JsonObject();
    json.addProperty("hotelCode", rd.getHotelCode());
    //		json.addProperty("roomTypeCode", rd.getRoomTypeCode());
    //		json.addProperty("includeLayoutPic", "1");
    //		json.addProperty("includePic", "1");
    FastHttpHander.ajaxString(Url.HOTELRESERVE_ASSET_BULIDING_ARRAY, json.toString(), config, this);
  }
Пример #3
0
 /**
  * **********************************************
  *
  * @param page 设定文件
  * @return void 返回类型
  * @throws @Title: ajaxRoomList @Description: TODO(获取房间列表)
  * @date 2014-11-19 ***********************************************
  */
 private void ajaxRoomList(int page) {
   RoomResourceParamDto rrpd = new RoomResourceParamDto();
   rrpd.setStartDate(rd.getStartDate());
   rrpd.setEndDate(rd.getEndDate());
   rrpd.setHotelCode(rd.getHotelCode());
   rrpd.setCardNo(rd.getCardNo());
   rrpd.setPageNo(page + "");
   rrpd.setPageCount("5");
   ArrayList<HashMap<String, String>> conditions =
       (ArrayList<HashMap<String, String>>) MapVo.get("conditions");
   if (conditions != null) {
     rrpd.setBuildingCode(conditions.get(3).get("text_type_code") + "");
     rrpd.setFloorCode(conditions.get(4).get("text_type_code") + "");
     rrpd.setInfarIntro(conditions.get(2).get("text_type_code") + "");
     rrpd.setRoomTypeCode(conditions.get(0).get("text_type_code") + "");
     rrpd.setViewCode(conditions.get(1).get("text_type_code") + "");
     rrpd.setRoomIdxRange(conditions.get(5).get("text_type_code") + "");
   }
   InternetConfig config = new InternetConfig();
   config.setKey(1);
   String json = Handler_Json.beanToJson(rrpd);
   Ioc.getIoc().getLogger().i(json);
   FastHttpHander.ajaxString(Url.HOTELRESERVE_ASSET_RECOMMENDROOMARRAY, json, config, this);
 }