protected void btnTestGetRentalCarAgencies_Click(object sender, EventArgs e)
        {
            CarServiceRef.Agency agency = new CarServiceRef.Agency();

            CarServiceRef.CarService pxy = new CarServiceRef.CarService();
            DataSet myDS = pxy.GetRentalCarAgencies("Philadelphia", "PA");
            gvDisplayResults.DataSource = myDS;
            gvDisplayResults.DataBind();
        }
Exemple #2
0
        protected void btnTestGetRentalCarAgencies_Click(object sender, EventArgs e)
        {
            CarServiceRef.Agency agency = new CarServiceRef.Agency();

            CarServiceRef.CarService pxy = new CarServiceRef.CarService();
            DataSet myDS = pxy.GetRentalCarAgencies("Philadelphia", "PA");

            gvDisplayResults.DataSource = myDS;
            gvDisplayResults.DataBind();
        }
        protected void btnTestGetCars_Click(object sender, EventArgs e)
        {
            CarServiceRef.Agency agency = new CarServiceRef.Agency();
            agency.agencyID = 1;
            agency.name = "Hertz";
            agency.phone = "";
            agency.email = "";
            agency.city = "";
            agency.state = "";

            CarServiceRef.CarService pxy = new CarServiceRef.CarService();
            DataSet myDS = pxy.GetCars(agency, "Philadelphia", "PA");
            gvDisplayResults.DataSource = myDS;
            gvDisplayResults.DataBind();
        }
Exemple #4
0
        protected void btnTestGetCars_Click(object sender, EventArgs e)
        {
            CarServiceRef.Agency agency = new CarServiceRef.Agency();
            agency.agencyID = 1;
            agency.name     = "Hertz";
            agency.phone    = "";
            agency.email    = "";
            agency.city     = "";
            agency.state    = "";

            CarServiceRef.CarService pxy = new CarServiceRef.CarService();
            DataSet myDS = pxy.GetCars(agency, "Philadelphia", "PA");

            gvDisplayResults.DataSource = myDS;
            gvDisplayResults.DataBind();
        }
        protected void btnSearchCarAgencies_Click(object sender, EventArgs e)
        {
            CarServiceRef.CarService carService = new CarServiceRef.CarService();
            DataSet agencies = carService.GetRentalCarAgencies(txtCarCity.Text, ddlCarState.SelectedValue);
            CarServiceRef.Agency agency = new CarServiceRef.Agency();
            agency.agencyID = (int)agencies.Tables[0].Rows[ddlAgencies.SelectedIndex]["agencyID"];
            agency.name = ddlAgencies.SelectedValue;
            agency.phone = (string)agencies.Tables[0].Rows[ddlAgencies.SelectedIndex]["phone"];
            agency.email = (string)agencies.Tables[0].Rows[ddlAgencies.SelectedIndex]["email"];
            agency.city = (string)agencies.Tables[0].Rows[ddlAgencies.SelectedIndex]["city"];
            agency.state = (string)agencies.Tables[0].Rows[ddlAgencies.SelectedIndex]["state"];

            CarServiceRef.CarService pxy = new CarServiceRef.CarService();
            DataSet myDS = pxy.GetCars(agency, txtCarCity.Text, ddlCarState.SelectedValue);
            rptCars.DataSource = myDS;
            rptCars.DataBind();

            divCarForm.Visible = false;
            divCarResults.Visible = true;
        }
 /// <remarks/>
 public void GetCarsAsync(Agency agency, string city, string state)
 {
     this.GetCarsAsync(agency, city, state, null);
 }
 public System.Data.DataSet GetCars(Agency agency, string city, string state) {
     object[] results = this.Invoke("GetCars", new object[] {
                 agency,
                 city,
                 state});
     return ((System.Data.DataSet)(results[0]));
 }
 /// <remarks/>
 public void GetCarsAsync(Agency agency, string city, string state, object userState) {
     if ((this.GetCarsOperationCompleted == null)) {
         this.GetCarsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetCarsOperationCompleted);
     }
     this.InvokeAsync("GetCars", new object[] {
                 agency,
                 city,
                 state}, this.GetCarsOperationCompleted, userState);
 }
 /// <remarks/>
 public void GetCarsAsync(Agency agency, string city, string state) {
     this.GetCarsAsync(agency, city, state, null);
 }