public static IList <ELongHotelSurroundingCommerceAdapter> GetHotelSurroundingCommerceList(string hotelId)
        {
            IList <ELongHotelSurroundingCommerceAdapter> list = new List <ELongHotelSurroundingCommerceAdapter>();
            string      path = string.Format(PATH_HOTEL_ID_CN, hotelId);
            XmlDocument doc  = GetDoc(path);

            XmlNamespaceManager xnm   = GetXnmQ1();
            XmlNodeList         nodes = doc.SelectNodes("q1:HotelDetail/q1:surroundingCommerces/q1:surroundingCommerce", xnm);

            foreach (XmlNode node in nodes)
            {
                ELongHotelSurroundingCommerceAdapter adapter = new ELongHotelSurroundingCommerceAdapter();
                adapter.from(node, xnm, "q1:", "");
                adapter.exHotelId = hotelId;
                list.Add(adapter);
            }
            return(list);
        }
        public static IList<ELongHotelSurroundingCommerceAdapter> GetHotelSurroundingCommerceList(string hotelId)
        {
            IList<ELongHotelSurroundingCommerceAdapter> list = new List<ELongHotelSurroundingCommerceAdapter>();
            string path = string.Format(PATH_HOTEL_ID_CN, hotelId);
            XmlDocument doc = GetDoc(path);

            XmlNamespaceManager xnm = GetXnmQ1();
            XmlNodeList nodes = doc.SelectNodes("q1:HotelDetail/q1:surroundingCommerces/q1:surroundingCommerce", xnm);
            foreach (XmlNode node in nodes)
            {
                ELongHotelSurroundingCommerceAdapter adapter = new ELongHotelSurroundingCommerceAdapter();
                adapter.from(node, xnm, "q1:", "");
                adapter.exHotelId = hotelId;
                list.Add(adapter);
            }
            return list;
        }
Beispiel #3
0
 public void from(ELongHotelSurroundingCommerceAdapter adapter)
 {
     this.fromBase(adapter);
        this.timeTaking = ObjectUtil.ParseInt(adapter.TimeTaking, -1);
        this.note = adapter.Note;
        this.transportFee = ObjectUtil.ParseFloat(adapter.TransportFee, 0);
        this.transportationsFk = adapter.TransportationsFk;
 }