private void Ajouter_RDV_Load(object sender, EventArgs e) { var pat = patientDao.Find(iD_patient); lblNom.Text = pat.nom + " " + pat.prenom; dateRDV.DateTime = DateTime.Now; getNbRDV(); }
public void GetRDV() { gridHistorique.DataSource = rdvDao.rendez_vouss .Where(r => r.id_patient == iD_patient) .Select(r => new { ID = r.id_rdv, Date = r.date_rdv, Periode = r.seance, Passe = r.traiter == 0 ? "Non" :"Oui" }).OrderByDescending(r => r.Date).ToList(); var pat = patientDao.Find(iD_patient); lblNom.Text = pat.nom + " " + pat.prenom; }
private void getConsultation() { gridSalleTr.DataSource = consultationDao.consultations.Where(c => c.rendez_vous.id_patient == id_pat).ToList().Select(p => new { ID = p.id_conslt, Date = p.rendez_vous.date_rdv, Acte = p.acte.titre_acte, Details = p.details, Total_Payer = p.payement.montant + " DH", Total_recu = p.payement.avance + " DH", Reste = p.payement.montant - p.payement.avance + " DH" }).OrderByDescending(r => r.Date).ToList(); var pat = patientDao.Find(Convert.ToInt32(id_pat)); lblNom.Text = pat.nom; lblPrenom.Text = pat.prenom; lblTel.Text = pat.tel; lblMutuel.Text = pat.mutuel; lbl_adress.Text = pat.adresse; lbl_observ.Text = pat.observation; }