public ManuscriptLoginController()
 {
     _conString = Convert.ToString(ConfigurationManager.AppSettings["dbTransferDeskService"]);
     _manuscriptDBRepositoryReadSide     = new ManuscriptDBRepositoryReadSide(_conString);
     ManuscriptLoginDbRepositoryReadSide = new ManuscriptLoginDBRepositoryReadSide(_conString);
     _manuscriptLoginService             = new ManuscriptLoginService(_conString);
 }
        public TransferReportDocX()
        {
            string conString = string.Empty;

            conString = Convert.ToString(ConfigurationManager.AppSettings["dbTransferDeskService"]);
            _manuscriptDBRepositoryReadSide = new ManuscriptDBRepositoryReadSide(conString);
        }
Example #3
0
        public ManuscriptController()
        {
            //empty constructor
            string conString = "data source=192.168.84.149;initial catalog=dbTransferDeskService;user id=sa;password=admin@123;MultipleActiveResultSets=True;App=EntityFramework";

            _manuscriptService = new ManuscriptService(conString, conString);
            _manuscriptDBRepositoryReadSide = new ManuscriptDBRepositoryReadSide(conString);
        }
        public QualityAnalystDashBoardController()
        {
            var conString = Convert.ToString(ConfigurationManager.AppSettings["dbTransferDeskService"]);

            _manuscriptDbRepositoryReadSide = new ManuscriptDBRepositoryReadSide(conString);
            qualityAnalystDashBoardVm       = new QualityAnalystDashBoardVM();
            _qualityanalystreposistory      = new QualityAnalystDashBoardReposistory(conString);
        }
Example #5
0
 public ManuscriptLoginBL(string conString)
 {
     this.conString = conString;
     context        = new DataContext.ManuscriptDBContext(conString);
     _manuscriptDBRepositoryReadSide      = new ManuscriptDBRepositoryReadSide(conString);
     _manuscriptLoginDBRepositoryReadSide = new ManuscriptLoginDBRepositoryReadSide(conString);
     _manuscriptLoginDetailsRepository    = new ManuscriptLoginDetailsRepository(conString);
 }
        public UserRoleController()
        {
            string conString = Convert.ToString(ConfigurationManager.AppSettings["dbTransferDeskService"]);

            //ManuscriptContext
            this._UserRoleRepository        = new UserRoleRepository((new ManuscriptDBContext(conString)));
            _manuscriptDBRepositoryReadSide = new ManuscriptDBRepositoryReadSide(conString);
            userRoleVM = new UserRoleVM();
        }
Example #7
0
        public ReviewerSuggestionController()
        {
            string conString = string.Empty;

            conString = Convert.ToString(ConfigurationManager.AppSettings["dbTransferDeskService"]);
            _manuscriptDBRepositoryReadSide = new ManuscriptDBRepositoryReadSide(conString);
            _reviewerDBRepositoryReadSide   = new ReviewerSuggestionDBRepositoryReadSide(conString);
            _reviewerService = new ReviewerService(conString, conString);
        }
        public AdminDashboardController()
        {
            string conString = string.Empty;

            conString                       = Convert.ToString(ConfigurationManager.AppSettings["dbTransferDeskService"]);
            adminDasboardVM                 = new AdminDasboardVM();
            adminDashBoardService           = new AdminDashBoardService(conString);
            _adminDashBoardReposistory      = new AdminDashBoardReposistory(conString);
            _manuscriptDBRepositoryReadSide = new ManuscriptDBRepositoryReadSide(conString);
        }
Example #9
0
        public AdminController()
        {
            var conString = string.Empty;

            conString          = Convert.ToString(ConfigurationManager.AppSettings["dbTransferDeskService"]);
            _manuscriptService = new ManuscriptService(conString, conString);
            _manuscriptDBRepositoryReadSide = new ManuscriptDBRepositoryReadSide(conString);
            _JournalRepository           = new JournalRepository(conString);
            journalvm                    = new JournalVM();
            JournalArticleTypeRepository = new JournalArticleTypeRepository(conString);
            journalarticletypevm         = new JournalArticleTypeVM();
            _JournalSectionReposistory   = new JournalSectionTypeRepository(conString);
            journalsectionvm             = new JournalSectionTypeVM();
        }
Example #10
0
        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);
        }
Example #11
0
 public void InitManuscriptDBRepositoryReadSide()
 {
     _manuscriptDBRepositoryReadSide = new ManuscriptDBRepositoryReadSide(_ConStringWrite);
 }
 private void InitManuscriptDBRepositoryReadSide(string conStringManuscriptDB)
 {
     _manuscriptDBRepositoryReadSide = new ManuscriptDBRepositoryReadSide(conStringManuscriptDB);
 }