Пример #1
0
        protected void btnHotelNameSearch_Click(object sender, EventArgs e)
        {
            HotelServiceRef.HotelService pxy = new HotelServiceRef.HotelService();
            HotelServiceRef.Hotel hotel = new HotelServiceRef.Hotel();

            hotel.City = txtHotelCity.Text;
            hotel.Id = Convert.ToInt32(ddlHotelNames.SelectedValue);
            hotel.Name = ddlHotelNames.SelectedItem.Text;
            hotel.State = ddlHotelState.SelectedItem.Text;

            DataSet myDS = pxy.GetRooms(hotel);
            rptHotelResults.DataSource = myDS;
            rptHotelResults.DataBind();
            divHotelResults.Visible = true;
        }
Пример #2
0
 /// <remarks/>
 public void GetRoomsAsync(Hotel hotel, object userState) {
     if ((this.GetRoomsOperationCompleted == null)) {
         this.GetRoomsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRoomsOperationCompleted);
     }
     this.InvokeAsync("GetRooms", new object[] {
                 hotel}, this.GetRoomsOperationCompleted, userState);
 }
Пример #3
0
 /// <remarks/>
 public void GetRoomsAsync(Hotel hotel) {
     this.GetRoomsAsync(hotel, null);
 }
Пример #4
0
 public System.Data.DataSet GetRooms(Hotel hotel) {
     object[] results = this.Invoke("GetRooms", new object[] {
                 hotel});
     return ((System.Data.DataSet)(results[0]));
 }
Пример #5
0
 /// <remarks/>
 public void GetRoomsAsync(Hotel hotel)
 {
     this.GetRoomsAsync(hotel, null);
 }