zoukankan      html  css  js  c++  java
  • ajty

                //row = (DataRow)node.Nodes[0] .Tag
                //;
                //row["NodeID"] =ds.Tables[0].Columns["NodeID"].ColumnName ;
                //ds= (DataSet)((DataRow)node.Nodes[0].Tag)["NodeID"];
                //(DataRow)row["NodeID"];
                //DataColumn[] pk =  (DataColumn)row["ParentNodeID"][0];
                //ForeignKeyConstraint fkcdelete;
    
                //(DataRow)node.Nodes[0] = ds.Tables["NodeID"].ToString();
                //  ds.Tables[0].Columns["NodeID"];
                //  (DataRow)node.Nodes[0].Tag;//当前树节点 对象的集合。
                //node.Nodes.CopyTo((Array)ds, 0);
                //nodeID = dataRow["NodeID"].ToString();
    
    
    
    
                //            WITH COMMENT_CTE(CommentId, ParentId, CommentBody, tLevel)
                //AS
                //(
                //    --基本语句
                //    SELECT CommentId, ParentId, CommentBody, 0 AS tLevel FROM Comments
                //    WHERE ParentId = @emp_id-- 可以是传入的值
                //    UNION ALL--递归语句
    
    
                //    SELECT c.CommentId, c.ParentId, c.CommentBody, ce.tLevel + 1 FROM Comments AS c
                //    INNER JOIN COMMENT_CTE AS ce--递归查询
    
    
                //    ON c.ParentId = ce.CommentId
                //    -- OPTION(MAXRECURSION 2)
                //)
                //SELECT * FROM COMMENT_CTE
    
                //           int i = node.GetNodeCount(false); // 子节点 的数目
                //           DataSet ds = null;
                //           DataRow row = null;
                //           TreeNode[] Gb = null;
                //           try
                //           {
                //               if (i > 0)
                //               {  
                ////                   TreeNode firstNode = node.FirstNode;
                ////                   TreeNode firstNodes = firstNode.NextNode;
    
    
                ////                   Nodes
                ////                       TreeNode Find[] 
                ////   TreeNode n = new TreeNode();
                ////                   dataGridView1.DataSource = (DataRow)node.Nodes[0].Tag;//当前树节点 对象的集合。  firstNode.Level(0);
                ////                   //node.Nodes.CopyTo((Array)ds, 0);
                ////                   TreeNodeCollection node4 = (TreeNodeCollection)node.Nodes[0].Tag;
                ////                   //TreeNode n = new TreeNode();
                ////                   n.Nodes.Add(node.Nodes[i]);
                ////dataGridView1.DataSource = (DataRow)node.Nodes[0].Tag;//当前树节点 对象的集合。
                //               }
                //               return GetDGV(node, b, dataGridView1);
                //           }
                //           catch (Exception) { throw; }
  • 相关阅读:
    服务的有状态和无状态
    微服务-服务治理
    微服务-服务注册与发现
    微服务-技术的选型
    微服务的数据一致性
    微服务的服务拆分
    初识微服务
    REST API风格
    算法
    JS 判断PC、android、ios、微信浏览器
  • 原文地址:https://www.cnblogs.com/endv/p/5351313.html
Copyright © 2011-2022 走看看