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));
        }
        public ActionResult ManuscriptLogin(int?id)
        {
            var manuscriptLoginVm = new ManuscriptLoginVM();
            var userId            = @System.Web.HttpContext.Current.User.Identity.Name.Replace("SPRINGER-SBM\\", "");

            manuscriptLoginVm._journal = _manuscriptDBRepositoryReadSide.GetJournalList();
            var crestId = Convert.ToInt32(id);

            if (id != null && id != 0)
            {
                ManuscriptLoginVmDetails(manuscriptLoginVm, crestId);
            }
            manuscriptLoginVm._articleType          = _manuscriptDBRepositoryReadSide.GetArticleList(Convert.ToInt32(manuscriptLoginVm.JournalID));
            manuscriptLoginVm._section              = _manuscriptDBRepositoryReadSide.GetSectionList(Convert.ToInt32(manuscriptLoginVm.JournalID));
            manuscriptLoginVm._TaskList             = _manuscriptDBRepositoryReadSide.GetTaskType();
            manuscriptLoginVm._serviceType          = _manuscriptDBRepositoryReadSide.GetServiceType();
            manuscriptLoginVm.EmployeeName          = _manuscriptDBRepositoryReadSide.EmployeeName(userId);
            manuscriptLoginVm.manuscriptLoginedJobs = ManuscriptLoginDbRepositoryReadSide.GetManuscriptLoginJobs();
            return(View(manuscriptLoginVm));
        }