Example #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));
        }
Example #2
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");
        }