Exemplo n.º 1
0
        public ActionResult Completed()
        {
            var model = new TraCrfIndexViewModel();

            model.MainMenu          = _mainMenu;
            model.CurrentLogin      = CurrentUser;
            model.CurrentPageAccess = CurrentPageAccess;
            var data = _CRFBLL.GetCompleted();

            model.Details = Mapper.Map <List <TraCrfItemDetails> >(data);
            return(View(model));
        }
Exemplo n.º 2
0
        public ActionResult Index()
        {
            var model = new TraCrfIndexViewModel();

            model.MainMenu     = _mainMenu;
            model.CurrentLogin = CurrentUser;
            var data = _CRFBLL.GetList(CurrentUser);

            model.CurrentPageAccess = CurrentPageAccess;
            if (CurrentUser.UserRole == Enums.UserRole.Viewer || CurrentUser.UserRole == Enums.UserRole.Administrator)
            {
                model.CurrentPageAccess.ReadAccess  = true;
                model.CurrentPageAccess.WriteAccess = true;
            }
            model.Details = Mapper.Map <List <TraCrfItemDetails> >(data);
            return(View(model));
        }
Exemplo n.º 3
0
        public ActionResult PersonalDashboard()
        {
            var data  = _CRFBLL.GetCrfPersonal(CurrentUser);
            var model = new TraCrfIndexViewModel
            {
                Details           = Mapper.Map <List <TraCrfItemDetails> >(data),
                MainMenu          = Enums.MenuList.PersonalDashboard,
                CurrentLogin      = CurrentUser,
                CurrentPageAccess = new RoleDto()
                {
                    ReadAccess = true,
                },
                IsPersonalDashboard = true
            };

            //model.TitleForm = "CRF Personal Dashboard";
            // model.TitleExport = "ExportOpen";
            return(View("Index", model));
        }