Foxtable(狐表)用户栏目专家坐堂 → WeUI权限请教!


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

主题:WeUI权限请教!

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


加好友 发短信
等级:超级版主 帖子:107702 积分:547831 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2020/5/23 9:27:00 [只看该作者]

简单的

    Case "", "default.htm" '首页
        wb.AddPageTitle("","pageheader",
"
销售系统","由湛江辉迅基于Foxtable开发")
        With wb.AddGrid("","g1")
if UserName = "张三"
            .Add("c1",
"
增加订单""./images/button.png").Attribute = ""
endif
            .Add("c2","
客户管理""./images/cell.png""http://www.foxtable.com")
        End With

如果有权限表的,查表判断

    Case "", "default.htm" '首页
        wb.AddPageTitle("","pageheader",
"
销售系统","由湛江辉迅基于Foxtable开发")
        With wb.AddGrid("","g1")
if datatables("权限").find("用户='" & UserName & "' and 模块='增加订单'") isnot nothing then
            .Add("c1","增加订单""./images/button.png").Attribute = ""
endif
            .Add("c2","
客户管理""./images/cell.png""http://www.foxtable.com")
        End With

 回到顶部
总数 13 1 2 下一页