private void WindowLinkingMed_Loaded(object sender, RoutedEventArgs e)
        {
            var listReciept = logicReceipt.Read(null);

            if (listReciept != null)
            {
                ComboBoxReceipt.ItemsSource = listReciept;
            }
            var listMedicine = logicMedicine.Read(null);

            if (listMedicine != null)
            {
                ComboBoxMed.ItemsSource = listMedicine;
            }
        }
        private void WindowLinkingSymptomatic_Loaded(object sender, RoutedEventArgs e)
        {
            var listReciept = logicReceipt.Read(null);

            if (listReciept != null)
            {
                ComboBoxReceipt.ItemsSource = listReciept;
            }
            var lisSymptomatic = logicSymptomatic.Read(new SymptomaticsBindingModel {
                DoctorId = doctorId
            });

            if (lisSymptomatic != null)
            {
                ComboBoxSymptomatic.ItemsSource = lisSymptomatic;
            }
        }
        private void WindowBindingReciept_Loaded(object sender, RoutedEventArgs e)
        {
            var listReceipt = logicReceipt.Read(null);

            if (logicReceipt != null)
            {
                ComboBoxReceipt.ItemsSource = listReceipt;
            }
            var listPurchase = logicPurchase.Read(new PurchaseBindingModel {
                ClientId = clientId
            });

            if (listPurchase != null)
            {
                ComboBoxPurchase.ItemsSource = listPurchase;
            }
        }
Beispiel #4
0
 private void LoadData()
 {
     try
     {
         var list = logic.Read(new ReceiptBindingModel {
             EmployeeId = id
         });
         if (list != null)
         {
             dataGrid.ItemsSource           = list;
             dataGrid.Columns[1].Visibility = Visibility.Hidden;
             dataGrid.Columns[4].Visibility = Visibility.Hidden;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Ошибка", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }
 private void LoadData()
 {
     try
     {
         var listMedicine = _mlogic.Read(null);
         if (listMedicine != null)
         {
             dataGridMedicine.ItemsSource = listMedicine;
         }
         var listReceipt = _rlogic.Read(null);
         if (listReceipt != null)
         {
             dataGridReceipt.ItemsSource = listReceipt;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Ошибка", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }