コード例 #1
0
        public ValidationMed SetToReviewed(ValidationMed validation)
        {
            ValidationMed validationToChange = validationMedicationRepository.GetObject(validation.Id);

            validationToChange.Reviewed = true;
            return(validationMedicationRepository.Update(validationToChange));
        }
コード例 #2
0
        public ValidationMed AddValidationMedication(ValidationMed medication)
        {
            ValidationMed fullValidation = medication;

            validationMedicationRepository.Create(medication);
            notificationService.MedicationValidatedNotification(fullValidation.Doctor);
            return(medication);
        }
コード例 #3
0
        private void Success_Click(object sender, RoutedEventArgs e)
        {
            if ((bool)Yes.IsChecked)
            {
                ModelHCI.MedicationData.meds.Add(Medications.SelectedRow);
                ModelHCI.MedicationData.medsToValidate.Remove(Medications.SelectedRow);

                ValidationMed validationMed = new ValidationMed();
                validationMed.Approved         = true;
                validationMed.DateOfValidation = DateTime.Today;
                validationMed.Medication       = Medications.SelectedRow.medication;
                validationMed.Reviewed         = false;
                validationMed.Doctor           = MainWindow.doctor;
                validationMed.SideNotes        = Napomene.Text;
                validationMedicationController.AddValidationMedication(validationMed);
            }
            MyEvents.OpenRecord.RaiseMyCustomEvent(this, new MyEvents.CloseAddArticle());
            NavigationService.Navigate(new Uri("/Pages/Medications.xaml", UriKind.Relative));
        }
 public bool DeleteValidationMedication(ValidationMed medication) => validationMedicationService.DeleteValidationMedication(medication);
 public ValidationMed UpdateValidationMedication(ValidationMed medication) => validationMedicationService.UpdateValidationMedication(medication);
 public ValidationMed AddValidationMedication(ValidationMed medication) => validationMedicationService.AddValidationMedication(medication);
 public ValidationMed SetToReviewed(ValidationMed validation) => validationMedicationService.SetToReviewed(validation);
コード例 #8
0
 public bool DeleteValidationMedication(ValidationMed medication) => validationMedicationRepository.Delete(medication);
コード例 #9
0
 public ValidationMed UpdateValidationMedication(ValidationMed medication) => validationMedicationRepository.Update(medication);