/// <summary> /// 加载初始数据 /// </summary> public static void Loading() { //首页相关cache //object CollegeList = CacheClass.GetCache("CollegeList"); CacheClass.SetCache("CollegeList", InstanceCollege.GetSYSCollegeList()); //全部成果 CacheClass.SetCache("chengguoCount", productionsAdapter.LoadProductionCitationNumAll()); //全文数量 CacheClass.SetCache("wenxianCount", productionsAdapter.LoadProductionAllCount()); //最新文献 CacheClass.SetCache("getNewPro", productionsAdapter.LoadProductionOrderByCraeattime(8, 1)); //重要成果 CacheClass.SetCache("ImportResult", productionsAdapter.LoadProductionOrderByCitationNum(8, 1)); //下载最多 CacheClass.SetCache("maxDown", productionsAdapter.LoadProductionOrderByDownloadNum(8, 1)); ////学者推荐 //CacheClass.SetCache("scholarRe", ""); //内容类型 CacheClass.SetCache("contentType", sys_TemplateFieldModelAdapter.GetSYS_TemplateContentTypeListAndCount()); //发表日期 CacheClass.SetCache("ContentYear", sys_TemplateFieldModelAdapter.GetSYS_YearListAndCount()); //语言 CacheClass.SetCache("languageConut", sys_TemplateFieldModelAdapter.GetSYS_LanguageListAndCount()); //收录类型 collectType CacheClass.SetCache("collectType", sys_TemplateFieldModelAdapter.GetSYS_IndexedTypeListAndCount()); //object CollegeList = CacheClass.GetCache("CollegeList"); //object chengguoCount = CacheClass.GetCache("chengguoCount"); //object wenxianCount = CacheClass.GetCache("wenxianCount"); //object getNewPro = CacheClass.GetCache("getNewPro"); }
public IHttpActionResult LoadProductionOrderByCitationNum(int pageSize, int curPage) { return(Json(productionsAdapter.LoadProductionOrderByCitationNum(pageSize, curPage))); }