Foxtable(狐表)用户栏目专家坐堂 → [求助] 复选框目录树 增加节点


  共有10207人关注过本帖平板打印复制链接

主题:[求助] 复选框目录树 增加节点

帅哥哟,离线,有人找我吗?
mr725
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信 一级勋章
等级:MVP荣誉狐 帖子:5154 积分:31434 威望:0 精华:8 注册:2008/9/8 12:27:00
  发帖心情 Post By:2012/7/16 0:19:00 [只看该作者]

Dim trv As WinForm.TreeView = e.Sender
Dim flt,a,b,c As String
For Each nd As WinForm.TreeNode In e.node.Nodes '同步子节点选中状态
    nd.Checked = e.Node.Checked
Next
If e.node.ParentNode IsNot Nothing Then '去掉父节点选中状态
    e.node.ParentNode.Checked = False
End If
Dim ndf As WinForm.TreeNode = trv.SelectedNode
If ndf IsNot Nothing Then   
    If ndf.Checked Then
        If ndf.Level = 0 Then '注意下面的条件都要用括号括起来
            a = ndf.Text
            flt = " 审核 = '" & a & "'"
        End If
        If ndf.Level = 1 Then
            a = ndf.ParentNode.text
            b = ndf.Text
            flt = "审核 = '" & a & "' And 客户 = '" & b & "'"
        End If        
        If ndf.Level = 2 Then
            Dim pth() As String = ndf.FullPath.Split("\")
            a = pth(0)
            b = pth(1)
            c = ndf.Text
            flt = "审核 = '" & a & "' And 客户 = '" & b & "' And 款号= '" & c & "'"
        End If
    End If
End If 

    Tables("订单标准").Filter = flt


 回到顶部
总数 20 1 2 下一页