/// <summary>
        /// 设置树的值
        /// </summary>
        /// <returns></returns>
        private void SetTreeValue(TreeNode pnode, string power)
        {
            StringBuilder sb = new StringBuilder();

            foreach (TreeNode node in (pnode == null ? TreeView1.Nodes : pnode.Nodes))
            {
                if (node.Name == "工单处理")
                {
                    int d = 0;
                }
                if (power.IndexOf("," + node.Tag.ToString() + ",") >= 0)
                {
                    TreeView1.SetTreeNodeCheckBoxChecked(node, true);
                }
                else
                {
                    TreeView1.SetTreeNodeCheckBoxChecked(node, false);
                }
                if (node.Nodes.Count > 0)
                {
                    SetTreeValue(node, power);
                }
            }
        }