Beispiel #1
0
 private static void CreateContentAndRelateNode(NodeInfo nodeInfo, DataTable dataTable, string generalIds)
 {
     if (!string.IsNullOrEmpty(nodeInfo.RelateNode))
     {
         HtmlCategory category = new HtmlCategory();
         category.NodeIdArray = nodeInfo.RelateNode;
         category.CommonCreateHtml();
     }
     if (!string.IsNullOrEmpty(nodeInfo.RelateSpecial))
     {
         HtmlSpecial special = new HtmlSpecial();
         special.SpecialIdArray = nodeInfo.RelateSpecial;
         special.CommonCreateHtml();
     }
     CreateContentAndNodeAndParentNodeAndSpecial(nodeInfo, dataTable, generalIds);
 }
Beispiel #2
0
        private static void CreateContentAndNodeAndParentNodeAndSpecial(NodeInfo nodeInfo, DataTable dataTable, string generalIds)
        {
            string filterExpression = "FieldLevel=0 AND FieldName ='SpecialId'";

            DataRow[] rowArray = dataTable.Select(filterExpression);
            if (rowArray.Length > 0)
            {
                int specialId = DataConverter.CLng(rowArray[0]["FieldValue"].ToString());
                if (Special.GetSpecialInfoById(specialId).IsCreateListPage)
                {
                    HtmlSpecial special = new HtmlSpecial();
                    special.SpecialIdArray = specialId.ToString();
                    special.CommonCreateHtml();
                }
            }
            CreateContenAndNodeAndParentNode(nodeInfo, generalIds);
        }