private List <string> GetPdeSelectedTables(string key, bool includeKey = true) { List <string> paths = new List <string>(); PdeDataTagInfo pdeTagInfo = _ibm.GetPdeDataTagInfo(key); // root node paths.Add(ProntoDoc.Framework.CoreObject.FrameworkConstants.PdeExportedRootName); // stn node paths.Add(pdeTagInfo.STN); // kind of data switch (pdeTagInfo.MapType) { case MapType.Table: paths.Add(MarkupConstant.PdeExportTable); paths.Add(pdeTagInfo.ParentName); break; case MapType.SingleCell: paths.Add(MarkupConstant.PdeExportField); break; case MapType.Chart: paths.Add(MarkupConstant.PdeExportChart); break; default: break; } // its path if (includeKey) { paths.Add(pdeTagInfo.MapType == MapType.Chart ? BaseMarkupUtilities.XmlEncode(pdeTagInfo.ExcelName) : pdeTagInfo.ExcelName); } return(paths); }
public PartBookmark(string name, InternalBookmark ibookmark) { InternalBookmarkItem bookmark = ibookmark.GetInternalBookmarkItem(name); if (bookmark != null) { BizName = bookmark.OrginalBizName; Key = name; } else { PdeDataTagInfo pdeTag = ibookmark.GetPdeDataTagInfo(name); if (pdeTag != null) { BizName = pdeTag.BookmarkName; Key = name; } } InitializeBookmark(); }