--
Dim Filter As String
If e.node.Text = "加载所有数据" Then
Filter = "[状态] <> \'关闭\'"
Else
Dim dr As DataRow = e.Node.DataRow \'获取生成此节点的DataRow
Select Case e.Node.Level
Case 0
Filter = "[业务] = \'" & dr("业务") & "\'And [状态] <> \'关闭\'"
\'MessageBox.Show(Filter)
Case 1
Filter = "[业务] = \'" & dr("业务") & "\' And [客户代号] = \'" & dr("客户代号") & "\' And [状态] <> \'关闭\'"
\'MessageBox.Show(Filter)
End Select
End If
DataTables("项目总表").LoadOrder = "建档日期 Desc"
DataTables("项目总表").LoadFilter = Filter
DataTables("项目总表").Load()