Foxtable(狐表)用户栏目专家坐堂 → 目录树列表问题


  共有17544人关注过本帖树形打印复制链接

主题:目录树列表问题

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


加好友 发短信
等级:三尾狐 帖子:734 积分:5645 威望:0 精华:0 注册:2008/9/6 11:22:00
  发帖心情 Post By:2010/10/24 20:05:00 [显示全部帖子]

窗口treeview的 节点名称 name 怎么产生的是乱码


 回到顶部
帅哥哟,离线,有人找我吗?
小狐
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:三尾狐 帖子:734 积分:5645 威望:0 精华:0 注册:2008/9/6 11:22:00
  发帖心情 Post By:2010/10/24 20:06:00 [显示全部帖子]

  If vars("str100") = "根" Then
    Dim chk As WinForm.CheckBox
    chk = e.Form.Controls("CheckBox1")
    If chk.Checked = True Then
        Dim tr As WinForm.TreeView
        Dim nd As WinForm.TreeNode
        tr = Forms("参数设置").Controls("TreeView1")
       
        Dim i1 AS Integer
        Dim i2 AS Integer
        Dim str1 As String
       
        i1 = DataTables("单位树").Compute("count(节点)","节点 = 0") + 1
       
        str1 = format(i1,"00")
        Dim txtBox As WinForm.TextBox
        txtBox = e.Form.Controls("TextBox1")
        nd = Tr.Nodes.Add(str1,txtBox.value)
        tr.SelectedNode = nd
       
        Dim 新行1 As DataRow
        新行1 = DataTables("单位树").AddNew()
        新行1("标题id") = str1
        新行1("标题") = txtbox.Value
        新行1("节点") = 0
        新行1("节点位") = i1
        txtBox.value = ""
        txtBox.Select()
    Else
        Dim tr As WinForm.TreeView
        Dim nd As WinForm.TreeNode
        tr = Forms("参数设置").Controls("TreeView1")
       
       
        Dim i1 AS Integer
        Dim i2 AS Integer
        Dim str1 As String
       
       
        i1 = DataTables("单位树").Compute("count(节点)","节点 = 0") + 1
       
        str1 = format(i1,"00")
        Dim txtBox As WinForm.TextBox
        txtBox = e.Form.Controls("TextBox1")
        nd = Tr.Nodes.Add(str1,txtBox.value)
        tr.SelectedNode = nd
       
       
        Dim 新行1 As DataRow
        新行1 = DataTables("单位树").AddNew()
        新行1("标题id") = str1
        新行1("标题") = txtbox.Value
        新行1("节点") = 0
        新行1("节点位") = i1
       
       
       
        txtBox.value = ""
        e.form.Close()
    End If
Else
    Dim chk As WinForm.CheckBox
    chk = e.Form.Controls("CheckBox1")
    If chk.Checked = True Then
        Dim tr As WinForm.TreeView
        Dim nd As WinForm.TreeNode
        tr = Forms("参数设置").Controls("TreeView1")
       
       
        Dim i1 AS Integer
        Dim i2 AS Integer
        Dim str1 AS String
        Dim str2 AS String
        nd=tr.SelectedNode
        str1 = nd.name
        i2=nd.Level+1
        i1 = DataTables("单位树").Compute("count(节点)"," 标题ID like '" & str1 & "'") + 1
       
       
       
        str2 = format(i1,"00")
        Dim txtBox As WinForm.TextBox
        txtBox = e.Form.Controls("TextBox1")
        nd.Nodes.Add( str1 & str2 ,txtBox.value)
       
       
        Dim 新行1 As DataRow
        新行1 = DataTables("单位树").AddNew()
        新行1("标题id") = str1 & str2
        新行1("标题") = txtbox.Value
        新行1("节点") = i2
        新行1("节点位") = i1
       
       
       
       
       
        txtBox.value = ""
        txtBox.Select()
        nd = tr.SelectedNode
        nd.Expand()
    Else
        Dim tr As WinForm.TreeView
        Dim nd As WinForm.TreeNode
        tr = Forms("参数设置").Controls("TreeView1")
       
       
        Dim i1 AS Integer
        Dim i2 AS Integer
        Dim str1 AS String
        Dim str2 AS String
        nd=tr.SelectedNode
        str1 = nd.name
        i2=nd.Level+1
       
        i1 = DataTables("单位树").Compute("count(节点)","标题id like '" & str1 & "'") + 1
       
       
       
        str2 = format(i1,"00")
        Dim txtBox As WinForm.TextBox
        txtBox = e.Form.Controls("TextBox1")
        nd.Nodes.Add( str1 & str2 ,txtBox.value)
       
       
        Dim 新行1 As DataRow
        新行1 = DataTables("单位树").AddNew()
        新行1("标题id") = str1 & str2
        新行1("标题") = txtbox.Value
        新行1("节点") = i2
        新行1("节点位") = i1
       
       
       
        txtBox.value = ""
        nd = tr.SelectedNode
        nd.Expand()
        e.form.Close()
    End If
End If

 

 


 回到顶部
帅哥哟,离线,有人找我吗?
小狐
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:三尾狐 帖子:734 积分:5645 威望:0 精华:0 注册:2008/9/6 11:22:00
  发帖心情 Post By:2010/10/24 20:10:00 [显示全部帖子]


图片点击可在新窗口打开查看此主题相关图片如下:未标题-1 拷贝.jpg
图片点击可在新窗口打开查看

 回到顶部