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 RecepciosErtesitesWindow(RecepciosViewModel recepciosViewModel)
        {
            InitializeComponent();
            this.recepciosViewModel = recepciosViewModel;

            mungoSystem = recepciosViewModel.MungoSystem;
        }
Пример #3
0
        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 IdopontSzerkeszto(RecepciosViewModel recepciosViewModel, Idopontok idopont, StMungoServiceClient smc)
        {
            InitializeComponent();
            this.smc = smc;
            this.recepciosViewModel = recepciosViewModel;
            //smc.mungoSystem() = recepciosViewModel.MungoSystem;
            this.idopont = idopont;

            var orvosnev = smc.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;

            smc.Betegek_getLoad();

            var betegek = from b in smc.mungoSystem().Betegek
                          join p in smc.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 };

            foreach (var b in betegek)
            {
                recepciosViewModel.Betegek.Add(new BetegTajIDNev {
                    TAJ = b.TAJ, Nev = b.Nev, BetegID = b.BetegID, PeopleID = (int)b.PeopleID
                });
            }
        }
 public RecepciosBetegRegisztracioMainWindow(RecepciosViewModel recepciosViewModel)
 {
     InitializeComponent();
     this.recepciosViewModel = recepciosViewModel;
     mungoSystem             = recepciosViewModel.MungoSystem;
     this.DataContext        = recepciosViewModel;
 }
Пример #7
0
        public IdopontKezelo(RecepciosViewModel recepciosViewModel, StMungoServiceClient smc)
        {
            this.smc = smc;
            InitializeComponent();
            this.recepciosViewModel = recepciosViewModel;

            //smc.mung = recepciosViewModel.MungoSystem;
        }
Пример #8
0
 public RecepciosMainWindow(People sessionUser, StMungoServiceClient smc)
 {
     this.smc = smc;
     InitializeComponent();
     recepciosViewModel = new RecepciosViewModel(smc.mungoSystem(), sessionUser);
 }
Пример #9
0
 public RecepciosMainWindow(MungoSystem mungoSystem, People sessionUser)
 {
     InitializeComponent();
     recepciosViewModel = new RecepciosViewModel(mungoSystem, sessionUser);
 }