public AddVolunteerViewModel(VolunteerListViewModel volunteerListViewModel, VolunteerService volunteerService, PersonService personService, WorkUnitService workUnitService, SpecialtyService specialtyService, VolunteerSpecialtyService volunteerSpecialtyService) { _volunteerListViewModel = volunteerListViewModel; _volunteerService = volunteerService; _workUnitService = workUnitService; _personService = personService; _volunteerSpecialtyService = volunteerSpecialtyService; _specialtyService = specialtyService; Supervisors = new ObservableCollection <Person>(_personService.GetPersons() .Where(c => c.Discriminator == "Physician" || c.Discriminator == "Nurse" || c.Discriminator == "Staff" || c.Discriminator == "Technician")); Specialties = new ObservableCollection <Specialty>(_specialtyService.GetSpecialties()); WorkUnits = new ObservableCollection <WorkUnit>(_workUnitService.GetWorkUnits()); Hours = new ObservableCollection <int>(new List <int>() { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }); }
public AddStaffViewModel(StaffListViewModel staffListViewModel, EmployeeService employeeService, WardService wardService, WorkUnitService workUnitService, SpecialtyService specialtyService, JobClassService jobClassService, EmployeeSpecialtyService employeeSpecialtyService, WardEmployeeService wardEmployeeService, UnitEmployeeService unitEmployeeService) { _staffListViewModel = staffListViewModel; _employeeService = employeeService; _wardService = wardService; _workUnitService = workUnitService; _employeeSpecialtyService = employeeSpecialtyService; _specialtyService = specialtyService; _wardEmployeeService = wardEmployeeService; _unitEmployeeService = unitEmployeeService; _jobClassService = jobClassService; Specialties = new ObservableCollection <Specialty>(_specialtyService.GetSpecialties()); Wards = new ObservableCollection <Ward>(_wardService.GetWards()); JobClasses = new ObservableCollection <JobClass>(_jobClassService.GetJobClasses()); WorkUnits = new ObservableCollection <WorkUnit>(_workUnitService.GetWorkUnits()); }
public VolunteerView() { InitializeComponent(); _volunteerService = new VolunteerService(new MVCHContext()); _volunteerListViewModel = new VolunteerListViewModel(_volunteerService); _specialtyService = new SpecialtyService(new MVCHContext()); _volunteerSpecialtyService = new VolunteerSpecialtyService(new MVCHContext()); _workUnitService = new WorkUnitService(new MVCHContext()); _personService = new PersonService(new MVCHContext()); DataContext = _volunteerListViewModel; }
public NurseView() { InitializeComponent(); _employeeService = new EmployeeService(new MVCHContext()); _nurseListViewModel = new NurseListViewModel(_employeeService); _specialtyService = new SpecialtyService(new MVCHContext()); _employeeSpecialtyService = new EmployeeSpecialtyService(new MVCHContext()); _wardService = new WardService(new MVCHContext()); _workUnitService = new WorkUnitService(new MVCHContext()); _wardEmployeeService = new WardEmployeeService(new MVCHContext()); _unitEmployeeService = new UnitEmployeeService(new MVCHContext()); _jobClassService = new JobClassService(new MVCHContext()); DataContext = _nurseListViewModel; }
public AddVolunteerView(VolunteerListViewModel volunteerListViewModel, VolunteerService volunteerService, PersonService personService, WorkUnitService workUnitService, SpecialtyService specialtyService, VolunteerSpecialtyService volunteerSpecialtyService) { _toAddVolunteer = new AddVolunteerViewModel(volunteerListViewModel, volunteerService, personService, workUnitService, specialtyService, volunteerSpecialtyService); DataContext = _toAddVolunteer; InitializeComponent(); }
public AddTechnicianView(TechnicianListViewModel technicianListViewModel, EmployeeService employeeService, WardService wardService, WorkUnitService workUnitService, SpecialtyService specialtyService, EmployeeSpecialtyService employeeSpecialtyService, WardEmployeeService wardEmployeeService, UnitEmployeeService unitEmployeeService) { _toAddTechnician = new AddTechnicianViewModel(technicianListViewModel, employeeService, wardService, workUnitService, specialtyService, employeeSpecialtyService, wardEmployeeService, unitEmployeeService); DataContext = _toAddTechnician; InitializeComponent(); }
public AddTechnicianViewModel(TechnicianListViewModel technicianListViewModel, EmployeeService employeeService, WardService wardService, WorkUnitService workUnitService, SpecialtyService specialtyService, EmployeeSpecialtyService employeeSpecialtyService, WardEmployeeService wardEmployeeService, UnitEmployeeService unitEmployeeService) { _technicianListViewModel = technicianListViewModel; _employeeService = employeeService; _wardService = wardService; _workUnitService = workUnitService; _employeeSpecialtyService = employeeSpecialtyService; _specialtyService = specialtyService; _wardEmployeeService = wardEmployeeService; _unitEmployeeService = unitEmployeeService; Specialties = new ObservableCollection <Specialty>(_specialtyService.GetSpecialties()); Wards = new ObservableCollection <Ward>(_wardService.GetWards()); WorkUnits = new ObservableCollection <WorkUnit>(_workUnitService.GetWorkUnits()); }
public AddStaffView(StaffListViewModel staffListViewModel, EmployeeService employeeService, WardService wardService, WorkUnitService workUnitService, SpecialtyService specialtyService, JobClassService jobClassService, EmployeeSpecialtyService employeeSpecialtyService, WardEmployeeService wardEmployeeService, UnitEmployeeService unitEmployeeService) { _toAddStaff = new AddStaffViewModel(staffListViewModel, employeeService, wardService, workUnitService, specialtyService, jobClassService, employeeSpecialtyService, wardEmployeeService, unitEmployeeService); DataContext = _toAddStaff; InitializeComponent(); }
public AddNurseView(NurseListViewModel nurseListViewModel, EmployeeService employeeService, WardService wardService, WorkUnitService workUnitService, SpecialtyService specialtyService, EmployeeSpecialtyService employeeSpecialtyService, WardEmployeeService wardEmployeeService, UnitEmployeeService unitEmployeeService) { _toAddNurse = new AddNurseViewModel(nurseListViewModel, employeeService, wardService, workUnitService, specialtyService, employeeSpecialtyService, wardEmployeeService, unitEmployeeService); DataContext = _toAddNurse; InitializeComponent(); //default RnSelectButton.IsChecked = true; }
public void AddWorkUnitTest() { var serv = new WorkUnitService(new MVCHContext()); serv.AddWorkUnit(new WorkUnit { Name = "Intensive Care Unit", Floor = "2nd Floor", FacilityId = "FAC-000001" }); serv.AddWorkUnit(new WorkUnit { Name = "Intensive Care Unit", Floor = "2nd Floor", FacilityId = "FAC-000002" }); serv.AddWorkUnit(new WorkUnit { Name = "Intensive Care Unit", Floor = "2nd Floor", FacilityId = "FAC-000003" }); serv.AddWorkUnit(new WorkUnit { Name = "Intensive Care Unit", Floor = "2nd Floor", FacilityId = "FAC-000004" }); serv.AddWorkUnit(new WorkUnit { Name = "Intensive Care Unit", Floor = "2nd Floor", FacilityId = "FAC-000005" }); serv.AddWorkUnit(new WorkUnit { Name = "Intensive Care Unit", Floor = "2nd Floor", FacilityId = "FAC-000006" }); serv.AddWorkUnit(new WorkUnit { Name = "Intensive Care Unit", Floor = "2nd Floor", FacilityId = "FAC-000007" }); serv.AddWorkUnit(new WorkUnit { Name = "Intensive Care Unit", Floor = "2nd Floor", FacilityId = "FAC-000008" }); serv.AddWorkUnit(new WorkUnit { Name = "Intensive Care Unit", Floor = "2nd Floor", FacilityId = "FAC-000009" }); serv.AddWorkUnit(new WorkUnit { Name = "Intensive Care Unit", Floor = "2nd Floor", FacilityId = "FAC-000010" }); serv.AddWorkUnit(new WorkUnit { Name = "Cardiology", Floor = "3rd Floor", FacilityId = "FAC-000001" }); }