예제 #1
0
        public ActionResult CaseFiles()
        {
            var viewModel = new RptSetupViewModel();

            ViewBag.DoctorSelectList    = _doctorRepository.GetSelectList();
            ViewBag.HospitalSelectList  = _hospitalRepository.GetSelectList();
            ViewBag.DiagnosisSelectList = _diagnosisRepository.GetSelectList();
            ViewBag.UserSelectList      = _userRepository.GetSelectList();

            return(View("SetupCaseFiles", viewModel));
        }
예제 #2
0
        private void InitViewBag()
        {
            ViewBag.DoctorSelectList   = _doctorRepository.GetSelectList();
            ViewBag.HospitalSelectList = _hospitalRepository.GetSelectList();

            // Assisting doctors is same list as Doctors but with a valid entry for none
            var temp1 = _doctorRepository.GetSelectList().ToList();

            temp1.Insert(0, new SelectListItem()
            {
                Value = "0", Text = "(No assisting physician or unknown)"
            });
            ViewBag.AssistingSelectList = new SelectList(temp1, "Value", "Text");

            // Assisting doctors is same list as Doctors but with a valid entry for none
            var temp2 = _doctorRepository.GetSelectListAnesthesiologists().ToList();

            temp2.Insert(0, new SelectListItem()
            {
                Value = "0", Text = "(No anesthesiologist or unknown)"
            });
            ViewBag.AnesthSelectList = new SelectList(temp2, "Value", "Text");

            var temp3 = _diagnosisController.GetSelectList().ToList();

            temp3.Insert(0, new SelectListItem()
            {
                Value = "0", Text = "(Select this choice if the correct diagnosis is not shown and enter in Other diagnosis below)"
            });
            ViewBag.DiagnosisSelectList = new SelectList(temp3, "Value", "Text");
        }
예제 #3
0
        public ActionResult EditAssignments(int id)
        {
            var viewModel = _pvgMemberRepository.Get(id);

            // Extend the Hospitals to a total of 3 for data entry
            while (viewModel.Hospitals.Count < 3)
            {
                viewModel.Hospitals.Add(new PvgMemberHospital());
            }

            ViewBag.HospitalSelectList = _hospitalRepository.GetSelectList();

            return(View(viewModel));
        }
예제 #4
0
        private void InitViewBag()
        {
            ViewBag.UserSelectList       = _usersRepository.GetSelectList();
            ViewBag.PracticeSelectList   = _practiceRepository.GetSelectList(FacilityType.Legal);
            ViewBag.HospitalSelectList   = _hospitalRepository.GetSelectList();
            ViewBag.PVGMembersSelectList = _pvgRepository.GetSelectList();

            var temp = _departmentsRepository.GetSelectList().ToList();

            temp.Insert(0, new SelectListItem()
            {
                Value = "-1", Text = "(Select this choice if the correct Department is not shown and enter in New Department below)"
            });
            ViewBag.DepartmentsSelectList = new SelectList(temp, "Value", "Text");
        }