Esempio n. 1
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");
        }
Esempio n. 2
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));
        }