Exemplo n.º 1
0
        protected void btnFilter_Click(object sender, EventArgs e)
        {
            AirSVC.AirCarrier objAirCarrier = new AirSVC.AirCarrier();
            string            carrierName   = gvAirCarriers.SelectedRow.Cells[1].Text;

            if (carrierName == "American Airlines")
            {
                objAirCarrier.AirCarrierID = 1;
            }
            else if (carrierName == "Delta Air Lines")
            {
                objAirCarrier.AirCarrierID = 2;
            }
            else
            {
                objAirCarrier.AirCarrierID = 3;
            }

            AirSVC.FlightRequirement objFlightRequirement = new AirSVC.FlightRequirement();
            objFlightRequirement.Nonstop     = chkboxNonStop.Checked;
            objFlightRequirement.SeatingType = ddlSeatingType.SelectedValue;

            gvFlights.DataSource = pxyAir.FilterFlightsByCarrier(objAirCarrier, objFlightRequirement, ddlCity.SelectedValue, ddlState.SelectedValue, ddlCity2.SelectedValue, ddlState2.SelectedValue);
            gvFlights.DataBind();
        }
Exemplo n.º 2
0
 public System.Data.DataSet FindFlights(FlightRequirement req, string departCity, string departState, string arriveCity, string arriveState)
 {
     object[] results = this.Invoke("FindFlights", new object[] {
         req,
         departCity,
         departState,
         arriveCity,
         arriveState
     });
     return((System.Data.DataSet)(results[0]));
 }
Exemplo n.º 3
0
 public System.Data.DataSet FilterFlightsByCarrier(AirCarrier airCarrierID, FlightRequirement requirements, string departureCity, string departureState, string arrivalCity, string arrivalState)
 {
     object[] results = this.Invoke("FilterFlightsByCarrier", new object[] {
         airCarrierID,
         requirements,
         departureCity,
         departureState,
         arrivalCity,
         arrivalState
     });
     return((System.Data.DataSet)(results[0]));
 }
Exemplo n.º 4
0
 /// <remarks/>
 public void FindFlightsAsync(FlightRequirement req, string departCity, string departState, string arriveCity, string arriveState, object userState)
 {
     if ((this.FindFlightsOperationCompleted == null))
     {
         this.FindFlightsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnFindFlightsOperationCompleted);
     }
     this.InvokeAsync("FindFlights", new object[] {
         req,
         departCity,
         departState,
         arriveCity,
         arriveState
     }, this.FindFlightsOperationCompleted, userState);
 }
Exemplo n.º 5
0
 /// <remarks/>
 public void FilterFlightsByCarrierAsync(AirCarrier airCarrierID, FlightRequirement requirements, string departureCity, string departureState, string arrivalCity, string arrivalState, object userState)
 {
     if ((this.FilterFlightsByCarrierOperationCompleted == null))
     {
         this.FilterFlightsByCarrierOperationCompleted = new System.Threading.SendOrPostCallback(this.OnFilterFlightsByCarrierOperationCompleted);
     }
     this.InvokeAsync("FilterFlightsByCarrier", new object[] {
         airCarrierID,
         requirements,
         departureCity,
         departureState,
         arrivalCity,
         arrivalState
     }, this.FilterFlightsByCarrierOperationCompleted, userState);
 }
Exemplo n.º 6
0
 /// <remarks/>
 public void FilterFlightsByCarrierAsync(AirCarrier airCarrierID, FlightRequirement requirements, string departureCity, string departureState, string arrivalCity, string arrivalState)
 {
     this.FilterFlightsByCarrierAsync(airCarrierID, requirements, departureCity, departureState, arrivalCity, arrivalState, null);
 }
Exemplo n.º 7
0
 /// <remarks/>
 public void FindFlightsAsync(FlightRequirement req, string departCity, string departState, string arriveCity, string arriveState)
 {
     this.FindFlightsAsync(req, departCity, departState, arriveCity, arriveState, null);
 }