Dim tr As WinForm.TreeView = e.Form.Controls("TreeView1")
Dim nd As WinForm.TreeNode
Dim dt As DataTable = DataTables("客户信息")
tr.StopRedraw()
tr.Nodes.Clear
nd = tr.Nodes.Insert("返回","返回",0)
If _username = "admin" Or _usergroup = "经理" Then
nd = tr.Nodes.Add("客户信息" ,"客户信息")
tr.BuildDataTree("客户信息" , "[审核情况] = 1" , "项目组" , "基金名称" , "年度")
nd = tr.Nodes.Add("未审核客户信息","未审核客户信息")
tr.BuildDataTree("客户信息" , "[审核情况] = 0" , "项目组" , "基金名称" , "年度")
End If
If _usergroup = "录入员" Then
nd = tr.Nodes.Add("客户信息" ,"客户信息")
tr.BuildDataTree("客户信息" , "[审核情况] = 1 and [录入人] = '" & _username & "'" , "项目组" , "基金名称" , "年度")
nd = tr.Nodes.Add("未审核客户信息","未审核客户信息")
tr.BuildDataTree("客户信息" , "[审核情况] = 0 and [录入人] = '" & _username & "'" , "项目组" , "基金名称" , "年度")
End If
If _usergroup = "查询员" Then
nd = tr.Nodes.Add("客户信息" ,"客户信息")
tr.BuildDataTree("客户信息" , "[审核情况] = 1" , "项目组" , "基金名称" , "年度")
End If
nd.ExpandAll
tr.ResumeRedraw()
请帮我看看,结点生成不好。
nd = tr.Nodes.Insert("返回","返回",0)
这个返回结点也生成不了。
[此贴子已经被作者于2013-8-29 10:36:47编辑过]