以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- [求助]目录树加载后台数据 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=71445) |
-- 作者:新航程小何 -- 发布时间:2015/7/11 11:34:00 -- [求助]目录树加载后台数据 各位老师,我想实现通过目录树后台加载数据,写了如下代码,结果出现截图错误 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("园区名称") & "\'" Case 1 Filter = "[园区名称] = \'" & dr("园区名称") & "\' And [地块名称] = \'" & dr("地块名称") & "\' " Case 2 Filter = "[园区名称] = \'" & dr("园区名称") & "\' And [地块名称] = \'" & dr("地块名称") & "\' And [监测点] = \'" & dr("监测点") & "\'" End Select End If DataTables("监控数据").LoadFilter = Filter DataTables("监控数据").Load() |
-- 作者:狐狸爸爸 -- 发布时间:2015/7/11 11:39:00 -- 做个例子发上来 |