public void gotokdp(int TypeId, int LngId, string parameter) { try { if (!string.IsNullOrEmpty(parameter)) { parameter = ReplaceUtils.ReplaceAHerf(parameter); if (parameter.Contains(",")) { if (!ShowEvent.WindowIsOpen(new DocMore().Title)) { DocMore more = new DocMore(); more.gotokdp += new DocMore.ChangedEventHandler(this.gotokdp); more.StrName = parameter; more.Show(); } return; } char[] separator = new char[] { '/' }; TypeId = int.Parse(parameter.Split(separator)[1]); char[] chArray2 = new char[] { '/' }; LngId = int.Parse(parameter.Split(chArray2)[0]); } if (TypeId == 7) { new PDF { TypeId = TypeId, ReLngId = LngId.ToString(), Owner = new BasePage().ParentWindow }.Show(); } else { int id = -1; //todo if (TypeId == 3) { new PDF { TypeId = TypeId, Id = id, Owner = new BasePage().ParentWindow }.Show(); } else { CacheHelper.SetCache(new CacheParameterName().HistoryIndex, string.Empty); CacheHelper.SetCache(this.cache.Id, id.ToString()); base.ParentWindow.PageSwitch(this.pageswitch.kdp); } } } catch { } }
public void goTokdp(int ReTypeId, string ReLngId) { if (ReLngId.Contains(",")) { DocMore more = new DocMore { ReTypeId = ReTypeId, ReLngId = ReLngId }; more.gotokdp += new DocMore.ChangedEventHandler(this.goToKdp); more.Show(); } else { this.gotokdp(ReTypeId, int.Parse(ReLngId), string.Empty); } }