public ActionResult Abstract(int specid = 0, int oid = 0, int fid = 0, string selaction = null, string sort = "date", string searchfolder = "", int MID = 0) { int qsSpecId = specid; MyLibraryModel MainMyLibraryModel = new MyLibraryModel(); var UserSpecialityList = MyLibraryBL.GetUserSpecialities(CurrentUser.UserId); if (qsSpecId == 0) { qsSpecId = UserSpecialityList.Select(n => n.SpecialityId).FirstOrDefault(); } var UserFolderList = MyLibraryBL.GetUserFolderList(qsSpecId, CurrentUser.UserId); MainMyLibraryModel.AllUserFolders = UserFolderList; MainMyLibraryModel.AllUserSpecialities = UserSpecialityList; ViewBag.SpecId = qsSpecId; ViewBag.PrimarySpecialityId = UserSpecialityList.Select(n => n.SpecialityId).FirstOrDefault(); if (MID != 0) { CitationsModel pmid = new CitationsModel(); pmid.pmid = MID; List <CitationsModel> PMIDCitation = new List <CitationsModel>(); PMIDCitation.Add(pmid); MainMyLibraryModel.CitationDetails = MyLibraryBL.GetCitationDetails(PMIDCitation, sort, CurrentUser.UserId, 2, true); MainMyLibraryModel.UserComment = MyLibraryBL.GetUserComment(MID, CurrentUser.UserId); MainMyLibraryModel.AbstractCommentsECList = MyLibraryBL.GetAbstractCommentsEC(MID); } return(View(MainMyLibraryModel)); }
public ActionResult AbstractPrintable(int specid = 0, int oid = 0, int fid = 0, string selaction = null, string sort = "date", string searchfolder = "", int MID = 0) { int qsSpecId = specid; MyLibraryModel MainMyLibraryModel = new MyLibraryModel(); if (MID != 0) { CitationsModel pmid = new CitationsModel(); pmid.pmid = MID; List <CitationsModel> PMIDCitation = new List <CitationsModel>(); PMIDCitation.Add(pmid); MainMyLibraryModel.CitationDetails = MyLibraryBL.GetCitationDetails(PMIDCitation, sort, CurrentUser.UserId, 2, true); MainMyLibraryModel.UserComment = MyLibraryBL.GetUserComment(MID, CurrentUser.UserId); MainMyLibraryModel.AbstractCommentsECList = MyLibraryBL.GetAbstractCommentsEC(MID); } return(View(MainMyLibraryModel)); }
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)); }
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)); }