Ejemplo n.º 1
0
        private void onClickedButtin(object sender, EventArgs e)
        {
            ServiceReference2.AMSIntegrationServiceClient proxy = new ServiceReference2.AMSIntegrationServiceClient(
                ServiceReference2.AMSIntegrationServiceClient.EndpointConfiguration.BasicHttpBinding_IAMSIntegrationService,
                "http://57.31.17.135/SITAAMSIntegrationService/v1/SITAAMSIntegrationService/");

            FlightView.ItemsSource     = oflight;
            proxy.GetFlightsCompleted += Proxy_GetFlightsCompleted;
            proxy.GetFlightsAsync(
                DateTime.Now.AddHours(-12),
                DateTime.Now.AddHours(6),
                "TSE",
                ServiceReference2.AirportIdentifierType.IATACode);
        }
Ejemplo n.º 2
0
        private void flightSaktaubyValues(string propertyNameFieldtxt, string valueFieldtxt)
        {
            var todoItem = (flight)BindingContext;

            ServiceReference2.AMSIntegrationServiceClient proxy = new ServiceReference2.AMSIntegrationServiceClient(
                ServiceReference2.AMSIntegrationServiceClient.EndpointConfiguration.BasicHttpBinding_IAMSIntegrationService,
                "http://57.31.17.135/SITAAMSIntegrationService/v1/SITAAMSIntegrationService/");

            FlightId idFl = new FlightId();

            idFl.flightNumberField  = todoItem.FlightNumber;
            idFl.scheduledDateField = todoItem.FlightSTA;
            idFl.flightKindField    = FlightKind.Arrival;

            LookupCode asq = new LookupCode();

            asq.codeContextField = CodeContext.IATA;
            asq.valueField       = todoItem.CIata;


            ObservableCollection <LookupCode> airdEs = new ObservableCollection <LookupCode>();

            airdEs.Add(asq);
            idFl.airlineDesignatorField = airdEs;

            LookupCode qsa = new LookupCode();

            qsa.codeContextField = CodeContext.IATA;
            qsa.valueField       = "TSE";

            ObservableCollection <LookupCode> airportLo = new ObservableCollection <LookupCode>();

            airportLo.Add(qsa);
            idFl.airportCodeField = airportLo;

            PropertyValue val1 = new PropertyValue();

            val1.valueField        = valueFieldtxt;
            val1.propertyNameField = propertyNameFieldtxt;

            ObservableCollection <PropertyValue> values = new ObservableCollection <PropertyValue>();

            values.Add(val1);

            proxy.UpdateFlightCompleted += Proxy_UpdateFlightCompleted;
            proxy.UpdateFlightAsync(idFl, values);
        }
Ejemplo n.º 3
0
 public SoapService()
 {
     todoService = new ServiceReference2.AMSIntegrationServiceClient(
         ServiceReference2.AMSIntegrationServiceClient.EndpointConfiguration.BasicHttpBinding_IAMSIntegrationService,
         "DD");
 }
Ejemplo n.º 4
0
 public TodoFlightManager(ServiceReference2.AMSIntegrationServiceClient service)
 {
     soapService = service;
 }