Beispiel #1
0
        private void btn_Save_Click(object sender, EventArgs e)
        {
            try
            {
                consultation consult = new consultation
                {
                    id_acte  = Convert.ToInt32(comboActe.SelectedValue),
                    id_rdv   = id_RDV,
                    id_user  = 1,
                    details  = txtDetail.Text,
                    payement = new payement
                    {
                        id_pay  = id_RDV,
                        avance  = double.Parse(txtMont_recu.Text),
                        montant = double.Parse(txtMont_paye.Text)
                    }
                };

                consultationDao.Add(consult);
                string toastID = "ce7b449f-6666-467e-a98c-12e0817abd0a";
                toastAdd.ShowNotification(toastID);
                Application.OpenForms["Consultation_Patient"].Activate();
                this.Close();
            }
            catch (Exception ex)
            {
                XtraMessageBox.Show(DevExpress.LookAndFeel.UserLookAndFeel.Default, ex.Message);
            }
        }
Beispiel #2
0
 public void Update(consultation consultation)
 {
     data.Update(consultation);
 }
Beispiel #3
0
 public void Add(consultation consultation)
 {
     data.Add(consultation);
 }