예제 #1
0
        // Permet de charger la liste des Patients
        async private void chargerListe(string criteria)
        {
            Task <string> getStringTask = Claude.getPatients(criteria);
            string        responseSOAP  = await getStringTask;

            XElement xml = XElement.Parse(responseSOAP);

            if (xml.Descendants("Success").FirstOrDefault().Value == "true")
            {
                string   data    = xml.Descendants("Data").FirstOrDefault().Value;
                XElement xmlData = XElement.Parse(data);
                var      query   = from item in xmlData.Descendants("PAT_Patient")
                                   select new Patient
                {
                    id        = item.Element("id").Value,
                    nom       = item.Element("Nom").Value,
                    prenom    = item.Element("Prenom").Value,
                    dateNaiss = item.Element("DateNaiss").Value,
                    sexe      = Convert.ToInt16(item.Element("Sexe").Value),
                    CP        = item.Element("CodePostal").Value,
                    adresse   = item.Element("Adresse").Value,
                    ville     = item.Element("Ville").Value,
                    telFixe   = item.Element("TelFixe").Value,
                    portable  = item.Element("TelMobile").Value,
                    email     = item.Element("Email").Value,
                };
                //await DisplayAlert("Reponse SOAP", responseSOAP, "ok");

                this.laListe.ItemsSource = query;
            }
        }
예제 #2
0
        async private void btnLogin_Clicked(object sender, EventArgs e)
        {
            string login    = this.entryLogin.Text;
            string password = this.entryPassword.Text;

            Task <string> getStringTask = Claude.userLogin(login, password);
            string        responseSOAP  = await getStringTask;

            if (login == "house" && password == "aaaaaa")
            {
                await Navigation.PopModalAsync(true);
            }
            else
            {
                await DisplayAlert("Réponse SOAP", "Mauvais identifiant et/ou mot de passe \n Veuillez réessayer", "OK");
            }
        }
예제 #3
0
        async private void chargerDossier(string id)
        {
            Task <string> getDossier      = Claude.getDossierPatient(id);
            string        responseDossier = await getDossier;

            XElement xml = XElement.Parse(responseDossier);

            if (xml.Descendants("Success").FirstOrDefault().Value == "true")
            {
                string   data    = xml.Descendants("Data").FirstOrDefault().Value;
                XElement xmlData = XElement.Parse(data);
                //await DisplayAlert("Response Dossier", responseDossier, "OK");
                //var query = from item in xmlData.Descendants("PAT_Atcd")
                //            select new Patient
                //            {
                //                antePerso = item.Element("Libelle").Value,
                //            };
            }
        }
예제 #4
0
        async private void chargerListeRDV(string date)
        {
            Task <string> getStringTask = Claude.getRDV(date);
            string        responseSOAP  = await getStringTask;

            XElement xml = XElement.Parse(responseSOAP);

            if (xml.Descendants("Success").FirstOrDefault().Value == "true")
            {
                string   data    = xml.Descendants("Data").FirstOrDefault().Value;
                XElement xmlData = XElement.Parse(data);
                var      query   = from item in xmlData.Descendants("AGD_Rdv")
                                   select new RDV
                {
                    libelle      = item.Element("Libelle").Value,
                    patient      = item.Element("PatientId").Value,
                    dateHeureRDV = item.Element("DateRendezVous").Value,
                };

                // await DisplayAlert("Alert RDV", responseSOAP, "OK");

                this.listRDV.ItemsSource = query;
            }
        }