Foxtable(狐表)用户栏目专家坐堂 → 直接根据单号链接去打开网页问题!


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

主题:直接根据单号链接去打开网页问题!

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


加好友 发短信
等级:三尾狐 帖子:721 积分:6391 威望:0 精华:0 注册:2011/6/26 11:45:00
直接根据单号链接去打开网页问题!  发帖心情 Post By:2018/7/23 11:28:00 [只看该作者]

我想直接用链接去打开这个页面,老是显示空白。帮看看代码有没有问题。
http://wx.e-gain.com.cn/dredit1.htm?droid=M1807002




Dim e As RequestEventArgs = args(0)
Dim wb As New weui
Dim droid As String = e.GetValues("droid")
Dim url = "dredit1.htm?droid="&droid
Dim murl = "drlist.htm"
If e.PostValues.Count = 0 Then '生成编辑页面
    Dim dr As DataRow = DataTables("appm").SQLFind("[RCId] = " & droid)
       If dr IsNot Nothing Then
        wb.AddForm("","form1",url)
        With wb.AddInputGroup("form1","ipg1","派车单")
            With .AddInput("RCId","单号","text")
                .Value = dr("RCId")
                .Readonly= True
            End With
            With .AddInput("st","出发时间","text")
                .Value = dr("st")
                .Readonly= True
            End With
            With .AddTextArea("用车人")
                .Value =dr("namelist")
                .Readonly = True
            End With
            With .AddTextArea("目的地")
                .Value =dr("allad")
                .Readonly = True
            End With
            ' -------------------------------------------------------------------------------------以下为司机输入内容
            With .AddInput("skm","起始里程","text")
                .Value = dr("skm")
            End With
            With .AddInput("ekm","结束里程","text")
                .Value = dr("ekm")
            End With
            With .AddInput("dfee","其它费用","number")
                .Step = "0.01"
                .Placeholder = "此处输入费用金额"
            End With
            With .AddInput("vcfee","洗车费用","number")
                .Step = "0.01"
                .Placeholder = "此处仅输入洗车的费用金额"
            End With
            
           
        End With
        With wb.AddButtonGroup("form1","btg1",True)
            .Add("btn1", "确定", "submit")
        End With
    
    End If
Else
    Dim dr As DataRow = DataTables("appm").SQLFind("[RCId] =" & droid)
    If dr IsNot Nothing Then
        Dim nms() As String = {"skm","ekm","dfee","vcfee"}
        For Each nm As String In nms
            dr(nm) = e.PostValues(nm)
        Next
        dr.Save()
        '显示完成提示,2妙手自动返回原来的页面
        wb.AppendHtml("<meta http-equiv='refresh' c>",True)
        wb.AddToast("","t1", "处理完成",0).Visible = True
    Else
        With wb.AddMsgPage("","msgpage","保存失败", "此项记录可能已经被删除!") '提示用户此订单不存在.
            .icon= "Warn"
            .AddButton("btn1","返回",murl) '生成返回原来页面的按钮
        End With
    End If
End If
e.WriteString(wb.Build) '生成网页

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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/7/23 11:49:00 [只看该作者]

1、

 

If e.PostValues.Count = 0 Then '生成编辑页面

 

改成

 

If e.Values.Count = 0 Then '生成编辑页面

 

2、你代码那里加入msgbox,看能否弹出你需要的那些值。要学会自己调试代码。


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


加好友 发短信
等级:三尾狐 帖子:721 积分:6391 威望:0 精华:0 注册:2011/6/26 11:45:00
  发帖心情 Post By:2018/7/23 14:29:00 [只看该作者]

好的!我已经调试过,并找出原因了!谢谢甜版

 回到顶部