예제 #1
0
 private void personne1_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (radioButton1.Checked == true)
     {
         a.IdPersonne = pro.IdCombo("ComboPersonne", personne1.Text, "Noms");
         d.RetournerPhotoSQl("Profil", "ComboPersonne", "Noms", personne1.Text, profil);
     }
 }
예제 #2
0
 private void patient_SelectedIndexChanged(object sender, EventArgs e)
 {
     ex.IdPatient  = pro.IdCombo("Liste_patient", patient.Text, "Noms");
     symptome.Text = pro.RetournerValueur("select Symptome  as Valeur from liste_consultation where Patient ='" + patient.Text + "'");
     d.RetournerPhotoSQl("Profil", "Liste_Patient", "Noms", patient.Text, profil);
     ex.IdConsultation = pro.IdCombo__("select Id from liste_consultation where  id is not null and symptome ='" + symptome.Text + "' and patient='" + patient.Text + "'");
     d.RetournerPhotoSQl("Profil", "Liste_patient", "Id", ex.IdPatient, profil);
 }
예제 #3
0
        private void Form1_Load(object sender, EventArgs e)
        {
            FrmDashbord p = new FrmDashbord();

            panelMouve.Height = picturedash.Height;
            panelMouve.Top    = picturedash.Top;
            fx.openChildForm(p, afficher);
            fx.Picture_Rond(profil);
            fx.Picture_Rond(panel3);
            conect.Text = fonction.Text;
            d.RetournerPhotoSQl("Profil", "Liste_Agent", "Id", id.Text, profil);
        }
예제 #4
0
 private void patient_SelectedIndexChanged(object sender, EventArgs e)
 {
     p.IdPatient = pro.IdCombo("Liste_Patient", patient.Text, "Noms");
     apayer.Text = pro.RetournerValueur("select Apayer  as Valeur from Liste_Paiement where etat=0 and Patient ='" + patient.Text + "'");
     d.RetournerPhotoSQl("Profil", "Liste_patient", "Id", p.IdPatient, profil);
     montant.Text = "00";
 }
예제 #5
0
 private void Table_Click(object sender, EventArgs e)
 {
     try
     {
         btnSave.Text     = "Modifier";
         save.Visible     = false;
         update.Visible   = true;
         id               = Table.SelectedCells[0].Value.ToString();
         patient.Text     = Table.SelectedCells[3].Value.ToString();
         designation.Text = Table.SelectedCells[4].Value.ToString();
         txtQte.Text      = Table.SelectedCells[5].Value.ToString();
         d.RetournerPhotoSQl("Profil", "Liste_Patient", "Noms", patient.Text, profil);
         txtPrix.Text = pro.RetournerValueur("select PrixUnit  as Valeur from Appro_Medicament where Medicament ='" + designation.Text + "'");
     }
     catch (Exception ex)
     { MessageBox.Show(ex.Message); }
 }
예제 #6
0
 private void Table_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         btnSave.Text            = "Modifier";
         save.Visible            = false;
         update.Visible          = true;
         id                      = Table.SelectedCells[0].Value.ToString();
         txtnom.Text             = Table.SelectedCells[1].Value.ToString();
         txtpostnom.Text         = Table.SelectedCells[2].Value.ToString();
         txtPrenom.Text          = Table.SelectedCells[3].Value.ToString();
         txtsexe.Text            = Table.SelectedCells[4].Value.ToString();
         iTalk_RichTextBox1.Text = Table.SelectedCells[5].Value.ToString();
         dateTimePicker3.Text    = Table.SelectedCells[6].Value.ToString();
         Phone.Text              = Table.SelectedCells[7].Value.ToString();
         adresse.Text            = Table.SelectedCells[8].Value.ToString();
         d.RetournerPhotoSQl("Profil", "Personne", "Id", id, profil);
     }
     catch (Exception ex)
     { MessageBox.Show(ex.Message); }
 }
예제 #7
0
 private void patient_SelectedIndexChanged(object sender, EventArgs e)
 {
     c.IdPatient = pro.IdCombo("liste_Patient", patient.Text, "Noms");
     d.RetournerPhotoSQl("Profil", "Liste_Patient", "Id", c.IdPatient, profil);
 }