public ActionResult JournalSectionTypes() { ViewBag.JournalList = _manuscriptDBRepositoryReadSide.GetJournalList(); int journalid = 0; journalsectionvm.sectiondetails = _JournalSectionReposistory.GetJournalSectionDetails(journalid); return(View(journalsectionvm)); }
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)); }
public IDictionary <string, string> CreateJournalFolderStructure(string fileServerIPPath, string manuscriptFilePath, IDictionary <string, string> dataErrors, ManuscriptLoginDTO manuscriptLoginDTO) { if (ImpersonateUser()) { //Impersonation.Impersonate impersonate = new Impersonation.Impersonate(); List <Journal> journalList = new List <Journal>(); //ManuscriptLogin manuscriptLogin = new ManuscriptLogin(); _manuscriptDBRepositoryReadSide = new ManuscriptDBRepositoryReadSide(conString); string journalFolderPath = string.Empty; string fileName = manuscriptFilePath.Substring(manuscriptFilePath.LastIndexOf("\\")); string revisionNo = string.Empty; journalList = _manuscriptDBRepositoryReadSide.GetJournalList(); revisionNo = Convert.ToString(_manuscriptLoginDBRepositoryReadSide.GetRevisionCount(manuscriptLoginDTO.manuscriptLogin.MSID)); var journalName = (from journal in journalList where journal.ID == manuscriptLoginDTO.manuscriptLogin.JournalId select journal.JournalTitle).FirstOrDefault(); journalFolderPath = fileServerIPPath + "\\" + journalName + "\\" + manuscriptLoginDTO.manuscriptLogin.MSID + "\\Manuscript"; if (manuscriptLoginDTO.IsRevision) { journalFolderPath = fileServerIPPath + "\\" + journalName + "\\" + manuscriptLoginDTO.manuscriptLogin.MSID + "\\Manuscript\\Revision " + revisionNo; } else { journalFolderPath = fileServerIPPath + "\\" + journalName + "\\" + manuscriptLoginDTO.manuscriptLogin.MSID + "\\Manuscript\\Fresh"; } if (CreateDirectory(journalFolderPath)) { File.Copy(manuscriptFilePath, journalFolderPath + fileName, true); File.Delete(manuscriptFilePath); manuscriptLoginDTO.manuscriptLogin.ManuscriptFilePath = journalFolderPath; impersonate.EndImpersonation(); } else { dataErrors.Add("Impersonation Error", "File is not uploaded file server."); return(dataErrors); } } else { dataErrors.Add("Impersonation Error", "File is not uploaded file server."); return(dataErrors); } return(dataErrors); }
// 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")); } }