コード例 #1
0
        public ActionResult AbstractPrintable(string sort = "date", string searchfolder = "", int MID = 0)
        {
            SearchBL.MyQueryForm myQyeryForm = new SearchBL.MyQueryForm();


            if (MID != 0)
            {
                CitationsModel pmid = new CitationsModel();
                pmid.pmid = MID;
                List <CitationsModel> PMIDCitation = new List <CitationsModel>();
                PMIDCitation.Add(pmid);
                myQyeryForm.CitationDetails        = SearchBL.GetCitationDetails(PMIDCitation, sort, CurrentUser.UserId, 2);
                myQyeryForm.UserComment            = MyLibraryBL.GetUserComment(MID, CurrentUser.UserId);
                myQyeryForm.AbstractCommentsECList = MyLibraryBL.GetAbstractCommentsEC(MID);
            }
            return(View(myQyeryForm));
        }
コード例 #2
0
        public ActionResult QueryCitationAbstract(string sort = "date", string searchfolder = "", int MID = 0, int Search = 0)
        {
            SearchBL.MyQueryForm myQyeryForm = new SearchBL.MyQueryForm();

            List <SearchBL.MyQueryForm> myQueriesList = new List <SearchBL.MyQueryForm>();

            myQueriesList             = SearchBL.MyQueriesList(CurrentUser.UserId);
            myQyeryForm.myQueriesList = myQueriesList;

            myQyeryForm.Isendemail = SearchBL.GetIsSendEmail(CurrentUser.UserId);
            myQyeryForm.TopicsList = SearchBL.GetTopicsList(CurrentUser.UserId);
            if (MID != 0)
            {
                CitationsModel pmid = new CitationsModel();
                pmid.pmid = MID;
                List <CitationsModel> PMIDCitation = new List <CitationsModel>();
                PMIDCitation.Add(pmid);
                myQyeryForm.CitationDetails        = SearchBL.GetCitationDetails(PMIDCitation, sort, CurrentUser.UserId, 2);
                myQyeryForm.UserComment            = MyLibraryBL.GetUserComment(MID, CurrentUser.UserId);
                myQyeryForm.AbstractCommentsECList = MyLibraryBL.GetAbstractCommentsEC(MID);
                myQyeryForm.SearchID = Search; myQyeryForm.queryDetails = SearchBL.GetSearchQuery(CurrentUser.UserId, "", Search);
            }
            return(View(myQyeryForm));
        }