Exemple #1
0
        public ActionResult HomePage(int?id)
        {
            //string conString = "data source=192.168.84.149;initial catalog=dbTransferDeskService;user id=sa;password=admin@123;MultipleActiveResultSets=True;App=EntityFramework";
            //_manuscriptService = new ManuscriptService();
            //_manuscriptDBRepositoryReadSide = new ManuscriptDBRepositoryReadSide(conString);

            ViewBag.SearchList         = _manuscriptDBRepositoryReadSide.GetSearchList();
            ViewBag.JournalList        = _manuscriptDBRepositoryReadSide.GetJournalList();
            ViewBag.RoleList           = _manuscriptDBRepositoryReadSide.GetRoleList();
            ViewBag.iThenticateResult  = JsonConvert.SerializeObject(_manuscriptDBRepositoryReadSide.GetList(1));
            ViewBag.EnglishLangQuality = JsonConvert.SerializeObject(_manuscriptDBRepositoryReadSide.GetList(2));
            ViewBag.EthicsComplience   = JsonConvert.SerializeObject(_manuscriptDBRepositoryReadSide.GetList(3));
            ViewBag.OverallAnalysis    = JsonConvert.SerializeObject(_manuscriptDBRepositoryReadSide.GetList(4));
            int manuscriptID = id ?? default(int);

            ManuscripScreeningVM manuscriptVM;

            if (_manuscriptService._manuscriptScreeningBL == null)
            {
                _manuscriptService._manuscriptScreeningBL = new BAL.Manuscript.ManuscriptScreeningBL();
            }

            if (_manuscriptService._manuscriptScreeningBL._manuscriptDBRepositoryReadSide == null)
            {
                _manuscriptService._manuscriptScreeningBL._manuscriptDBRepositoryReadSide = _manuscriptDBRepositoryReadSide;
            }

            //if _manuscriptService._manuscriptScreeningBL

            if (manuscriptID == 0)
            {
                manuscriptVM = _manuscriptService.GetManuscriptScreeningDefaultVM();
            }
            else
            {
                manuscriptVM = _manuscriptService.GetManuscriptScreeningVM(manuscriptID);
            }

            //@System.Web.HttpContext.Current.User.Identity.Name.Replace("SPRINGER-SBM\\", "")
            //manuscriptVM.UserID = _manuscriptDBRepositoryReadSide.EmployeeName(manuscriptVM.UserID);


            int journalID = Convert.ToInt32(manuscriptVM.JournalID);

            ViewBag.ArticleList = _manuscriptDBRepositoryReadSide.GetArticleList(journalID);
            ViewBag.SectionList = _manuscriptDBRepositoryReadSide.GetSectionList(journalID);
            return(View("HomePage", manuscriptVM));
        }
Exemple #2
0
        // GET: ReviewerSuggetion
        public ActionResult ReviewersSuggestions(int?id)
        {
            int[] roleIds = _manuscriptDBRepositoryReadSide.GetUserRoles(userID);
            if (roleIds.Count() > 0)
            {
                ViewBag.SearchList  = _manuscriptDBRepositoryReadSide.GetSearchList();
                ViewBag.JournalList = _manuscriptDBRepositoryReadSide.GetJournalList();
                ViewBag.RoleList    = _manuscriptDBRepositoryReadSide.GetUserRoleList(roleIds);
                ViewBag.TaskIDList  = _reviewerDBRepositoryReadSide.GetTaskIDList();
                ReviewerSuggestionVM msReviewerSuggestionVM;
                int reviewerID = id ?? default(int);

                if (_reviewerService._reviewerSuggetionBL == null)
                {
                    _reviewerService._reviewerSuggetionBL = new BAL.Manuscript.ReviewerSuggetionBL();
                }

                if (_reviewerService._reviewerSuggetionBL.msReviewerSuggestionDBRepositoryReadSide == null)
                {
                    _reviewerService._reviewerSuggetionBL.msReviewerSuggestionDBRepositoryReadSide = _reviewerDBRepositoryReadSide;
                }
                if (reviewerID == 0)
                {
                    msReviewerSuggestionVM = _reviewerService.GetManuscriptScreeningDefaultVM();
                }
                else
                {
                    msReviewerSuggestionVM = _reviewerService.GetManuscriptScreeningVM(reviewerID);
                }
                return(View(msReviewerSuggestionVM));
            }
            else
            {
                return(File("~/Views/Shared/Unauthorised.htm", "text/html"));
            }
        }