Foxtable(狐表)用户栏目专家坐堂 → 首页网址连接


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

主题:首页网址连接

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


加好友 发短信
等级:八尾狐 帖子:1837 积分:5081 威望:0 精华:0 注册:2017/11/8 17:37:00
首页网址连接  发帖心情 Post By:2024/5/14 11:39:00 [只看该作者]

  '第80到第94行代码用于生成首页。      
    Case "", "default.htm" '首页
        wb.AddPageTitle("", "pageheader", "智能管理系统", "由二八科技有限公司开发")
        With wb.AddGrid("", "g1")
            .Add("c1", "销售开单", "./images/button.png").Attribute = ""
            .Add("c2", "采购入库", "./images/cell.png", "AddNew.htm")            
            .Add("c15", "退出", "./images/exit.png", "exit.htm") '退出登录
        End With
        '第80到第94行代码用于生成首页。
End Select
e.WriteString(wb.Build) '生成网页


下面二句的网址这样写可以吗?
.Add("c2", "采购入库", "./images/cell.png", "AddNew.htm")     其中:   AddNew.htm   
.Add("c15", "退出", "./images/exit.png", "exit.htm")               其中:   exit.htm

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


加好友 发短信
等级:超级版主 帖子:107147 积分:544978 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2024/5/14 11:42:00 [只看该作者]

可以。

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


加好友 发短信
等级:八尾狐 帖子:1837 积分:5081 威望:0 精华:0 注册:2017/11/8 17:37:00
  发帖心情 Post By:2024/5/14 12:13:00 [只看该作者]

这个可以,应该是调用自定函数的函数出问题了

这个是自定义的函数,名为:one
Dim e As RequestEventArgs = Args(0)
Select Case e.path
    Case ""
        Functions.Execute("ahome", e)
    Case Else
        Dim dr As DataRow = DataTables("控制台").SQLfind("path='" & e.Path.Replace("'", "''").Replace("", "''") & "'")
        If dr IsNot Nothing Then
            If dr("IsAsync") = True Then
                e.AsyncExecute = True
                Functions.AsyncExecute(dr("function"), e)
            Else
                Functions.Execute(dr("function"), e)
            End If
        Else
            Dim wb As New weui
            wb.InsertHTML("<h3>页面丢失了!!</h3>")
            wb.AppendHTML("<script>console.warn('" & e.Path & "不在httpcase表,请检查是否没有设置.')</script>")
            e.WriteString(wb.Build)
        End If
End Select

我在HttpRequest事件,直接调用这个函数

Functions.Execute("one", e)




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


加好友 发短信
等级:超级版主 帖子:107147 积分:544978 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2024/5/14 13:31:00 [只看该作者]

学会调试

Dim e As RequestEventArgs = Args(0)
msgbox(e.path)
Select Case e.path
    Case ""
        Functions.Execute("ahome", e)
    Case Else
        Dim dr As DataRow = DataTables("控制台").SQLfind("path='" & e.Path.Replace("'", "''").Replace("", "''") & "'")
        If dr IsNot Nothing Then
msgbox(dr("function"))
            If dr("IsAsync") = True Then


 回到顶部