Foxtable(狐表)用户栏目专家坐堂 → 用微信扫电子fa piao,如何把数据传到狐表中?


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

主题:用微信扫电子fa piao,如何把数据传到狐表中?

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


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

生成网页的代码的地方

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


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

要提交数据,然后还要有代码接收数据:http://www.foxtable.com/mobilehelp/scr/0055.htm

建议把移动开发帮助的例子都试试,理解一下基础的概念

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


加好友 发短信
等级:超级版主 帖子:106209 积分:540168 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2017/11/25 8:53:00 [显示全部帖子]

Dim fl As String = ProjectPath & "web\" & e.path
Dim path As String = "foxtableAppTest"

If filesys.FileExists(fl)
    Dim idx As Integer = fl.LastIndexOf(".")
    Dim ext As String  = fl.SubString(idx)
    Select Case ext
        Case ".jpg",".gif",".png",".bmp",".wmf",".js",".css" ,".html",".htm",".zip",".rar",".txt"
            e.WriteFile(fl)
            Return '这里必须返回
    End Select
End If

Select Case e.path
    Case "test.htm"
        If e.PostValues.count = 0 Then
            Dim wb As new weui
            wb.AppendHTML("<script type='text/javascript' src='/" & path & "/js/common.js'></script>", True)
            wb.AppendHTML("<link rel='stylesheet' href='/" & path & "/css/common.css' Type='text/css' charset='utf-8'/>", True)
            
            wb.AddForm("","form1","test.htm")
            With wb.AddInputGroup("form1","ipg1","测试")
                .AddInput("姓名","姓名","Text")
                .AddInput("年龄","年龄","text")
            End With
            
            With wb.AddButtonGroup("form1","btg1",True)
                .Add("btn1", "扫一扫", "button").Attribute = "onclick=""clicked('"  & path & "/plus/barcode_scan.html',True,True);"""
            End With
            
            wb.InsertHTML("<script>function scaned( t, r, f ) {document.getElementById('年龄').value=r;}</script>")
            '  wb.InsertHTML("<script>function scaned( t, r, f ) {plus.nativeUI.alert('扫描返回的信息如:\n编码:' + t + '\n内容:' + r + '\n图片存放路径(在手机端):' + f);}</script>")
            e.WriteString(wb.Build)
            
        Else
            Tables("表A").current("第一列")=e.PostValues("姓名")
            Tables("表A").current("第二列")=e.PostValues("年龄")
            Dim sb As New StringBuilder
            sb.AppendLine("<meta name='viewport' c>")
            sb.AppendLine("接收到的数据有:<br/><br/>")
            For Each key As String In e.PostValues.Keys
                sb.AppendLine(key & ":" & e.PostValues(key) & "<br/>")
            Next
            e.WriteString(sb.ToString)
        End If
End Select

 回到顶部