//API StlActionsSearchController调用 public StlPageContents(string stlPageContentsElement, PageInfo pageInfo, ContextInfo contextInfo, int pageNum, string tableName, string whereString) { _pageInfo = pageInfo; _contextInfo = contextInfo; var xmlDocument = StlParserUtility.GetXmlDocument(stlPageContentsElement, false); _node = xmlDocument.DocumentElement; if (_node != null) { _node = _node.FirstChild; ListInfo = ListInfo.GetListInfoByXmlNode(_node, pageInfo, _contextInfo, EContextType.Content); } ListInfo.Scope = EScopeType.All; _contextInfo.TitleWordNum = ListInfo.TitleWordNum; ListInfo.Where += whereString; if (pageNum > 0) { ListInfo.PageNum = pageNum; } SqlString = StlDataUtility.GetPageContentsSqlStringBySearch(tableName, ListInfo.GroupContent, ListInfo.GroupContentNot, ListInfo.Tags, ListInfo.IsImageExists, ListInfo.IsImage, ListInfo.IsVideoExists, ListInfo.IsVideo, ListInfo.IsFileExists, ListInfo.IsFile, ListInfo.IsNoDup, ListInfo.StartNum, ListInfo.TotalNum, ListInfo.OrderByString, ListInfo.IsTopExists, ListInfo.IsTop, ListInfo.IsRecommendExists, ListInfo.IsRecommend, ListInfo.IsHotExists, ListInfo.IsHot, ListInfo.IsColorExists, ListInfo.IsColor, ListInfo.Where, ListInfo.Scope, ListInfo.GroupChannel, ListInfo.GroupChannelNot); }
//API StlActionsSearchController调用 public StlPageContents(string stlPageContentsElement, PageInfo pageInfo, ContextInfo contextInfo, int pageNum, string tableName, string whereString) { _pageInfo = pageInfo; _contextInfo = contextInfo; var xmlDocument = StlParserUtility.GetXmlDocument(stlPageContentsElement, false); _node = xmlDocument.DocumentElement; if (_node != null) { _node = _node.FirstChild; var attributes = new Dictionary <string, string>(); var ie = _node?.Attributes?.GetEnumerator(); if (ie != null) { while (ie.MoveNext()) { var attr = (XmlAttribute)ie.Current; var key = attr.Name; if (!string.IsNullOrEmpty(key)) { var value = attr.Value; if (string.IsNullOrEmpty(value)) { value = string.Empty; } attributes[key] = value; } } } _contextInfo = contextInfo.Clone(stlPageContentsElement, attributes, _node?.InnerXml, _node?.ChildNodes); ListInfo = ListInfo.GetListInfoByXmlNode(_pageInfo, _contextInfo, EContextType.Content); } ListInfo.Scope = EScopeType.All; ListInfo.Where += whereString; if (pageNum > 0) { ListInfo.PageNum = pageNum; } SqlString = StlDataUtility.GetPageContentsSqlStringBySearch(tableName, ListInfo.GroupContent, ListInfo.GroupContentNot, ListInfo.Tags, ListInfo.IsImageExists, ListInfo.IsImage, ListInfo.IsVideoExists, ListInfo.IsVideo, ListInfo.IsFileExists, ListInfo.IsFile, ListInfo.IsNoDup, ListInfo.StartNum, ListInfo.TotalNum, ListInfo.OrderByString, ListInfo.IsTopExists, ListInfo.IsTop, ListInfo.IsRecommendExists, ListInfo.IsRecommend, ListInfo.IsHotExists, ListInfo.IsHot, ListInfo.IsColorExists, ListInfo.IsColor, ListInfo.Where, ListInfo.Scope, ListInfo.GroupChannel, ListInfo.GroupChannelNot); }
//API StlActionsSearchController调用 public StlPageContents(string stlPageContentsElement, PageInfo pageInfo, ContextInfo contextInfo, int pageNum, string tableName, string whereString) { _pageInfo = pageInfo; _contextInfo = contextInfo; var stlElementInfo = StlParserUtility.ParseStlElement(stlPageContentsElement); _contextInfo = contextInfo.Clone(stlPageContentsElement, stlElementInfo.InnerHtml, stlElementInfo.Attributes); ListInfo = ListInfo.GetListInfo(_pageInfo, _contextInfo, EContextType.Content); ListInfo.Scope = EScopeType.All; ListInfo.Where += whereString; if (pageNum > 0) { ListInfo.PageNum = pageNum; } SqlString = StlDataUtility.GetPageContentsSqlStringBySearch(tableName, ListInfo.GroupContent, ListInfo.GroupContentNot, ListInfo.Tags, ListInfo.IsImageExists, ListInfo.IsImage, ListInfo.IsVideoExists, ListInfo.IsVideo, ListInfo.IsFileExists, ListInfo.IsFile, ListInfo.StartNum, ListInfo.TotalNum, ListInfo.OrderByString, ListInfo.IsTopExists, ListInfo.IsTop, ListInfo.IsRecommendExists, ListInfo.IsRecommend, ListInfo.IsHotExists, ListInfo.IsHot, ListInfo.IsColorExists, ListInfo.IsColor, ListInfo.Where); }