public void updateDataPointPatient(
     string idPassportUI,
     string fullNameUI,
     string birthdayUI,
     string statusUI,
     string originalIdPatientUI)
 {
     patientBus.updatePatient(
         idPassportUI,
         fullNameUI,
         birthdayUI,
         statusUI,
         originalIdPatientUI
         );
 }
Пример #2
0
        private void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            Patient p = new Patient();

            p.id      = Convert.ToInt32(txtPatientId.Text);
            p.name    = txtHoTen.Text;
            p.sex     = cboGioiTinh.SelectedIndex;
            p.yob     = Convert.ToInt32(txtNamSinh.Text);
            p.address = txtDiaChi.Text;

            PatientBUS patientBUS = new PatientBUS();

            try
            {
                int id = patientBUS.updatePatient(p);
                MessageBox.Show("Cap nhat benh nhan thanh cong");
                Close();
            }
            catch
            {
                MessageBox.Show("Cap nhat benh nhan that bai");
            }
        }