Foxtable(狐表)用户栏目专家坐堂 → 附件承接


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

主题:附件承接

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


加好友 发短信
等级:五尾狐 帖子:1093 积分:6682 威望:0 精华:0 注册:2013/7/1 9:05:00
  发帖心情 Post By:2019/8/20 14:38:00 [显示全部帖子]

1、可以通过下面的属性返回选定的文件:
http://www.foxtable.com/webhelp/topics/1899.htm

2、实际上不是复制到控件2,而是复制到控件2所绑定的列,复制的代码类似:

Dim fl1 As WinForm.FileManager = e.Form.Controls("FileManager1")
Dim fl2 As WinForm.FileManager = e.Form.Controls("FileManager2")
If fl1.SelectedItem IsNot Nothing Then
    Dim file1 As String = ProjectPath  + "Attachments\" & fl1.SelectedItem
    Dim file2 As String = ProjectPath  + "Attachments\" & e.Form.Controls("姓名") & e.Form.Controls("任务") & System.IO.Path.GetExtension(file1)
    FileSys.CopyFile(file1,file2,True)
    Dim r As Row  = Tables("xxx").Current
    If r.IsNull("第二列") Then
        r("第二列") = e.Form.Controls("姓名") & e.Form.Controls("任务") & System.IO.Path.GetExtension(file1)
    Else
        r("第二列") = r("第二列") &  vbcrlf & e.Form.Controls("姓名") & e.Form.Controls("任务") & System.IO.Path.GetExtension(file1)
    End If
End If





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


加好友 发短信
等级:五尾狐 帖子:1093 积分:6682 威望:0 精华:0 注册:2013/7/1 9:05:00
  发帖心情 Post By:2019/8/20 15:29:00 [显示全部帖子]

e.Form.Controls("下达人员1") .Value
e.Form.Controls("任务编码1").Value

如果是远程,无法直接在客户端复制文件,除非你下载再上传,但效率太低,建议设计OpenQQ服务端程序,客户端发送信号给服务端,让服务端完成复制工作。

 回到顶部