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 WardView()
 {
     InitializeComponent();
     _wardService         = new WardService(new MVCHContext());
     _wardListViewModel   = new WardListViewModel(_wardService);
     _physicianService    = new PhysicianService(new MVCHContext());
     _facilityService     = new FacilityService(new MVCHContext());
     _employeeService     = new EmployeeService(new MVCHContext());
     _wardEmployeeService = new WardEmployeeService(new MVCHContext());
     DataContext          = _wardListViewModel;
 }
Exemplo n.º 3
0
 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 AddWardView(WardListViewModel wardListViewModel,
                    WardService wardService,
                    FacilityService facilityService,
                    EmployeeService employeeService,
                    WardEmployeeService wardEmployeeService)
 {
     _toAddWard = new AddWardViewModel(wardListViewModel,
                                       wardService,
                                       facilityService,
                                       employeeService,
                                       wardEmployeeService);
     DataContext = _toAddWard;
     InitializeComponent();
 }
        public AddWardViewModel(WardListViewModel wardListViewModel,
                                WardService wardService,
                                FacilityService facilityService,
                                EmployeeService employeeService,
                                WardEmployeeService wardEmployeeService)
        {
            _wardListViewModel   = wardListViewModel;
            _wardService         = wardService;
            _facilityService     = facilityService;
            _wardEmployeeService = wardEmployeeService;


            Employees  = new ObservableCollection <Employee>(_employeeService.GetEmployees());
            Facilities = new ObservableCollection <Facility>(_facilityService.GetFacilities());
        }
 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();
 }
Exemplo n.º 7
0
 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;
        }
Exemplo n.º 10
0
        public void AddWardEmployeeTest()
        {
            var serv = new WardEmployeeService(new MVCHContext());

            serv.AddWardEmployee(new WardEmployee
            {
                WardId       = "WRD-000001",
                EmployeeId   = "PER-000031",
                DateAssigned = DateTime.Now
            });
            serv.AddWardEmployee(new WardEmployee
            {
                WardId       = "WRD-000002",
                EmployeeId   = "PER-000032",
                DateAssigned = DateTime.Now
            });
            serv.AddWardEmployee(new WardEmployee
            {
                WardId       = "WRD-000003",
                EmployeeId   = "PER-000033",
                DateAssigned = DateTime.Now
            });
            serv.AddWardEmployee(new WardEmployee
            {
                WardId       = "WRD-000004",
                EmployeeId   = "PER-000034",
                DateAssigned = DateTime.Now
            });
            serv.AddWardEmployee(new WardEmployee
            {
                WardId       = "WRD-000005",
                EmployeeId   = "PER-000035",
                DateAssigned = DateTime.Now
            });
            serv.AddWardEmployee(new WardEmployee
            {
                WardId       = "WRD-000006",
                EmployeeId   = "PER-000036",
                DateAssigned = DateTime.Now
            });
            serv.AddWardEmployee(new WardEmployee
            {
                WardId       = "WRD-000007",
                EmployeeId   = "PER-000037",
                DateAssigned = DateTime.Now
            });
            serv.AddWardEmployee(new WardEmployee
            {
                WardId       = "WRD-000008",
                EmployeeId   = "PER-000038",
                DateAssigned = DateTime.Now
            });
            serv.AddWardEmployee(new WardEmployee
            {
                WardId       = "WRD-000009",
                EmployeeId   = "PER-000039",
                DateAssigned = DateTime.Now
            });
            serv.AddWardEmployee(new WardEmployee
            {
                WardId       = "WRD-000010",
                EmployeeId   = "PER-000040",
                DateAssigned = DateTime.Now
            });
        }