Beispiel #1
0
        public AddPharmacyViewModel(IServiceLocator serviceLocator, PharmacyDomainContext context)
        {
            DisplayName = "Pridať   lekáreň";
            _serviceLocator = serviceLocator;
            _pharmacyDomainContext = context;

            Cities = new BindableCollection<Cis_Obec>();
        }
        public RecipeDrugListViewModel(IServiceLocator serviceLocator, PharmacyDomainContext context)
        {
            _serviceLocator = serviceLocator;
            _pharmacyDomainContext = context;

            DrugList = new RiaPagedCollectionView<Liecivo>(_pharmacyDomainContext.Liecivos);
            DrugList.PageChanged += (sender, args) => { this.GetDrugList(); };
        }
        public StatisticsNumOfDrugsOrderViewModel(IServiceLocator serviceLocator, PharmacyDomainContext context)
        {
            DisplayName = "Štatistika predaných liečiv";
            _serviceLocator = serviceLocator;
            _pharmacyDomainContext = context;

            this.InitChart();
        }
        public RemovePharmacyViewModel(IServiceLocator serviceLocator, PharmacyDomainContext context)
        {
            DisplayName = "Odstrániť   lekáreň";

            _serviceLocator = serviceLocator;
            _pharmacyDomainContext = context;

            Pharmacy = new BindableCollection<Lekaren>();
        }
        public DrugCentralListViewModel(IServiceLocator serviceLocator, PharmacyDomainContext context)
        {
            _serviceLocator = serviceLocator;
            _pharmacyDomainContext = context;
            DisplayName = "Zoznam    liečiv";

            DrugList = new RiaPagedCollectionView<Liecivo>(_pharmacyDomainContext.Liecivos);
            DrugList.PageChanged += (sender, args) => { this.GetDrugList(); };
        }
 public SoldRecipeListViewModel(IServiceLocator serviceLocator, PharmacyDomainContext context)
 {
     DisplayName = "Zoznam   vydaných   receptov";
     _serviceLocator = serviceLocator;
     _pharmacyDomainContext = context; 
     
     RecipeList = new RiaPagedCollectionView<Recept>(_pharmacyDomainContext.Recepts);
     RecipeList.PageChanged += (sender, args) => { this.GetRecipeList(); };
 }
        public AdditionalDrugsInRecipeViewModel(IServiceLocator serviceLocator, PharmacyDomainContext context, IAuthorizationService authorizationService)
        {
            _serviceLocator = serviceLocator;
            _pharmacyDomainContext = context;
            _authorizationService = authorizationService;

            DrugBarCode = new BindableCollection<Liecivo>();
            DrugBarCodeWithActiveSubstance = new BindableCollection<Liecivo>();
            ActiveSubstance = new BindableCollection<Ucinna_latka>();
        }
Beispiel #8
0
        public StoreDrugViewModel(IServiceLocator serviceLocator, PharmacyDomainContext context, IAuthorizationService authorizationService)
        {
            DisplayName = "Naskladniť   liečivo";

            _serviceLocator = serviceLocator;
            _pharmacyDomainContext = context;
            _authorizationService = authorizationService;

            Pharmacy = new BindableCollection<Lekaren>();
        }
Beispiel #9
0
        public OrdersViewModel(IServiceLocator serviceLocator, PharmacyDomainContext context)
        {
            DisplayName = "Správa   objednávky";

            _serviceLocator = serviceLocator;
            _pharmacyDomainContext = context;

            DrugList = new RiaPagedCollectionView<Liecivo>(_pharmacyDomainContext.Liecivos);
            _pharmacyDomainContext.Liecivos.Clear();
        }
        public StatisticsNumOfSoldViewModel(IServiceLocator serviceLocator, PharmacyDomainContext context)
        {
            DisplayName = "Štatistika vydaných liečiv";
            _serviceLocator = serviceLocator;
            _pharmacyDomainContext = context;

            _drugNameCountList = new DrugNameCountList();
            DrugNames = new ObservableCollection<DrugNameCount>();

            this.InitDrugsAndChart();
        }
        public StatisticsActiveSubstancesViewModel(IServiceLocator serviceLocator, PharmacyDomainContext context)
        {
            DisplayName = "Štatistika   na predpis   liečiv";
            _serviceLocator = serviceLocator;
            _pharmacyDomainContext = context;

            _drugNameCountList = new DrugNameCountList();
            DrugNames = new ObservableCollection<DrugNameCount>();

            this.InitDrugsAndChart();
        }
        public StoredDrugsListViewModel(IServiceLocator serviceLocator, PharmacyDomainContext context, IAuthorizationService authorizationService)
        {
            DisplayName = "Zoznam    nasklad.    liečiv";

            _serviceLocator = serviceLocator;
            _pharmacyDomainContext = context;
            _authorizationService = authorizationService;
            DrugList = new RiaPagedCollectionView<Lekaren_naskladnene_liecivo>(_pharmacyDomainContext.Lekaren_naskladnene_liecivos);
            DrugList.PageChanged += (sender, args) => { this.GetDrugList(); };

            //_pharmacyDomainContext.Load(_pharmacyDomainContext.GetDetailedStoredDrugsNamesQuery(_authorizationService.User.Id), true);
        }
Beispiel #13
0
        public AddRecipeViewModel(IServiceLocator serviceLocator, PharmacyDomainContext context, IAuthorizationService authorizationService)
        {
            DisplayName = "Pridanie  receptu";
            _serviceLocator = serviceLocator;
            _pharmacyDomainContext = context;
            _authorizationService = authorizationService;

            Patients = new BindableCollection<IdentifikacneUdaje>();
            Doctors = new BindableCollection<Doctor>();
            DrugBarCode = new BindableCollection<Liecivo>();
            DrugBarCodeWithActiveSubstance = new BindableCollection<Liecivo>();
            ActiveSubstance = new BindableCollection<Ucinna_latka>();
        }
        public AddCorporationViewModel(IServiceLocator serviceLocator, PharmacyDomainContext context)
        {
            DisplayName = "Pridať      firmu";
            _serviceLocator = serviceLocator;
            _pharmacyDomainContext = context;

            _random = new Random();

            Cities = new BindableCollection<Cis_Obec>();


            //generate random number as corporation identificator
            RegNumber = this.GetRandomCorporationNumber().ToString();
        }
        public ManageChemistViewModel(IServiceLocator serviceLocator, PharmacyDomainContext context, IAuthorizationService authorizationService)
        {
            DisplayName = "Správa   lekárnikov";

            _serviceLocator = serviceLocator;
            _pharmacyDomainContext = context;
            _authorizationService = authorizationService;

            UserProfiles = new BindableCollection<UserProfile>();
            Pharmacies = new BindableCollection<Lekaren>();

            ChemistList = new RiaPagedCollectionView<Lekarnik>(_pharmacyDomainContext.Lekarniks);
            ChemistList.PageChanged += (sender, args) => { this.GetChemistList(); };
        }
Beispiel #16
0
        public AddDrugViewModel(IServiceLocator servicelocator, PharmacyDomainContext context)
        {
            DisplayName = "Pridať   liečivo";
            _serviceLocator = servicelocator;
            _pharmacyDomainContext = context;

            _random = new Random();
            BarCode = this.GetRandomCorporationNumber().ToString();

            DrugName = new BindableCollection<Nazov_lieciva>();
            ActiveSubstance = new BindableCollection<Ucinna_latka>();
            CorporationDistributor = new BindableCollection<Distributor>();
            DrugForm = new BindableCollection<Forma>();
            Prescription = new BindableCollection<string> {"Nie", "Áno"};
        }
        public FilterDrugListViewModel(IServiceLocator serviceLocator, PharmacyDomainContext context)
        {
            DisplayName = "Filter       liečiv";
            _serviceLocator = serviceLocator;
            _pharmacyDomainContext = context;

            SoldOrStored = new BindableCollection<string> { "Naskladnené liečivá", "Vydané liečivá" };
            
            DrugList = new RiaPagedCollectionView<Liecivo_na_recepte>(_pharmacyDomainContext.Liecivo_na_receptes);
            _pharmacyDomainContext.Liecivo_na_receptes.Clear();
            DrugList.PageChanged += (sender, args) => { this.GetFilter(); };

            Drug2List = new RiaPagedCollectionView<Lekaren_naskladnene_liecivo>(_pharmacyDomainContext.Lekaren_naskladnene_liecivos);
            _pharmacyDomainContext.Liecivo_na_receptes.Clear();
            Drug2List.PageChanged += (sender, args) => { this.GetFilter(); };

            this.VisibleGridSold();
        }
 public AddActiveSubstanceViewModel(IServiceLocator servicelocator, PharmacyDomainContext context)
 {
     DisplayName = "Pridať   účinnú     látku";
     _serviceLocator = servicelocator;
     _pharmacyDomainContext = context;
 }
 public AddAdditionalDrugsInfoViewModel(IServiceLocator serviceLocator, PharmacyDomainContext context)
 {
     _serviceLocator = serviceLocator;
     _pharmacyDomainContext = context;
 }
Beispiel #20
0
 public AddFormViewModel(IServiceLocator serviceLocator, PharmacyDomainContext context)
 {
     _serviceLocator = serviceLocator;
     _pharmacyDomainContext = context;
     DisplayName = "Pridať    formu";
 }
Beispiel #21
0
 public AddDrugNameViewModel(IServiceLocator servicelocator, PharmacyDomainContext context)
 {
     DisplayName = "Pridať     názov";
     _serviceLocator = servicelocator;
     _pharmacyDomainContext = context;
 }