예제 #1
0
        public ActionResult Users()
        {
            SharpnessViewModels model = new SharpnessViewModels();

            model.Users = _repoUsers.GetAllUsers();

            return(View(model));
        }
예제 #2
0
        public ActionResult Reglaments()
        {
            SharpnessViewModels model = new SharpnessViewModels();

            model.Reglaments = _repoReglaments.GetAllReglaments();

            return(View(model));
        }
예제 #3
0
        // GET: ControlPanel
        public ActionResult Index()
        {
            SharpnessViewModels model = new SharpnessViewModels();

            model.Organs    = repoOrgans.GetOrgans();
            model.Stains    = repoStains.GetStains();
            model.Tissues   = repoTissues.GetTissues();
            ViewBag.Stains  = new SelectList(model.Stains, "Name", "Name");
            ViewBag.Organs  = new SelectList(model.Organs, "Name", "Name");
            ViewBag.Tissues = new SelectList(model.Tissues, "Name", "Name");
            return(View(model));
        }
예제 #4
0
        public ActionResult WSIs()
        {
            SharpnessViewModels model = new SharpnessViewModels();

            model.WSIs    = _repoWSI.GetWSIs();
            model.Users   = _repoUsers.GetAllUsers();
            model.Reports = _repoReports.GetAllReports();

            foreach (var item in model.WSIs)
            {
                item.UserId = _repoUsers.GetUserById(item.UserId).Email;
            }


            return(View(model));
        }
예제 #5
0
        public ActionResult Index()
        {
            model            = new SharpnessViewModels();
            model.WSIs       = _repoWSIs.GetAllWSIByUserId(User.Identity.GetUserId());
            model.Reports    = _repoReports.GetAllReportsByUserId(User.Identity.GetUserId());
            model.RecentWSIs = (IList <WSI>)_repoWSIs.GetRecentWSIByUSerId(User.Identity.GetUserId());


            ViewBag.TestTotal          = _repoReports.GetTotalNumberOfTestsByUserId(User.Identity.GetUserId());
            ViewBag.TestTotalThisWeek  = _repoReports.GetTotalNumberOfTestsForLastWeekByUserId(User.Identity.GetUserId());
            ViewBag.TestTotalThisMonth = _repoReports.GetTotalNumberOfTestsForLastMonthByUserId(User.Identity.GetUserId());
            ViewBag.TestTotalThisYear  = _repoReports.GetTotalNumberOfTestsForLastYearByUserId(User.Identity.GetUserId());
            ViewBag.NegativeTests      = _repoReports.GetTotalNumberOfNegativeTestsByUserId(User.Identity.GetUserId());
            ViewBag.PositiveTests      = _repoReports.GetTotalNumberOfPositiveTestsByUserId(User.Identity.GetUserId());
            return(View(model));
        }
예제 #6
0
        public ActionResult AdminToUserDashboard(string UserId)
        {
            model            = new SharpnessViewModels();
            model.WSIs       = _repoWSIs.GetAllWSIByUserId(UserId);
            model.Reports    = _repoReports.GetAllReportsByUserId(UserId);
            model.RecentWSIs = (IList <WSI>)_repoWSIs.GetRecentWSIByUSerId(UserId);

            ViewBag.CurrentUserId      = UserId;
            ViewBag.CurrentUserName    = _repoUsers.GetUserById(UserId).UserName;
            ViewBag.TestTotal          = _repoReports.GetTotalNumberOfTestsByUserId(UserId);
            ViewBag.TestTotalThisWeek  = _repoReports.GetTotalNumberOfTestsForLastWeekByUserId(UserId);
            ViewBag.TestTotalThisMonth = _repoReports.GetTotalNumberOfTestsForLastMonthByUserId(UserId);
            ViewBag.TestTotalThisYear  = _repoReports.GetTotalNumberOfTestsForLastYearByUserId(UserId);
            ViewBag.NegativeTests      = _repoReports.GetTotalNumberOfNegativeTestsByUserId(UserId);
            ViewBag.PositiveTests      = _repoReports.GetTotalNumberOfPositiveTestsByUserId(UserId);
            return(View(model));
        }
예제 #7
0
        public ActionResult Index()
        {
            SharpnessViewModels model = new SharpnessViewModels();

            model.Stains  = _repoStains.GetStains();
            model.Organs  = _repoOrgans.GetOrgans();
            model.Tissues = _repoTissues.GetTissues();
            model.Reports = _repoReports.GetAllReports();
            //löschen
            model.Users = _repoUsers.GetAllUsers();

            //get all admins
            var _appContext = new IdentitySample.Models.ApplicationDbContext();


            //model.WSIs = _repoWSI.GetWSIs();
            //model.Reglaments = _repoReglaments.GetAllReglaments();
            return(View(model));
        }
예제 #8
0
 public ActionResult AllMyTests()
 {
     model      = new SharpnessViewModels();
     model.WSIs = _repoWSIs.GetAllWSIByUserId(User.Identity.GetUserId());
     return(View(model));
 }