private void Save()
 {
     patientConsultation.requestDate   = DateTimePickerUtils.GetDateTime(dtpRequestDate);
     patientConsultation.executionDate = DateTimePickerUtils.GetDateTime(dtpExecutionDate);
     ucHandbooksInfo.Save();
     using (GmConnection conn = App.CreateConnection())
     {
         patientConsultation.Save(conn);
     }
 }
Exemplo n.º 2
0
        private void Save()
        {
            analysis.requestDate   = DateTimePickerUtils.GetDateTime(dtpRequestDate);
            analysis.executionDate = DateTimePickerUtils.GetDateTime(dtpExecutionDate);
            ucHandbooksInfo.Save();

/*			using (GmConnection conn = App.CreateConnection())
 *                      {
 *                              analysis.Save(conn);
 *                      }*/
        }
 private void Save()
 {
     using (WaitCursor wc = new WaitCursor())
     {
         patient.dischargeDate = DateTimePickerUtils.GetDateTime(dtpDischargeDate);
         using (GmConnection conn = App.CreateConnection())
         {
             ucHandbooksInfo.Save();
             patient.SaveDischargeData(conn);
         }
     }
 }
 public bool Save()
 {
     if (!loaded)
     {
         return(false);
     }
     patientIdentification.birthday   = DateTimePickerUtils.GetDateTime(dtpBirthday);
     patientIdentification.gender     = (GenderId)cbGender.SelectedValue;
     patientIdentification.middleName = StringUtils.TrimAndCap(tbMiddleName.Text);
     patientIdentification.name       = StringUtils.TrimAndCap(tbName.Text);
     patientIdentification.surname    = StringUtils.TrimAndCap(tbSurname.Text);
     ucHandbooksInfo.Save();
     return(ReflectionUtils.HasData(patientIdentification));
 }