public Historique() { InitializeComponent(); list = cons.Historique(); foreach (ConsultLabel p in list) { Expander expSuivi = new Expander { Header = "Médecin : " + p.Nomed + " " + p.Prenomed + "\nPatient : " + p.Nom + " " + p.Prenom + "\nLabel :" + p.Label + "\nDate de la consultation : " + p.Date.Day + "/" + p.Date.Month + "/" + p.Date.Year }; StackSuivi.Children.Add(expSuivi); consulta = cons.AcceeConsultationId(p.Id); expSuivi.Content = " " + consulta.Diagnostic + "\n " + consulta.Description; if (consulta.traitement != null) { expSuivi.Content = expSuivi.Content + "\n Traitement : "; foreach (Traite d in consulta.traitement) { expSuivi.Content = expSuivi.Content + "\n " + d.NomMed + " " + d.Dose + " " + d.Indication + "\n"; } } } }
public DossierMedical() { InitializeComponent(); list = patients.DossiersMedical(); if (list.Count() != 0) { foreach (Patients p in list) { if (Globals.NomPatient == p.Nom && Globals.PrenomPatient == p.Prenom) { TextBlock expSuivi = new TextBlock(); expSuivi.Text = " Nom : " + p.Nom + " Prénom : " + p.Prenom + "\n Date de naissance : " + p.Datenaiss + "\n Taille : " + p.Taille + " cm " + "\n Poids : " + p.Poids + " Kg " + "\n Sexe : " + p.Sexe + "\n Numéro de téléphone : 0" + p.Numtel + "\n Maladie : " + p.Maladie + "\n Groupage sanguin : " + p.Groupage + "\n Etat de santé actuel : " + p.EtatSante + "\n Adresse : " + p.Adresse; StackSuivi.Children.Add(expSuivi); } } } l = consultation.Suivie(Globals.NomPatient, Globals.PrenomPatient); if (l.Count() != 0) { foreach (ConsultLabel p in l) { Expander expSuivi = new Expander(); expSuivi.Header = " Titre de Consultation :" + p.Label + "\n Date de la consultation :" + p.Date.Day + "/" + p.Date.Month + "/" + p.Date.Year; Stack.Children.Add(expSuivi); consulta = consultation.AcceeConsultationId(p.Id); expSuivi.Content = " Diagnostic : " + consulta.Diagnostic + "\n Description :" + consulta.Description; if (consulta.traitement.Count() != 0) { expSuivi.Content = expSuivi.Content + "\n Traitement :"; foreach (Traite d in consulta.traitement) { expSuivi.Content = expSuivi.Content + "\n Nom du médicament : " + d.NomMed + " ,Dose préscrite : " + d.Dose + " ,Indication : " + d.Indication; } } } } }