zoukankan      html  css  js  c++  java
  • C# 非递归生成树 10万+数据的一个递归 正式版

    原文:https://www.cnblogs.com/fzz2727551894/p/5501223.html

    效果预览:

      

    功能描述:

      当前节点若为子节点,且含有编码,则图标显示“”,否则为图标显示为“文件夹

      当前节点若为父节点,且所有子节点的图标都为“”,那么,当前节点的图标也为“勾”

    前端:

    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="utf-8" />
        <title></title>
    </head>
    <body>
        <div id="plugins1"></div>
    
        <link href="../jstree/themes/default/style.min.css" rel="stylesheet" />
        <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.js"></script>
        <script src="../jstree/jstree.min.js"></script>
        <link href="../layui-v2.5.5/layui/css/layui.css" rel="stylesheet" />
        <script type="text/javascript">
            $(function () {
                $("#plugins1").jstree({
                    "checkbox": {
                        'three_state': true,//父子节点关联,true为关联,false为不关联
                        'tie_selection': false, //
                        'whole_node': false,//复选框与节点关联 true 为关联 false为不关联
                    },
                    "types": {
                        'nouser': {
                            "icon": 'layui-icon layui-icon-ok'
                        }
                    },
                    "plugins": ["checkbox", "types"],//加载插件 checkbox
                    'core': {
                        'expand_selected_onload': true,//加载完成后默认展开所有选中节点true为选中 false为不展开
                        'themes': {
                            dots: true //取消连接线
                        },
                        'data': {
                            'url': function (node) {
                                return './Handler6.ashx';
                            },
                            'data': function (node) {
                                return { 'id': node.id };
                            }
                        }
                    }
                });
    
                //点击事件
                $('#plugins1').bind("activate_node.jstree", function (obj, e) {
                    var currentNode = e.node;
                    console.log(currentNode.original);
                });
    
            });
        </script>
    </body>
    </html>
    View Code

    后台:

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using Newtonsoft.Json;
    using System.Data;
    using System.Data.SqlClient;
    
    namespace WebApplication1.jstree测试
    {
        /// <summary>
        /// Handler6 的摘要说明
        /// </summary>
        public class Handler6 : IHttpHandler
        {
            public void ProcessRequest(HttpContext context)
            {
                context.Response.ContentType = "application/json; charset=utf-8";
                var id = context.Request["id"].ToString();
                if (id == "#")
                {
                    var dtStart = DateTime.Now;
                    context.Response.Write(JsonConvert.SerializeObject(GetTree1()));
                }
                else
                {
                    context.Response.Write(JsonConvert.SerializeObject(GetTree2(int.Parse(id))));
                }
            }
    
            public bool IsReusable
            {
                get
                {
                    return false;
                }
            }
    
            //获取 tree1
            public List<TreeNode> GetTree1()
            {
                var table = GetDataTable($"select * from Projects9", null);
                var dic = CreateDic(table);
                var tree = CreateTree(dic);
                Delete_ThreeLevel_Node(tree);
                return tree;
            }
    
            //获取 tree2
            public List<TreeNode> GetTree2(int id)
            {
                var table = GetDataTable($@"DECLARE @ProjectCode nvarchar(MAX);--定义变量
                                            SELECT TOP 1 @ProjectCode=ProjectCode FROM dbo.Projects9 WHERE Id='{id}'--设置值
                                            SELECT * FROM dbo.Projects9 WHERE ProjectCode LIKE @ProjectCode+'%'--查询子节点", null);
                var dic = CreateDic(table);
                var tree = CreateTreeForGetTree2(dic, id);
                return tree;
            }
    
            //生成 dic
            public Dictionary<int, TreeNode> CreateDic(DataTable table)
            {
                //生成dictionary
                var dic = new Dictionary<int, TreeNode>();
                foreach (DataRow row in table.Rows)
                {
                    var model = new TreeNode
                    {
                        id = int.Parse(row["Id"].ToString()),
                        ParentId = int.Parse(row["ParentId"].ToString()),
                        Level = int.Parse(row["Level"].ToString()),
    
                        text = row["ProjectName"].ToString(),
                        code = row["ProjectCode"].ToString(),
                        ProjectCode = row["ProjectCode"].ToString(),
                        ComponentCode = row["ComponentCode"].ToString()
                    };
                    dic.Add(model.id, model);
                }
                return dic;
            }
    
            //生成 tree
            public List<TreeNode> CreateTree(Dictionary<int, TreeNode> dic)
            {
                var list = new List<TreeNode>();
                foreach (var pair in dic)
                {
                    var pid = pair.Value.ParentId;
                    if (pid == 0)
                    {
                        list.Add(pair.Value);
                        continue;
                    }
                    if (dic.ContainsKey(pid))
                    {
                        var children = (List<TreeNode>)dic[pid].children;
                        children.Add(pair.Value);
                    }
                }
    
                //这个不行哈
                //var list2 = dic.Select(c => c.Value).OrderByDescending(c => c.Level).Select(c =>
                //{
                //    SetType(c);
                //    return 1;
                //});
    
                //var list3 = dic.Select(c => c.Value).OrderByDescending(c => c.Level).ToList();
                //list3.ForEach(c =>
                //{
                //    SetType(c);
                //});
    
                //倒序 为每一层节点 设置type,设置顺序为:level从大到小
                var list4 = dic.Select(c => c.Value).OrderByDescending(c => c.Level);
                foreach (var c in list4)
                {
                    SetType(c);
                }
    
    
                return list;
            }
    
            //生成 tree For GetTree2
            public List<TreeNode> CreateTreeForGetTree2(Dictionary<int, TreeNode> dic, int rootId)
            {
                TreeNode root = new TreeNode();
                foreach (var pair in dic)
                {
                    //这里是跟原方法不同的地方
                    //rootId 等价于 expandId
                    //因为 当前方法的 根节点 非parentId=0的根节点,而是当前展开的节点,即此方法的rootId 等价于 expandId
                    if (pair.Key == rootId)
                    {
                        root = pair.Value;
                        continue;
                    }
                    var pid = pair.Value.ParentId;
                    if (dic.ContainsKey(pid))
                    {
                        var children = (List<TreeNode>)dic[pid].children;
                        children.Add(pair.Value);
                    }
                }
    
                //倒序 为每一层节点 设置type,设置顺序为:level从大到小
                var list4 = dic.Select(c => c.Value).OrderByDescending(c => c.Level);
                foreach (var c in list4)
                {
                    SetType(c);
                }
    
                //这里也和原来的不一样 返回的是root节点的孩子
                //当前root节点是已经加装的了 所以这里返回的是 未加载的孩子节点
                return (List<TreeNode>)root.children;
            }
    
            //设置 type图标
            public void SetType(TreeNode item)
            {
                // 叶子节点 且 编码不为空
                if (item.children.GetType() == typeof(List<TreeNode>))
                {
                    var children2 = (List<TreeNode>)item.children;
                    //当前节点为 叶子节点 且 该节点有编码
                    if ((children2.Count == 0) && !string.IsNullOrWhiteSpace(item.ComponentCode))
                    {
                        item.type = "nouser";
                    }
                    //当前节点为 非叶子节点 且 所有子节点都有图标
                    if ((children2.Count > 0))
                    {
                        var count = children2.Count(c => !string.IsNullOrWhiteSpace(c.type));
                        if (count == children2.Count)
                        {
                            item.type = "nouser";
                        }
                    }
                }
            }
    
            //删除三级节点
            public void Delete_ThreeLevel_Node(List<TreeNode> tree)
            {
                //删除节点
                for (int i = 0; i < tree.Count; i++)
                {
                    //遍历一级节点
                    var children1 = (List<TreeNode>)tree[i].children;
                    for (int j = 0; j < children1.Count; j++)
                    {
                        //遍历二级节点
                        var children2 = (List<TreeNode>)children1[j].children;
                        for (int k = 0; k < children2.Count; k++)
                        {
                            SetType(children2[k]);
                            var children3 = (List<TreeNode>)children2[k].children;
                            if (children3.Count > 0)
                            {
                                children2[k].children = true;//标识有孩子 但是不加载孩子
                            }
                        }
                        SetType(children1[j]);
                    }
                    SetType(tree[i]);
                }
            }
    
            //获取 DataTable
            public DataTable GetDataTable(string sql, params SqlParameter[] param)
            {
                string conStr = "data source=.\sqlexpress;initial catalog=TEST1;user id=sa;password=sa;";
                //string conStr = "data source=192.168.2.51; initial catalog=BIMManagerDb;user id=sa;password=Sql123456; ";
    
                DataTable dt = new DataTable();
                using (SqlConnection con = new SqlConnection(conStr))
                {
                    using (SqlDataAdapter adapter = new SqlDataAdapter(sql, con))
                    {
                        if (param != null)
                        {
                            adapter.SelectCommand.Parameters.AddRange(param);
                        }
                        adapter.Fill(dt);
                    }
                }
                return dt;
            }
    
            //对象 tree
            public class TreeNode
            {
                public TreeNode()
                {
                    children = new List<TreeNode>();
                }
                public int id { get; set; }
                public string text { get; set; }
                public string code { get; set; }
                public string type { get; set; }
                public object children { get; set; }
                public string ProjectCode { get; set; }
                public string ComponentCode { get; set; }
                public int ParentId { get; set; }
                public int Level { get; set; }
            }
        }
    }
    View Code

    SQL数据:

    USE [TEST1]
    GO
    /****** Object:  Table [dbo].[Projects8]    Script Date: 03/12/2020 10:34:22 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[Projects8](
        [Id] [int] NOT NULL,
        [ProjectName] [nvarchar](50) NOT NULL,
        [ProjectCode] [nvarchar](max) NULL,
        [ParentId] [int] NOT NULL,
        [ProjectOrder] [int] NULL,
        [IsEnabled] [int] NOT NULL,
        [OwnerId] [int] NULL,
        [ConstructionId] [int] NULL,
        [SupervisionId] [int] NULL,
        [ContractId] [int] NULL,
        [Level] [int] NULL,
        [Quantity] [int] NULL,
        [ComponentCode] [nvarchar](max) NULL,
        [NComponentCode] [nvarchar](max) NULL,
        [TaskStatus] [int] NOT NULL,
        [VersionIng] [nvarchar](max) NULL,
        [FbxId] [nvarchar](max) NULL,
        [Descrption] [nvarchar](max) NULL,
        [PileNumber] [nvarchar](max) NULL,
        [IsSubunit] [int] NULL,
        [BiDSion] [nvarchar](max) NULL,
        [ProjectType] [nvarchar](max) NULL,
        [EquCode] [nvarchar](max) NULL,
        [NextId] [int] NULL,
        [MileageNo] [nvarchar](max) NULL
    ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
    GO
    INSERT [dbo].[Projects8] ([Id], [ProjectName], [ProjectCode], [ParentId], [ProjectOrder], [IsEnabled], [OwnerId], [ConstructionId], [SupervisionId], [ContractId], [Level], [Quantity], [ComponentCode], [NComponentCode], [TaskStatus], [VersionIng], [FbxId], [Descrption], [PileNumber], [IsSubunit], [BiDSion], [ProjectType], [EquCode], [NextId], [MileageNo]) VALUES (510321, N'兰州中通道', N'01', 0, 1, 0, NULL, NULL, NULL, NULL, 1, NULL, N'', NULL, 0, N'0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
    INSERT [dbo].[Projects8] ([Id], [ProjectName], [ProjectCode], [ParentId], [ProjectOrder], [IsEnabled], [OwnerId], [ConstructionId], [SupervisionId], [ContractId], [Level], [Quantity], [ComponentCode], [NComponentCode], [TaskStatus], [VersionIng], [FbxId], [Descrption], [PileNumber], [IsSubunit], [BiDSion], [ProjectType], [EquCode], [NextId], [MileageNo]) VALUES (510322, N'一分部', N'01.01', 510321, 1, 0, NULL, NULL, NULL, NULL, 2, NULL, N'', NULL, 0, N'0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
    INSERT [dbo].[Projects8] ([Id], [ProjectName], [ProjectCode], [ParentId], [ProjectOrder], [IsEnabled], [OwnerId], [ConstructionId], [SupervisionId], [ContractId], [Level], [Quantity], [ComponentCode], [NComponentCode], [TaskStatus], [VersionIng], [FbxId], [Descrption], [PileNumber], [IsSubunit], [BiDSion], [ProjectType], [EquCode], [NextId], [MileageNo]) VALUES (510323, N'二分部', N'01.02', 510321, 2, 0, NULL, NULL, NULL, NULL, 2, NULL, N'', NULL, 0, N'0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
    INSERT [dbo].[Projects8] ([Id], [ProjectName], [ProjectCode], [ParentId], [ProjectOrder], [IsEnabled], [OwnerId], [ConstructionId], [SupervisionId], [ContractId], [Level], [Quantity], [ComponentCode], [NComponentCode], [TaskStatus], [VersionIng], [FbxId], [Descrption], [PileNumber], [IsSubunit], [BiDSion], [ProjectType], [EquCode], [NextId], [MileageNo]) VALUES (510324, N'三分部', N'01.03', 510321, 3, 0, NULL, NULL, NULL, NULL, 2, NULL, N'', NULL, 0, N'0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
    INSERT [dbo].[Projects8] ([Id], [ProjectName], [ProjectCode], [ParentId], [ProjectOrder], [IsEnabled], [OwnerId], [ConstructionId], [SupervisionId], [ContractId], [Level], [Quantity], [ComponentCode], [NComponentCode], [TaskStatus], [VersionIng], [FbxId], [Descrption], [PileNumber], [IsSubunit], [BiDSion], [ProjectType], [EquCode], [NextId], [MileageNo]) VALUES (510325, N'四分部', N'01.04', 510321, 4, 0, NULL, NULL, NULL, NULL, 2, NULL, N'', NULL, 0, N'0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
    INSERT [dbo].[Projects8] ([Id], [ProjectName], [ProjectCode], [ParentId], [ProjectOrder], [IsEnabled], [OwnerId], [ConstructionId], [SupervisionId], [ContractId], [Level], [Quantity], [ComponentCode], [NComponentCode], [TaskStatus], [VersionIng], [FbxId], [Descrption], [PileNumber], [IsSubunit], [BiDSion], [ProjectType], [EquCode], [NextId], [MileageNo]) VALUES (510326, N'五分部', N'01.05', 510321, 5, 0, NULL, NULL, NULL, NULL, 2, NULL, N'', NULL, 0, N'0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
    INSERT [dbo].[Projects8] ([Id], [ProjectName], [ProjectCode], [ParentId], [ProjectOrder], [IsEnabled], [OwnerId], [ConstructionId], [SupervisionId], [ContractId], [Level], [Quantity], [ComponentCode], [NComponentCode], [TaskStatus], [VersionIng], [FbxId], [Descrption], [PileNumber], [IsSubunit], [BiDSion], [ProjectType], [EquCode], [NextId], [MileageNo]) VALUES (510327, N'陈家湾大桥右幅', N'01.02.01', 510323, 1, 0, NULL, NULL, NULL, NULL, 3, NULL, N'', N'cjwdq', 0, N'单位工程', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
    INSERT [dbo].[Projects8] ([Id], [ProjectName], [ProjectCode], [ParentId], [ProjectOrder], [IsEnabled], [OwnerId], [ConstructionId], [SupervisionId], [ContractId], [Level], [Quantity], [ComponentCode], [NComponentCode], [TaskStatus], [VersionIng], [FbxId], [Descrption], [PileNumber], [IsSubunit], [BiDSion], [ProjectType], [EquCode], [NextId], [MileageNo]) VALUES (510328, N'0#台基础及下部构造', N'01.02.01.01', 510327, 1, 0, NULL, NULL, NULL, NULL, 4, NULL, N'', N'cjwdq', 0, N'0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
    INSERT [dbo].[Projects8] ([Id], [ProjectName], [ProjectCode], [ParentId], [ProjectOrder], [IsEnabled], [OwnerId], [ConstructionId], [SupervisionId], [ContractId], [Level], [Quantity], [ComponentCode], [NComponentCode], [TaskStatus], [VersionIng], [FbxId], [Descrption], [PileNumber], [IsSubunit], [BiDSion], [ProjectType], [EquCode], [NextId], [MileageNo]) VALUES (510329, N'桩基钢筋加工及安装', N'01.02.01.01.01', 510328, 1, 0, NULL, NULL, NULL, NULL, 5, NULL, N'', N'cjwdq', 0, N'0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
    INSERT [dbo].[Projects8] ([Id], [ProjectName], [ProjectCode], [ParentId], [ProjectOrder], [IsEnabled], [OwnerId], [ConstructionId], [SupervisionId], [ContractId], [Level], [Quantity], [ComponentCode], [NComponentCode], [TaskStatus], [VersionIng], [FbxId], [Descrption], [PileNumber], [IsSubunit], [BiDSion], [ProjectType], [EquCode], [NextId], [MileageNo]) VALUES (510330, N'0a-3桩基钢筋加工及安装', N'01.02.01.01.01.01', 510329, 1, 0, NULL, NULL, NULL, NULL, 6, NULL, N'aec-80427915-000052273', N'cjwdq', 0, N'0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
    INSERT [dbo].[Projects8] ([Id], [ProjectName], [ProjectCode], [ParentId], [ProjectOrder], [IsEnabled], [OwnerId], [ConstructionId], [SupervisionId], [ContractId], [Level], [Quantity], [ComponentCode], [NComponentCode], [TaskStatus], [VersionIng], [FbxId], [Descrption], [PileNumber], [IsSubunit], [BiDSion], [ProjectType], [EquCode], [NextId], [MileageNo]) VALUES (510331, N'0a-4桩基钢筋加工及安装', N'01.02.01.01.01.02', 510329, 2, 0, NULL, NULL, NULL, NULL, 6, NULL, N'aec-80427915-000052278', N'cjwdq', 0, N'0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
    INSERT [dbo].[Projects8] ([Id], [ProjectName], [ProjectCode], [ParentId], [ProjectOrder], [IsEnabled], [OwnerId], [ConstructionId], [SupervisionId], [ContractId], [Level], [Quantity], [ComponentCode], [NComponentCode], [TaskStatus], [VersionIng], [FbxId], [Descrption], [PileNumber], [IsSubunit], [BiDSion], [ProjectType], [EquCode], [NextId], [MileageNo]) VALUES (510332, N'0a-5桩基钢筋加工及安装', N'01.02.01.01.01.03', 510329, 3, 0, NULL, NULL, NULL, NULL, 6, NULL, N'aec-80427915-000052286', N'cjwdq', 0, N'0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
    INSERT [dbo].[Projects8] ([Id], [ProjectName], [ProjectCode], [ParentId], [ProjectOrder], [IsEnabled], [OwnerId], [ConstructionId], [SupervisionId], [ContractId], [Level], [Quantity], [ComponentCode], [NComponentCode], [TaskStatus], [VersionIng], [FbxId], [Descrption], [PileNumber], [IsSubunit], [BiDSion], [ProjectType], [EquCode], [NextId], [MileageNo]) VALUES (510333, N'0b-3桩基钢筋加工及安装', N'01.02.01.01.01.04', 510329, 4, 0, NULL, NULL, NULL, NULL, 6, NULL, N'aec-80427915-000052280', N'cjwdq', 0, N'0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
    INSERT [dbo].[Projects8] ([Id], [ProjectName], [ProjectCode], [ParentId], [ProjectOrder], [IsEnabled], [OwnerId], [ConstructionId], [SupervisionId], [ContractId], [Level], [Quantity], [ComponentCode], [NComponentCode], [TaskStatus], [VersionIng], [FbxId], [Descrption], [PileNumber], [IsSubunit], [BiDSion], [ProjectType], [EquCode], [NextId], [MileageNo]) VALUES (510334, N'0b-4桩基钢筋加工及安装', N'01.02.01.01.01.05', 510329, 5, 0, NULL, NULL, NULL, NULL, 6, NULL, N'aec-80427915-000052284', N'cjwdq', 0, N'0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
    INSERT [dbo].[Projects8] ([Id], [ProjectName], [ProjectCode], [ParentId], [ProjectOrder], [IsEnabled], [OwnerId], [ConstructionId], [SupervisionId], [ContractId], [Level], [Quantity], [ComponentCode], [NComponentCode], [TaskStatus], [VersionIng], [FbxId], [Descrption], [PileNumber], [IsSubunit], [BiDSion], [ProjectType], [EquCode], [NextId], [MileageNo]) VALUES (510335, N'0b-5桩基钢筋加工及安装', N'01.02.01.01.01.06', 510329, 6, 0, NULL, NULL, NULL, NULL, 6, NULL, N'aec-80427915-000052285', N'cjwdq', 0, N'0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
    INSERT [dbo].[Projects8] ([Id], [ProjectName], [ProjectCode], [ParentId], [ProjectOrder], [IsEnabled], [OwnerId], [ConstructionId], [SupervisionId], [ContractId], [Level], [Quantity], [ComponentCode], [NComponentCode], [TaskStatus], [VersionIng], [FbxId], [Descrption], [PileNumber], [IsSubunit], [BiDSion], [ProjectType], [EquCode], [NextId], [MileageNo]) VALUES (510336, N'桩基砼浇筑', N'01.02.01.01.02', 510328, 2, 0, NULL, NULL, NULL, NULL, 5, NULL, N'', N'cjwdq', 0, N'0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
    INSERT [dbo].[Projects8] ([Id], [ProjectName], [ProjectCode], [ParentId], [ProjectOrder], [IsEnabled], [OwnerId], [ConstructionId], [SupervisionId], [ContractId], [Level], [Quantity], [ComponentCode], [NComponentCode], [TaskStatus], [VersionIng], [FbxId], [Descrption], [PileNumber], [IsSubunit], [BiDSion], [ProjectType], [EquCode], [NextId], [MileageNo]) VALUES (510337, N'0a-3桩基砼浇筑', N'01.02.01.01.02.01', 510336, 1, 0, NULL, NULL, NULL, NULL, 6, NULL, N'aec-80427915-000052273', N'cjwdq', 0, N'0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
    INSERT [dbo].[Projects8] ([Id], [ProjectName], [ProjectCode], [ParentId], [ProjectOrder], [IsEnabled], [OwnerId], [ConstructionId], [SupervisionId], [ContractId], [Level], [Quantity], [ComponentCode], [NComponentCode], [TaskStatus], [VersionIng], [FbxId], [Descrption], [PileNumber], [IsSubunit], [BiDSion], [ProjectType], [EquCode], [NextId], [MileageNo]) VALUES (510338, N'0a-4桩基砼浇筑', N'01.02.01.01.02.02', 510336, 2, 0, NULL, NULL, NULL, NULL, 6, NULL, N'aec-80427915-000052278', N'cjwdq', 0, N'0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
    INSERT [dbo].[Projects8] ([Id], [ProjectName], [ProjectCode], [ParentId], [ProjectOrder], [IsEnabled], [OwnerId], [ConstructionId], [SupervisionId], [ContractId], [Level], [Quantity], [ComponentCode], [NComponentCode], [TaskStatus], [VersionIng], [FbxId], [Descrption], [PileNumber], [IsSubunit], [BiDSion], [ProjectType], [EquCode], [NextId], [MileageNo]) VALUES (510339, N'0a-5桩基砼浇筑', N'01.02.01.01.02.03', 510336, 3, 0, NULL, NULL, NULL, NULL, 6, NULL, N'aec-80427915-000052286', N'cjwdq', 0, N'0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
    INSERT [dbo].[Projects8] ([Id], [ProjectName], [ProjectCode], [ParentId], [ProjectOrder], [IsEnabled], [OwnerId], [ConstructionId], [SupervisionId], [ContractId], [Level], [Quantity], [ComponentCode], [NComponentCode], [TaskStatus], [VersionIng], [FbxId], [Descrption], [PileNumber], [IsSubunit], [BiDSion], [ProjectType], [EquCode], [NextId], [MileageNo]) VALUES (510340, N'0b-3桩基砼浇筑', N'01.02.01.01.02.04', 510336, 4, 0, NULL, NULL, NULL, NULL, 6, NULL, N'aec-80427915-000052280', N'cjwdq', 0, N'0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
    INSERT [dbo].[Projects8] ([Id], [ProjectName], [ProjectCode], [ParentId], [ProjectOrder], [IsEnabled], [OwnerId], [ConstructionId], [SupervisionId], [ContractId], [Level], [Quantity], [ComponentCode], [NComponentCode], [TaskStatus], [VersionIng], [FbxId], [Descrption], [PileNumber], [IsSubunit], [BiDSion], [ProjectType], [EquCode], [NextId], [MileageNo]) VALUES (510341, N'0b-4桩基砼浇筑', N'01.02.01.01.02.05', 510336, 5, 0, NULL, NULL, NULL, NULL, 6, NULL, N'aec-80427915-000052284', N'cjwdq', 0, N'0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
    INSERT [dbo].[Projects8] ([Id], [ProjectName], [ProjectCode], [ParentId], [ProjectOrder], [IsEnabled], [OwnerId], [ConstructionId], [SupervisionId], [ContractId], [Level], [Quantity], [ComponentCode], [NComponentCode], [TaskStatus], [VersionIng], [FbxId], [Descrption], [PileNumber], [IsSubunit], [BiDSion], [ProjectType], [EquCode], [NextId], [MileageNo]) VALUES (510342, N'0b-5桩基砼浇筑', N'01.02.01.01.02.06', 510336, 6, 0, NULL, NULL, NULL, NULL, 6, NULL, N'aec-80427915-000052285', N'cjwdq', 0, N'0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
    View Code
  • 相关阅读:
    VMware workstation中安装Ubuntu18.04server
    python一行命令安装chromedriver
    vim配置&相关问题
    博客园美化
    期望DP——HDU4035Maze
    [学习笔记]虚树
    线段树——51nod1593&CF515E 公园晨跑
    [STL] multiset
    [学习笔记] 线性基
    泛化物品优化树型DP——[HAOI2010]软件安装
  • 原文地址:https://www.cnblogs.com/guxingy/p/12469383.html
Copyright © 2011-2022 走看看