コード例 #1
0
        /// <summary>
        /// 绑定Grid数据
        /// </summary>
        private void BindTreeList()
        {
            treeList1.Nodes.Clear();
            DataTable dt = this.GetTreeListTable();

            ProcessTreeList.BindTreeList(dt, treeList1, "ID", "ParentID", 1, true);
        }
コード例 #2
0
        /// <summary>
        /// 绑定TreeList
        /// </summary>
        private void BindTreeList()
        {
            //treeList1.Nodes.Clear();
            DataTable dt = GetTreeListTable();

            ProcessTreeList.BindTreeList(dt, treeList1, "MenuID", "ParentID", 0, false);
        }
コード例 #3
0
        /// <summary>
        /// 绑定Grid数据
        /// </summary>
        private void BindTreeList()
        {
            treeList1.Nodes.Clear();
            StructureRule rule = new StructureRule();
            //DataTable dt =rule.RShow(" ORDER BY ParentID,Code", ProcessTreeList.GetQueryField(treeList1));
            DataTable dt = SysUtils.Fill("EXEC USP1_Data_Stucture_Get");

            ProcessTreeList.BindTreeList(dt, treeList1, "ID", "ParentID", 7, true);
        }
コード例 #4
0
        /// <summary>
        /// 绑定TreeList
        /// </summary>
        private void BindTreeListAll()
        {
            DataTable dt = GetTreeListTable();

            ProcessTreeList.BindTreeList(dt, treeList2, "MenuID", "ParentID", 0, true);
        }