private void BindTree() { this.tvMenu.Nodes.Clear(); FunctionController controller = new FunctionController(); DataSet dstMenu = controller.QueryFunctions(this.txtQueryFunCode.Text.Trim(), this.txtQueryFunName.Text.Trim()); TreeNode node = new TreeNode(); node.Text = "系统功能"; node.Value = "0"; node.NavigateUrl = ""; this.tvMenu.Nodes.Add(node); if (dstMenu != null && dstMenu.Tables[0].Rows.Count > 0) { this.BindChildNode(dstMenu, node); } this.tvMenu.ExpandAll(); }