protected void UnloadData(AppointmentInfo app)
 {
     app.Patient         = CntAriCli.GetPatient(int.Parse(rdcPatient.SelectedValue), ctx);
     app.Diary           = CntAriCli.GetDiary(int.Parse(rdcDiary.SelectedValue), ctx);
     app.Professional    = CntAriCli.GetProfessional(int.Parse(rdcProfessional.SelectedValue), ctx);
     app.AppointmentType = CntAriCli.GetAppointmentType(int.Parse(rdcAppointmentType.SelectedValue), ctx);
     app.BeginDateTime   = (DateTime)rddtBeginDateTime.SelectedDate;
     app.EndDateTime     = (DateTime)rddtEndDateTime.SelectedDate;
     app.Duration        = int.Parse(txtDuration.Text);
     app.Status          = ddlStatus.SelectedValue;
     if (rddtArrival.SelectedDate != null)
     {
         app.Arrival = (DateTime)rddtArrival.SelectedDate;
     }
     else
     {
         app.Arrival = DateTime.Parse("01/01/0001 00:00:00");
     }
     app.Subject  = CntAriCli.GetAppointmentSubject(app);
     app.Comments = txtComments.Text;
 }