Exemple #1
0
 public void AddSelectedNames()
 {
     fk = new ObservableCollection <Kundenbesuche_TeilnehmerSI>(db.Kundenbesuche_TeilnehmerSI.Where(k => k.id_besuch == CurrentBesuch.id));
     if (fk.Count > 0)
     {
         SelectedNames.Clear();
         foreach (var item in fk)
         {
             SelectedNames.Add(item.person);
         }
         OnPropertyChanged("SelectedNames");
     }
 }
Exemple #2
0
 public void AddSelectedNames()
 {
     fk = new ObservableCollection <Personen_Kategorien>(db.Personen_Kategorien.Where(k => k.id_Person == CurrentPerson.id));
     if (fk.Count > 0)
     {
         SelectedNames.Clear();
         foreach (var item in fk)
         {
             SelectedNames.Add(item.firma);
         }
         OnPropertyChanged("SelectedNames");
     }
 }
 public void AddSelectedNames()
 {
     fk = new ObservableCollection <SI_SelectedEvents>(db.SI_SelectedEvents);
     if (fk.Count > 0)
     {
         SelectedNames.Clear();
         foreach (var item in fk)
         {
             SelectedNames.Add(item.SI_Events);
         }
         OnPropertyChanged("SelectedNames");
     }
 }
Exemple #4
0
 public void AddSelectedNames()
 {
     fk = new ObservableCollection <SI_SelectedTypFirmaEigenschaften>(db.SI_SelectedTypFirmaEigenschaften);
     if (fk.Count > 0)
     {
         SelectedNames.Clear();
         foreach (var item in fk)
         {
             SelectedNames.Add(item.AuswahlEintraege);
         }
         NotifyOfPropertyChange(() => SelectedNames);
     }
 }
 public void AddSelectedNames()
 {
     fk = new ObservableCollection <Kundenbesuche_VertreteneFirmen>(db.Kundenbesuche_VertreteneFirmen.Where(k => k.id_besuch == CurrentBesuch.id));
     if (fk.Count > 0)
     {
         SelectedNames.Clear();
         foreach (var item in fk)
         {
             SelectedNames.Add(item.firma);
         }
         OnPropertyChanged("SelectedNames");
     }
 }
Exemple #6
0
 public void AddSelectedNames()
 {
     fk = new ObservableCollection <Firmen_Kategorien>(db.Firmen_Kategorien.Where(k => k.id_Firma == CurrentFirma.id));
     if (fk.Count > 0)
     {
         SelectedNames.Clear();
         foreach (var item in fk)
         {
             SelectedNames.Add(item.Kategorie);
         }
         NotifyOfPropertyChange(() => SelectedNames);
     }
 }
 public void AddSelectedNames()
 {
     fk = new ObservableCollection <Firma_Eigenschaften>(db.Firma_Eigenschaften.Where(k => k.id_Firma == CurrentFirma.id));
     if (fk.Count > 0)
     {
         SelectedNames.Clear();
         foreach (var item in fk)
         {
             SelectedNames.Add(item.AuswahlEintraege);
         }
         NotifyOfPropertyChange(() => SelectedNames);
     }
 }
Exemple #8
0
 public void AddSelectedNames()
 {
     fk = new ObservableCollection <SI_BelegartenTextbausteine>(db.SI_BelegartenTextbausteine.Where(n => n.id_Textbaustein == textbaustein.id));
     if (fk.Count > 0)
     {
         SelectedNames.Clear();
         foreach (var item in fk)
         {
             item.StammBelegarten.Mandantory = item.Mandantory == 1 ? true : false;
             SelectedNames.Add(item.StammBelegarten);
         }
         OnPropertyChanged("SelectedNames");
     }
 }
 public void AddSelectedNames()
 {
     if (CurrentTermin != null)
     {
         fk = new ObservableCollection <Termine_TeilnehmerSI>(db.Termine_TeilnehmerSI.Where(k => k.id_Termin == CurrentTermin.id));
         if (fk.Count > 0)
         {
             SelectedNames.Clear();
             foreach (var item in fk)
             {
                 SelectedNames.Add(item.person);
             }
             NotifyOfPropertyChange(() => SelectedNames);
         }
     }
 }
Exemple #10
0
        public void AddSelectedNames()
        {
            //fk = new ObservableCollection<SI_BelegartenTextbausteine>(db.SI_BelegartenTextbausteine.Where(n => n.id_Belegart == BelegeViewModel.Belegart && n.Mandantory == 1 && n.id_Sprache == BelegeViewModel.id_Sprache).OrderBy(n=>n.index));

            if (BelegeViewModel.SelectedBelegarten != null)
            {
                fk = new ObservableCollection <SI_BelegartenTextbausteine>(db.SI_BelegartenTextbausteine.Where(n => n.id_Belegart == BelegeViewModel.SelectedBelegarten.id && n.Mandantory == 1 && n.id_Sprache == BelegeViewModel.id_Sprache).OrderBy(n => n.index));

                if (fk.Count > 0)
                {
                    SelectedNames.Clear();
                    foreach (var item in fk.ToList())
                    {
                        SelectedNames.Add(item);
                    }
                    OnPropertyChanged("SelectedNames");
                }
            }
        }
Exemple #11
0
        public void AddSelectedNames(bool CutAvailableNames)
        {
            if (CurrentBesuch != null)
            {
                fk = new ObservableCollection <Kundenbesuch_TeilnehmerExtern>(db.Kundenbesuche_TeilnehmerExtern.Where(k => k.id_besuch == CurrentBesuch.id));
                if (fk.Count > 0)
                {
                    SelectedNames.Clear();
                    foreach (var item in fk)
                    {
                        SelectedNames.Add(item.Firmen_Personen);
                    }
                    NotifyOfPropertyChange(() => SelectedNames);
                }

                if (CutAvailableNames)
                {
                    AvailableNames = SelectedNames;
                }
            }
        }