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); }
public int?AddMSReviewersSuggestion(Entities.MSReviewersSuggestion msReviewersSuggestion) { msReviewersSuggestion.CreatedDate = System.DateTime.Now; msReviewersSuggestion.IsActive = true; context.MSReviewersSuggestion.Add(msReviewersSuggestion); context.SaveChanges(); return(msReviewersSuggestion.ID); }
public MSReviewerSuggestionDTO() { MSReviewersSuggestion = new TransferDesk.Contracts.Manuscript.Entities.MSReviewersSuggestion(); msReviewerInfo = new List <Entities.MSReviewersSuggestionInfo>(); reviewerDetailsDTO = new List <ReviewerDetailsDTO>(); ErrorCategoriesList = new List <Entities.ReviewerErrorCategory>(); MSReviewerErrorCategory = new List <Entities.MSReviewerErrorCategory>(); }
private void ValidateMSReviewerSuggestion(IDictionary <string, string> dataErrors, MSReviewerSuggestionDTO msReviewerSuggestionDTO) { Entities.MSReviewersSuggestion msReviewersSuggestion = msReviewerSuggestionDTO.MSReviewersSuggestion; if (msReviewersSuggestion.StartDate == null) { dataErrors.Add("StartDate", "Start Date is required."); } if (msReviewersSuggestion.JournalID == null) { dataErrors.Add("JournalID", "JournalTitle is required."); } if (msReviewersSuggestion.MSID == null) { dataErrors.Add("MSID", "Manuscript Number is required."); } if (msReviewersSuggestion.ArticleTitle == null) { dataErrors.Add("ArticleTitle", "Article Title is required."); } if (msReviewersSuggestion.RoleID == null) { dataErrors.Add("RoleID", "Role is required."); } }
public void UpdateMSReviewersSuggestion(Entities.MSReviewersSuggestion msReviewersSuggestion) { msReviewersSuggestion.QualitySubmissionDate = System.DateTime.Now; context.Entry(msReviewersSuggestion).State = EntityState.Modified; }