public void gotokdp(BACAClient.Model.Knowledge model) { if (model.TypeId == 3) { new PDF { Id = model.Id, TypeId = model.TypeId }.Show(); } else { this.returnsearch = new ReturnSearch(); if (this.IsReturn) { SystemEnum.ISRETURN yES = SystemEnum.ISRETURN.YES; this.returnsearch.IsReturn = yES.ToString(); } else { this.returnsearch.IsReturn = SystemEnum.ISRETURN.NO.ToString(); } this.returnsearch.TypeId = 0; this.returnsearch.PageIndex = this.pageIndex; this.returnsearch.SourceId = (int)this.SourceID; this.returnsearch.KeyWord = this.keyword.Text; this.returnsearch.Pages = new PageSwitch().RapidRetrieval; CacheHelper.SetReturnSearch(this.returnsearch); CacheHelper.SetCache(this.cache.HistoryIndex, string.Empty); CacheHelper.SetCache(this.cache.Id, model.Id.ToString()); base.ParentWindow.PageSwitch(new PageSwitch().kdp); } }
public void OpenFullTextImage() { try { if (this.TypeId == 7) { this.reModel = new Relational(); //todo if (this.reModel != null) { this.Knowledge = this.reModel.ReTitle; this.IMGs = this.reModel.IMGs; char[] trimChars = new char[] { ';' }; char[] separator = new char[] { ';' }; this.IMGPath = this.reModel.IMGPath.TrimEnd(trimChars).Split(separator); this.PDFName = this.reModel.PDFName; this.PDFPath = this.reModel.PDFPath; } } else { this.model = new Model.Knowledge(); // todo if (this.model != null) { this.Knowledge = this.model.Key1; this.IMGs = this.model.IMGs; char[] chArray3 = new char[] { ';' }; char[] chArray4 = new char[] { ';' }; this.IMGPath = this.model.IMGPath.TrimEnd(chArray3).Split(chArray4); this.PDFName = this.model.PDFName; this.PDFPath = this.model.PDFPath; this.ReLngId = this.model.LngId.ToString(); } } if ((this.IMGs == 0) || (this.IMGPath == null)) { this.wait.Content = "暂无全文"; } else if (this.BindFullImages() && (this.TypeId != 7)) { this.Statistics(); } } catch { } }