Foxtable(狐表)用户栏目专家坐堂 → 整体复制表,修改原表后,复制表不是修改,而是新添加一行,如何调整?


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

主题:整体复制表,修改原表后,复制表不是修改,而是新添加一行,如何调整?

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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2017/12/5 9:02:00 [显示全部帖子]

 

If e.DataCol.name = "项目id" Then
    e.DataRow.save
    systemready = False
    Dim Cols7() As String ={"技术措施ID","措施名称","单位","数量","单价","金额","项目ID"}
    Dim Cols8() As String ={"技术措施ID","措施名称","单位","数量","单价","金额","项目ID"}
    For Each dr1 As DataRow In DataTables("技术措施费").Select("项目ID= '" & e.DataRow("项目ID") & "'")
        Dim dr2 As DataRow = DataTables("措施明细").find("项目ID= '" & dr1("项目ID") & "' and 技术措施ID= '" & dr1("技术措施ID") & "'")
        If dr2 Is Nothing Then dr2 = DataTables("措施明细").AddNew()
        For i As Integer = 0 To Cols7.Length -1
            dr2(Cols8(i)) = dr1(Cols7(i))
        Next
        dr2("统计id") = e.DataRow("_Identify")
    Next
    systemready = True
End If


 回到顶部