public ApoloMainWindow(MungoSystem mungoSystem, People sessionUser) { InitializeComponent(); smc = new StMungoServiceClient(); this.mungoSystem = mungoSystem; this.sessionUser = sessionUser; }
public RecepciosBetegModositoWindow(RecepciosViewModel recepciosViewModel, Betegek kivalasztottBeteg) { InitializeComponent(); this.recepciosViewModel = recepciosViewModel; mungoSystem = recepciosViewModel.MungoSystem; mungoSystem.People.Load(); mungoSystem.Betegek.Load(); if (kivalasztottBeteg != null) { var beteg = from b in mungoSystem.Betegek join p in mungoSystem.People on b.PeopleID equals p.PeopleID where p.PeopleID == kivalasztottBeteg.PeopleID && b.BetegID == kivalasztottBeteg.BetegID select new BetegAdatai() { PeopleID = p.PeopleID, UserName = p.UserName, Password = p.Password, Nev = p.Name, Cim = p.Address, Nem = p.Gender, Email = p.Email, Phone = p.Phone, TAJ = b.TAJ, BetegID = b.BetegID }; recepciosViewModel.KivalasztottBeteg = beteg.First(); this.DataContext = recepciosViewModel.KivalasztottBeteg; kivbet = mungoSystem.Betegek.Local.Where(x => x.BetegID == kivalasztottBeteg.BetegID).First(); kivpeo = mungoSystem.People.Local.Where(x => x.PeopleID == kivalasztottBeteg.PeopleID).First(); } else { BetegAdatai beteg = new BetegAdatai(); recepciosViewModel.KivalasztottBeteg = beteg; this.DataContext = recepciosViewModel.KivalasztottBeteg; } }
public RecepciosIdopontKezeloWindow(RecepciosViewModel recepciosViewModel) { InitializeComponent(); this.recepciosViewModel = recepciosViewModel; mungoSystem = recepciosViewModel.MungoSystem; }
public RecepciosIdopontSzerkesztoWindow(RecepciosViewModel recepciosViewModel, Idopontok idopont ) { InitializeComponent(); this.recepciosViewModel = recepciosViewModel; mungoSystem = recepciosViewModel.MungoSystem; this.idopont = idopont; var orvosnev = mungoSystem.People.Where(x => x.PeopleID == idopont.OrvosID).Select(x => x.Name).First(); orvosLbl.Content = orvosnev; datumLbl.Content = idopont.Datum.Value.ToShortDateString() +" " + idopont.Datum.Value.ToShortTimeString(); this.DataContext = recepciosViewModel; mungoSystem.Betegek.Load(); var betegek = from b in mungoSystem.Betegek join p in mungoSystem.People on b.PeopleID equals p.PeopleID where b.Deleted == 0 && p.Deleted==0 select new { TAJ = b.TAJ, Nev = p.Name, BetegID = b.BetegID, PeopleID = b.PeopleID }; recepciosViewModel.Betegek.Clear(); foreach (var b in betegek) { recepciosViewModel.Betegek.Add(new BetegAdatai { TAJ = b.TAJ, Nev = b.Nev, BetegID = b.BetegID, PeopleID = (int)b.PeopleID }); } }
public EszkozAddModWindow(KorhaziEszkoz newEszkoz,MungoSystem ms,bool Igeny,People sessionUser) { InitializeComponent(); this.DataContext = newEszkoz; igeny = Igeny; originalMegnevezes = newEszkoz.Megnevezes; ms.KorhaziEszkozok_Fej.Load(); if (sessionUser.Group!=4) { checkBox.IsEnabled = false; } if (newEszkoz.Statusz==true) { comboCsoport.Visibility = Visibility.Hidden; labelCombo.Visibility = Visibility.Hidden; } else { ObservableCollection<KorhaziEszkozok_Fej> comboSource = new ObservableCollection<KorhaziEszkozok_Fej>( ms.KorhaziEszkozok_Fej.Where (x => x.Deleted == 0)); comboCsoport.ItemsSource = comboSource; comboCsoport.DisplayMemberPath = "Megnevezes"; comboCsoport.SelectedValuePath = "Eszkoz_FejID"; } }
public RecepciosErtesitesWindow(RecepciosViewModel recepciosViewModel) { InitializeComponent(); this.recepciosViewModel = recepciosViewModel; mungoSystem = recepciosViewModel.MungoSystem; }
public AdminWindow(MungoSystem mungoSystem) { InitializeComponent(); this.mungoSystem = mungoSystem; this.DataContext = this.mungoSystem; comboBox.ItemsSource = new List<string> { "People" }; }
public RecepciosBetegRegisztracioMainWindow(RecepciosViewModel recepciosViewModel) { InitializeComponent(); this.recepciosViewModel = recepciosViewModel; mungoSystem = recepciosViewModel.MungoSystem; this.DataContext = recepciosViewModel; }
public RecepciosIdopontKezeloWindow(RecepciosViewModel recepciosViewModel) { InitializeComponent(); this.recepciosViewModel = recepciosViewModel; mungoSystem = recepciosViewModel.MungoSystem; }
public AdminWindow(MungoSystem mungoSystem) { InitializeComponent(); this.mungoSystem = mungoSystem; this.DataContext = this.mungoSystem; comboBox.ItemsSource = new List<string> { "People", "Betegek", "Időpontok", "Kórtörténet Fej", "Kórtörténet Tétel", "Gyógyszer" }; }
public EszkozAddModWindow(KorhaziEszkoz newEszkoz, MungoSystem ms, bool Igeny, People sessionUser) { InitializeComponent(); this.DataContext = newEszkoz; igeny = Igeny; originalMegnevezes = newEszkoz.Megnevezes; ms.KorhaziEszkozok_Fej.Load(); if (sessionUser.Group != 4) { checkBox.IsEnabled = false; } if (newEszkoz.Statusz == true) { comboCsoport.Visibility = Visibility.Hidden; labelCombo.Visibility = Visibility.Hidden; } else { ObservableCollection <KorhaziEszkozok_Fej> comboSource = new ObservableCollection <KorhaziEszkozok_Fej>( ms.KorhaziEszkozok_Fej.Where (x => x.Deleted == 0)); comboCsoport.ItemsSource = comboSource; comboCsoport.DisplayMemberPath = "Megnevezes"; comboCsoport.SelectedValuePath = "Eszkoz_FejID"; } }
public ApoloMainWindow(MungoSystem mungoSystem,People sessionUser) { InitializeComponent(); smc = new StMungoServiceClient(); this.mungoSystem = mungoSystem; this.sessionUser = sessionUser; }
public RecepciosIdopontSzerkesztoWindow(RecepciosViewModel recepciosViewModel, Idopontok idopont) { InitializeComponent(); this.recepciosViewModel = recepciosViewModel; mungoSystem = recepciosViewModel.MungoSystem; this.idopont = idopont; var orvosnev = mungoSystem.People.Where(x => x.PeopleID == idopont.OrvosID).Select(x => x.Name).First(); orvosLbl.Content = orvosnev; datumLbl.Content = idopont.Datum.Value.ToShortDateString() + " " + idopont.Datum.Value.ToShortTimeString(); this.DataContext = recepciosViewModel; mungoSystem.Betegek.Load(); var betegek = from b in mungoSystem.Betegek join p in mungoSystem.People on b.PeopleID equals p.PeopleID where b.Deleted == 0 && p.Deleted == 0 select new { TAJ = b.TAJ, Nev = p.Name, BetegID = b.BetegID, PeopleID = b.PeopleID }; recepciosViewModel.Betegek.Clear(); foreach (var b in betegek) { recepciosViewModel.Betegek.Add(new BetegAdatai { TAJ = b.TAJ, Nev = b.Nev, BetegID = b.BetegID, PeopleID = (int)b.PeopleID }); } }
public RecepciosErtesitesWindow(RecepciosViewModel recepciosViewModel) { InitializeComponent(); this.recepciosViewModel = recepciosViewModel; mungoSystem = recepciosViewModel.MungoSystem; }
public AdminWindow(MungoSystem mungoSystem) { smc = new StMungoServiceClient(); InitializeComponent(); this.mungoSystem = mungoSystem; this.DataContext = this.mungoSystem; comboBox.ItemsSource = new List<string> { "People", "LookUps", "Betegek", "Kórtörténet Fej", "Kórtörténet Tétel" }; }
public AdminWindow(MungoSystem mungoSystem) { InitializeComponent(); this.mungoSystem = mungoSystem; comboBox.ItemsSource = new List <string> { "People" }; }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { int peopleID = (int)value; MungoSystem ms = new MungoSystem(); ms.ApoloMuszak.Load(); return (ms.ApoloMuszak.Where(am => am.EndDate == null && am.PeopleID == peopleID && am.Deleted == 0).Count() > 0); }
public OrvosAsszisztensWindow(MungoSystem ms, People orvos) { ovm = OrvosViewModel.Get(); ovm.Orvos = orvos; ovm.MungoSystemInitial(ms); InitializeComponent(); this.DataContext = ovm; }
public RecepciosBetegRegisztracioMainWindow(RecepciosViewModel recepciosViewModel) { InitializeComponent(); this.recepciosViewModel = recepciosViewModel; mungoSystem = recepciosViewModel.MungoSystem; this.DataContext = recepciosViewModel; }
public OrvosAsszisztensWindow(MungoSystem ms, People orvos) { ovm = OrvosViewModel.Get(); ovm.Orvos = orvos; ovm.MungoSystemInitial(ms); InitializeComponent(); this.DataContext = ovm; }
private void button_Click(object sender, RoutedEventArgs e) { string username = userName.Text; string pw = PWBox.Password; BetegAdat ba = smc.getBetegAdatok(36); MungoSystem mungoSystem = smc.mungoSystem(); if (mungoSystem.People .Where(ppl => ppl.Password == pw && ppl.UserName == username && ppl.Deleted == 0) .Count() > 0) { People sessionUser = mungoSystem.People .Where(ppl => ppl.Password == pw && ppl.UserName == username && ppl.Deleted == 0) .First(); smc.People_getLoad(); //mungoSystem.People.Load(); Window showWindow = new Window(); this.Hide(); switch (sessionUser.Group) { case 1: //Beteg break; case 2: showWindow = new OrvosAsszisztensWindow(sessionUser, smc); break; case 3: showWindow = new ApoloMainWindow(smc.mungoSystem(), sessionUser); showWindow.DataContext = sessionUser; break; case 4: showWindow = new GazdAlkMainWindow(sessionUser, smc); break; case 5: showWindow = new RecepciosMainWindow(sessionUser, smc); //Recepciós break; case 6: showWindow = new AdminWindow(smc.mungoSystem()); break; } showWindow.ShowDialog(); St_Mungo.App.Current.Shutdown(); } else { MessageBox.Show("Hibás felhasználónév vagy jelszó!"); } }
public ApoloLazlapWindow(Lazlap lazlap,People sessionUser,MungoSystem ms) { InitializeComponent(); this.lazlap = lazlap; this.sessionUser = sessionUser; this.ms = ms; this.DataContext = lazlap; this.originalMegjegyzes = lazlap.ApoloMegjegyzes; }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { MungoSystem ms = new MungoSystem(); ms.People.Load(); int orvosID = (int)value; People ppl = ms.People.Where(p => p.PeopleID == orvosID && p.Deleted == 0).Single(); string Nev = ppl.Name; return Nev; }
public AdminWindow(MungoSystem mungoSystem) { InitializeComponent(); this.mungoSystem = mungoSystem; this.DataContext = this.mungoSystem; comboBox.ItemsSource = new List <string> { "People", "Betegek", "Időpontok", "Kórtörténet Fej", "Kórtörténet Tétel", "Gyógyszer" }; }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { int peopleID = (int)value; MungoSystem ms = new MungoSystem(); ms.ApoloMuszak.Load(); return(ms.ApoloMuszak.Where(am => am.EndDate == null && am.PeopleID == peopleID && am.Deleted == 0).Count() > 0); }
public ApoloLazlapWindow(Lazlap lazlap, People sessionUser, MungoSystem ms) { InitializeComponent(); this.lazlap = lazlap; this.sessionUser = sessionUser; this.ms = ms; this.DataContext = lazlap; this.originalMegjegyzes = lazlap.ApoloMegjegyzes; }
public RecepciosViewModel(MungoSystem mungoSystem, People sessionUser) { this.mungoSystem = mungoSystem; this.sessionUser = sessionUser; orvosok = new ObservableCollection <People>(); idopontok = new ObservableCollection <Idopontok>(); betegek = new ObservableCollection <BetegTajIDNev>(); idopontAdatok = new ObservableCollection <IdopontIDBeteg>(); }
public AdminWindow(MungoSystem mungoSystem) { smc = new StMungoServiceClient(); InitializeComponent(); this.mungoSystem = mungoSystem; this.DataContext = this.mungoSystem; comboBox.ItemsSource = new List <string> { "People", "LookUps", "Betegek", "Kórtörténet Fej", "Kórtörténet Tétel" }; }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { MungoSystem ms = new MungoSystem(); ms.People.Load(); int orvosID = (int)value; People ppl = ms.People.Where(p => p.PeopleID == orvosID && p.Deleted == 0).Single(); string Nev = ppl.Name; return(Nev); }
//------------------------------------------------------------------------------------ public void MungoSystemInitial(MungoSystem ms) { this.ms = ms; this.betegTabla = new ObservableCollection <Betegek>(ms.Betegek); this.kortortenetFej = new ObservableCollection <Kortortenet_fej>(ms.Kortortenet_fej); this.kortortenetTetel = new ObservableCollection <Kortortenet_tetel>(ms.Kortortenet_tetel); this.betegek = new ObservableCollection <People>(ms.People.Local.Where(ppl => ppl.Group == 4)); pID = ms.People.Max(p => p.PeopleID); bID = ms.Betegek.Max(p => p.BetegID); kfID = ms.Kortortenet_fej.Max(p => p.KortortenetFejID); ktID = ms.Kortortenet_tetel.Max(p => p.KortortenetTetelID); OnPropChanged("betegek"); }
public IgenyMainWindow(People sessionUser, MungoSystem ms) { InitializeComponent(); this.sessionUser = sessionUser; DataContext = sessionUser; this.ms = ms; ms.KorhaziEszkozok_Fej.Load(); ms.KorhaziEszkoz.Load(); igenyCsoport = new ObservableCollection <KorhaziEszkozok_Fej>( ms.KorhaziEszkozok_Fej.Where(x => x.Deleted == 0)); listBoxEszkozGroupIgeny.ItemsSource = igenyCsoport; }
public IgenyMainWindow(People sessionUser,MungoSystem ms) { InitializeComponent(); this.sessionUser = sessionUser; DataContext = sessionUser; this.ms = ms; ms.KorhaziEszkozok_Fej.Load(); ms.KorhaziEszkoz.Load(); igenyCsoport = new ObservableCollection<KorhaziEszkozok_Fej>( ms.KorhaziEszkozok_Fej.Where(x=>x.Deleted==0)); listBoxEszkozGroupIgeny.ItemsSource = igenyCsoport; }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { int peopleID = (int)value; StMungoServiceClient smc = new StMungoServiceClient(); MungoSystem ms = new MungoSystem(); smc.ApoloMuszak_getLoad(); if (ms.ApoloMuszak.Where(am => am.EndDate == null && am.PeopleID == peopleID && am.Deleted == 0).Count() > 0) { return("Műszak leadása"); } else { return("Műszak felvétele"); } }
//------------------------------------------------------------------------------------ public void MungoSystemInitial(MungoSystem ms) { this.ms = ms; this.betegTabla = new ObservableCollection <Betegek>(ms.Betegek); this.kortortenetFej = new ObservableCollection <Kortortenet_fej>(ms.Kortortenet_fej); this.kortortenetTetel = new ObservableCollection <Kortortenet_tetel>(ms.Kortortenet_tetel); this.betegek = new ObservableCollection <People>(ms.People.Local.Where(ppl => ppl.Deleted == 0 && ppl.Group == 1)); this.lazlapok = new ObservableCollection <Lazlap>(ms.Lazlap); this.gyogyszerek = new ObservableCollection <Gyogyszer>(ms.Gyogyszer); try { pID = ms.People.Max(p => p.PeopleID); bID = ms.Betegek.Max(p => p.BetegID); OnPropChanged("betegek"); kfID = ms.Kortortenet_fej.Max(p => p.KortortenetFejID); ktID = ms.Kortortenet_tetel.Max(p => p.KortortenetTetelID); } catch { } }
public GazdAlkMainWindow(MungoSystem mungoSystem,People sessionUser) { InitializeComponent(); this.sessionUser = sessionUser; this.mungoSystem = mungoSystem; mungoSystem.Gyogyszer.Load(); mungoSystem.KiadottGyogyszer.Load(); mungoSystem.KorhaziEszkoz.Load(); mungoSystem.KorhaziEszkozok_Fej.Load(); mungoSystem.Kortortenet_fej.Load(); mungoSystem.Kortortenet_tetel.Load(); mungoSystem.Lazlap.Load(); this.DataContext = sessionUser; refreshTask = new Task(Refresh); refreshTask.Start(); gyogyszerek = new ObservableCollection<Gyogyszer>(mungoSystem.Gyogyszer.Where(gy => gy.Deleted==0)); eszkozok_fej = new ObservableCollection<KorhaziEszkozok_Fej>(mungoSystem.KorhaziEszkozok_Fej.Where(kef=>kef.Deleted==0)); }
public GazdAlkMainWindow(MungoSystem mungoSystem, People sessionUser) { InitializeComponent(); this.sessionUser = sessionUser; this.mungoSystem = mungoSystem; mungoSystem.Gyogyszer.Load(); mungoSystem.KiadottGyogyszer.Load(); mungoSystem.KorhaziEszkoz.Load(); mungoSystem.KorhaziEszkozok_Fej.Load(); mungoSystem.Kortortenet_fej.Load(); mungoSystem.Kortortenet_tetel.Load(); mungoSystem.Lazlap.Load(); this.DataContext = sessionUser; refreshTask = new Task(Refresh); refreshTask.Start(); gyogyszerek = new ObservableCollection <Gyogyszer>(mungoSystem.Gyogyszer.Where(gy => gy.Deleted == 0)); eszkozok_fej = new ObservableCollection <KorhaziEszkozok_Fej>(mungoSystem.KorhaziEszkozok_Fej.Where(kef => kef.Deleted == 0)); }
private void Window_Loaded(object sender, RoutedEventArgs e) { mungoSystem = new MungoSystem(); mungoSystem.People.Load(); }
private void Window_Loaded(object sender, RoutedEventArgs e) { mungoSystem = new MungoSystem(); }
public RecepciosMainWindow(MungoSystem mungoSystem, People sessionUser) { InitializeComponent(); recepciosViewModel = new RecepciosViewModel(mungoSystem, sessionUser); }
public BetegWindow(MungoSystem mungoSys,People sessionUsr) { InitializeComponent(); controller = new BetegMainController(mungoSys,sessionUsr); }
//------------------------------------------------------------------------------------ public void MungoSystemInitial(MungoSystem ms) { this.ms = ms; this.betegTabla = new ObservableCollection<Betegek>(ms.Betegek); this.kortortenetFej = new ObservableCollection<Kortortenet_fej>(ms.Kortortenet_fej); this.kortortenetTetel = new ObservableCollection<Kortortenet_tetel>(ms.Kortortenet_tetel); this.betegek = new ObservableCollection<People>(ms.People.Local.Where(ppl => ppl.Group == 4)); pID = ms.People.Max(p => p.PeopleID); bID = ms.Betegek.Max(p => p.BetegID); kfID = ms.Kortortenet_fej.Max(p => p.KortortenetFejID); ktID = ms.Kortortenet_tetel.Max(p => p.KortortenetTetelID); OnPropChanged("betegek"); }
public RecepciosMainWindow(MungoSystem mungoSystem, People sessionUser) { InitializeComponent(); recepciosViewModel = new RecepciosViewModel(mungoSystem,sessionUser); }
public BetegWindow(MungoSystem mungoSys, People sessionUsr) { InitializeComponent(); controller = new BetegMainController(mungoSys, sessionUsr); }
//------------------------------------------------------------------------------------ public void MungoSystemInitial(MungoSystem ms) { this.ms = ms; this.betegTabla = new ObservableCollection<Betegek>(ms.Betegek); this.kortortenetFej = new ObservableCollection<Kortortenet_fej>(ms.Kortortenet_fej); this.kortortenetTetel = new ObservableCollection<Kortortenet_tetel>(ms.Kortortenet_tetel); this.betegek = new ObservableCollection<People>(ms.People.Local.Where(ppl =>ppl.Deleted == 0 && ppl.Group == 1)); this.lazlapok = new ObservableCollection<Lazlap>(ms.Lazlap); this.gyogyszerek = new ObservableCollection<Gyogyszer>(ms.Gyogyszer); try { pID = ms.People.Max(p => p.PeopleID); bID = ms.Betegek.Max(p => p.BetegID); OnPropChanged("betegek"); kfID = ms.Kortortenet_fej.Max(p => p.KortortenetFejID); ktID = ms.Kortortenet_tetel.Max(p => p.KortortenetTetelID); } catch { } }