Ejemplo n.º 1
0
        public static IList <ELongHotelAdapter> GetHotelList()
        {
            IList <ELongHotelAdapter> listHotel = new List <ELongHotelAdapter>();
            XmlDocument document = GetDoc(PATH_HOTEL_LIST);
            XmlNodeList nodes    = document.GetElementsByTagName("HotelInfoForIndex");

            foreach (XmlNode node in nodes)
            {
                // XmlNode n = node.SelectSingleNode("/HotelInfoForIndex");
                ELongHotelAdapter hotel = new ELongHotelAdapter();
                hotel.from(node, null, "", "");
                listHotel.Add(hotel);
            }
            return(listHotel);
        }
Ejemplo n.º 2
0
 public static IList<ELongHotelAdapter> GetHotelList()
 {
     IList<ELongHotelAdapter> listHotel = new List<ELongHotelAdapter>();
     XmlDocument document = GetDoc(PATH_HOTEL_LIST);
     XmlNodeList nodes = document.GetElementsByTagName("HotelInfoForIndex");
     foreach( XmlNode node in nodes){
        // XmlNode n = node.SelectSingleNode("/HotelInfoForIndex");
         ELongHotelAdapter hotel = new ELongHotelAdapter();
         hotel.from(node, null, "", "");
        listHotel.Add(hotel);
     }
     return listHotel;
 }
Ejemplo n.º 3
0
 public void fromYiLong(ELongHotelAdapter hotel)
 {
     this.hotelId = hotel.Hotel_id;
     this.hotelName = hotel.Hotel_name;
     this.hotelNameEn = hotel.Hotel_name_en;
     this.addTime = ELongStaticClient.ParseDateTime(hotel.Addtime);
     this.delTime = ELongStaticClient.ParseDateTime(hotel.DelTime);
     this.modifyTime = ELongStaticClient.ParseDateTime(hotel.Modifytime);
     this.isreserve = ObjectUtil.Parse(hotel.Isreserve, RESERVE_DELETED);
 }