Exemple #1
0
        //public IEnumerable<Entities.Journal> Journals { get; set; }
        //public IEnumerable<Entities.JournalSections> JournalSections { get; set; }
        //public IEnumerable<Entities.ArticleType> ArticleTypes { get; set; }

        public ManuscriptScreeningDTO()
        {
            Manuscript   = new TransferDesk.Contracts.Manuscript.Entities.Manuscript();//todo:rename namespace, can name it as Manuscript Types
            OtherAuthors = new List <Entities.OtherAuthor>();
            manuscriptErrorCategoryList = new List <Entities.ManuscriptErrorCategory>();

            ErrorCategoriesList = new List <Entities.ErrorCategory>();
        }
Exemple #2
0
 public int?AddManuscript(Entities.Manuscript manuscript)
 {
     manuscript.ModifiedDateTime = System.DateTime.Now;
     manuscript.StartDate        = System.DateTime.Now;
     manuscript.Status           = 1;
     manuscriptDataContext.Manuscripts.Add(manuscript);
     manuscriptDataContext.SaveChanges();
     return(manuscript.ID);
 }
        public void Validate_MSID(Entities.Manuscript manuscript, IDictionary <String, String> dataErrors)
        {
            IEnumerable <Entities.Manuscript> Manuscripts = _manuscriptDBRepositoryReadSide.GetManuscriptByMSID(manuscript.MSID);

            if ((Manuscripts != null) &&
                (Manuscripts.Count() == 1) && Manuscripts.FirstOrDefault().ID == manuscript.ID)
            {
                //found the same manuscript only with this MSID
                return;
            }
            else
            {
                dataErrors.Add("MSID", "This Manuscript number already exist");
                return;
            }
        }
 public void ValidateManuscriptScreening(IDictionary <string, string> dataErrors, ManuscriptScreeningDTO manuscriptScreeningDTO)
 {
     Entities.Manuscript manuscript = manuscriptScreeningDTO.Manuscript;
     if (manuscript.JournalID == null)
     {
         dataErrors.Add("JournalID", "JournalTitle is required.");
     }
     if (manuscript.ArticleTypeID == null)
     {
         dataErrors.Add("ArticleTypeID", "Article Type is required.");
     }
     if (manuscript.ArticleTitle == null)
     {
         dataErrors.Add("ArticleTitle", "Article Title is required.");
     }
     if (manuscript.StartDate == null)
     {
         dataErrors.Add("StartDate", "Start Date is required.");
     }
     if (manuscript.RoleID == null)
     {
         dataErrors.Add("RoleID", "Role is required.");
     }
     if (manuscript.UserID == null)
     {
         dataErrors.Add("UserMasterID", "System UserID is required.");
     }
     if (manuscript.Crosscheck_iThenticateResultID == null)
     {
         dataErrors.Add("Crosscheck_iThenticateResultID", "Crosscheck iThenticateResult is required.");
     }
     if (manuscript.Highest_iThenticateFromSingleSrc == null)
     {
         dataErrors.Add("Highest_iThenticateFromSingleSrc", "Highest iThenticate(From SingleSource) is required.");
     }
     if (manuscript.English_Lang_QualityID == null)
     {
         dataErrors.Add("English_Lang_QualityID", "English Language Quality is required.");
     }
     if (manuscript.Ethics_ComplianceID == null)
     {
         dataErrors.Add("Ethics_ComplianceID", "Ethics Compliance is required.");
     }
     if (manuscript.InitialSubmissionDate == null)
     {
         dataErrors.Add("InitialSubmissionDate", "Initial Submission Date is required.");
     }
     if (manuscript.CorrespondingAuthor == null)
     {
         dataErrors.Add("CorrespondingAuthor", "Corresponding Author is required.");
     }
     if (manuscript.CorrespondingAuthorEmail == null)
     {
         dataErrors.Add("CorrespondingAuthorEmail", "Corresponding Author Email is required.");
     }
     if (manuscript.CorrespondingAuthorAff == null)
     {
         dataErrors.Add("CorrespondingAuthorAff", "Corresponding Author Aff. is required.");
     }
     if (manuscript.OverallAnalysisID == null)
     {
         dataErrors.Add("OverallAnalysis", "Overall Analysis is required.");
     }
 }
Exemple #5
0
 public void UpdateManuscript(Entities.Manuscript manuscript)
 {
     manuscript.ModifiedDateTime = System.DateTime.Now;
     manuscriptDataContext.Entry(manuscript).State = EntityState.Modified;
 }