Foxtable(狐表)用户栏目专家坐堂 → 批量复制列到表b


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

主题:批量复制列到表b

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


加好友 发短信
等级:超级版主 帖子:105948 积分:538809 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2020/6/3 10:38:00 [显示全部帖子]


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


加好友 发短信
等级:超级版主 帖子:105948 积分:538809 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2020/6/4 9:00:00 [显示全部帖子]

For Each dr1 As DataRow In dataTables("窗口1_Table1").datarows ’可以是窗口控件的表格吗?
    Dim dr2 As DataRow = DataTables("表B").AddNew()
        'dr2(dc.Name) = dr1(dc.name)
        dr2("型号")=dr1("第一列")
        dr2("采购价格")=dr1("单价")
        dr2("状态")=e.form.controls("ComboBox1").text
        dr2("合同号")=e.form.controls("TextBox2").text
Next

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


加好友 发短信
等级:超级版主 帖子:105948 积分:538809 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2020/6/4 22:05:00 [显示全部帖子]

For Each dr1 As Row In Tables("窗口1_Table1").rows

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


加好友 发短信
等级:超级版主 帖子:105948 积分:538809 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2020/6/4 22:41:00 [显示全部帖子]

http://www.foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=144412&replyID=44997&skin=1

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


加好友 发短信
等级:超级版主 帖子:105948 积分:538809 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2020/6/7 20:43:00 [显示全部帖子]

Dim t As Table = e.Form.Controls("Table1").Table
For Each r As Row In t.GetCheckedRows
    If lst.contains(r("_Identify")) = False
        lst.Add(r("_Identify"))
    End If
Next
Dim s As String = ""
For Each r As Row In Tables("窗口1_Table1").GetCheckedRows
    s =s & "," & r("_Identify")
Next
s = s.Trim(",")
t.Filter = "[_Identify] in (" & s & ")"

For Each r As Row In t.Rows
    If lst.Contains(r("_Identify")) Then
        r.Checked  = True
    End If
Next

 回到顶部