Foxtable(狐表)用户栏目专家坐堂 → 多选目录树


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

主题:多选目录树

帅哥,在线噢!
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:106674 积分:542559 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2018/11/10 14:40:00 [只看该作者]

按钮代码

Dim s As String = ""
Dim trv As WinForm.TreeView = e.Form.Controls("TreeView1")
For Each nd As WinForm.TreeNode In trv.AllNodes
    If nd.Checked Then
        If nd.Level = 1 Then
            e.Form.DropTable.Current("发证机构") = nd.ParentNode .Text
            e.Form.DropDownBox.Value = nd.Text
        ElseIf nd.Level = 2 Then 
            s = s & "," & nd.Text
        End If
    End If
Next
e.Form.DropTable.Current("符合资质焊工") = s.trim(",")
e.Form.DropDownBox.CloseDropdown

 回到顶部
总数 30 1 2 3 下一页