Foxtable(狐表)用户栏目专家坐堂 → [求助]图片


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

主题:[求助]图片

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


加好友 发短信
等级:五尾狐 帖子:1005 积分:5955 威望:0 精华:0 注册:2015/6/18 5:15:00
  发帖心情 Post By:2016/9/29 15:03:00 [只看该作者]

If e.DataCol.Name = "piao据号码" Then
    If e.NewValue Is Nothing Then
        e.DataRow("piao据原件") = Nothing
    Else
        Dim dr As DataRow
        dr = DataTables("应收款").Find("[piao据号码] = '" & e.NewValue & "'")
        If dr IsNot Nothing
            e.DataRow("piao据原件") = dr("piao据原件")
            Dim path As String
            If DataTables("应收款").DataCols("piao据原件").DefaultFolder  > "" Then
                path = DataTables("应收款").DataCols("piao据原件").DefaultFolder.trim("\")
            Else
                path = ProjectPath & "Attachments"
            End If
            Dim path2 As String
            If e.DataTable.DataCols("piao据原件").DefaultFolder > "" Then
                path2 = e.DataTable.DataCols("piao据原件").DefaultFolder.trim("\")
            Else
                path2 = ProjectPath & "Attachments\"
            End If
            For Each s As String In e.DataRow.Lines("piao据原件")
                If FileSys.FileExists(path & "\" & s) Then
                    FileSys.CopyFile(path & "\" & s, path2 & "\" & s, True)
                End If
            Next
        End If
    End If
End If

老师,删除标出的把代码添加进去,是吗。添不进啊。





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