Пример #1
0
        public void GetMailDetails(Dictionary <String, String> dicReplace, int reviewerMasterID, int?msReviewersSuggestionID, string userID)
        {
            Entities.MSReviewersSuggestion     msReviewersSuggestion     = msReviewerSuggestionDBRepositoryReadSide.GetManuscriptByID(msReviewersSuggestionID);
            Entities.MSReviewersSuggestionInfo msReviewersSuggestionInfo = msReviewerSuggestionDBRepositoryReadSide.GetMSReviewerInfoIDs(reviewerMasterID);
            List <Entities.ReviewerMaster>     reviewerName = msReviewerSuggestionDBRepositoryReadSide.GetReviewerDetails(msReviewersSuggestionInfo.ReviewerMasterID);
            var journalName = msReviewerSuggestionDBRepositoryReadSide.GetJounralName(msReviewersSuggestion.JournalID);

            Entities.Employee associateUserInfo = null;
            Entities.Employee qualityUserInfo   = null;
            if (!string.IsNullOrEmpty(msReviewersSuggestion.AnalystUserID))
            {
                associateUserInfo = msReviewerSuggestionDBRepositoryReadSide.GetAssociateInfo(msReviewersSuggestion.AnalystUserID);
            }
            if (!string.IsNullOrEmpty(userID))
            {
                qualityUserInfo = msReviewerSuggestionDBRepositoryReadSide.GetAssociateInfo(userID);
            }
            dicReplace.Add("[manuscriptNumber]", msReviewersSuggestion.MSID);
            dicReplace.Add("[journalname]", journalName.ToString());
            dicReplace.Add("[reviewername]", reviewerName[0].ReviewerName);
            dicReplace.Add("[QAname]", qualityUserInfo.EmpName);
            dicReplace.Add("[Analystname]", associateUserInfo.EmpName);
            dicReplace.Add("[QAEmail]", qualityUserInfo.alternateEmail);
            dicReplace.Add("[AnalystEmail]", associateUserInfo.alternateEmail);
        }
Пример #2
0
        internal void UnAssignReviewer(int reviewerInfoID, int?msReviewersSuggestionID)
        {
            var reviewerInfo = new Entities.MSReviewersSuggestionInfo();

            reviewerInfo          = context.MSReviewersSuggestionInfo.Where(x => x.ID == reviewerInfoID).FirstOrDefault();
            reviewerInfo.IsActive = false;
            reviewerInfo.IsAssociateFinalSubmit = false;
            context.Entry(reviewerInfo).State   = EntityState.Modified;
            context.SaveChanges();
        }