Exemplo n.º 1
0
    private void bindData()
    {
        HotelGTAService hotelGTAService = new HotelGTAService();
        if (HotelMaterial != null && HotelMaterial.Count > 0)
        {
            for (int i = 0; i < HotelMaterial.Count; i++)
            {
                MVHotel hotel = (MVHotel)HotelMaterial[i];
                if (hotel.HotelInformation.HotelCode.Trim().ToUpper() == HotelCode.Trim().ToUpper())
                {
                    lbhotelname.Text = hotel.HotelInformation.Name;
                    if (hotel.Items[0].Items[0].Room != null)
                    {
                        lbroomcode.Text = hotel.Items[0].Items[0].Room.CategoryName;
                        lbremark.Text = "Stay Offer - " + hotel.Items[0].Items[0].Room.OfferName;
                        string strRemarks = "";
                        string strValidity = "";
                        hotelGTAService.GetGTAOffer(CityCode, HotelCode, CheckInDate, CheckOutDate, out strRemarks, out strValidity);
                        lbremark1.Text = strRemarks;
                        lbValidity.Text = strValidity;
                        //lbroomcode.Text = ((RoomInfo)hotel.Rooms[index]).
                    }

                }
            }
        }
    }