Пример #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);
        }