Foxtable(狐表)用户栏目专家坐堂 → 用户登录时,加载所有表


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

主题:用户登录时,加载所有表

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


加好友 发短信
等级:幼狐 帖子:78 积分:750 威望:0 精华:0 注册:2017/7/19 12:42:00
用户登录时,加载所有表  发帖心情 Post By:2019/7/24 11:00:00 [只看该作者]

用户登录时,加载所有表。怎样设置用户登录时,只加载有权限的表呢?

 回到顶部
帅哥,在线噢!
有点蓝
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


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


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


加好友 发短信
等级:幼狐 帖子:78 积分:750 威望:0 精华:0 注册:2017/7/19 12:42:00
  发帖心情 Post By:2019/7/26 18:44:00 [只看该作者]

Select Case e.DataTableName
    Case "A表"
        e.Cancel = (e.User.Group = "A")
    Case "E表"
        e.Cancel = (e.User.Group = "B")
    Case "C表"
        e.Cancel = (e.User.Group = "C")
    Case "d表"
        e.Cancel = (e.User.Group = "D")
   ...
End Select

多个Case语句,不生效

 回到顶部
帅哥,在线噢!
有点蓝
  4楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:110334 积分:561518 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2019/7/26 20:53:00 [只看该作者]

贴出你完整有意义的代码

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


加好友 发短信
等级:幼狐 帖子:78 积分:750 威望:0 精华:0 注册:2017/7/19 12:42:00
  发帖心情 Post By:2019/7/29 9:14:00 [只看该作者]

Select Case e.DataTableName
    Case "客户", "销售单","检验标准","首件","复卷","涂布","来料异常统计表","制程异常汇总表","浆料检验","箔材进料检验","IPA检验","纸管检验","特采跟踪反馈表","风鹏检验","石墨检验","碳黑检验","干燥剂检验","浆料072C3生产记录表","胶水检验记录表","浆料062CH1生产记录表","浆料065C0生产记录表","浆料067C0生产记录表","浆料069C3A生产记录表","生产复卷工艺记录表","生产复卷不良记录表"
        e.Cancel = (e.User.Group = "涂布")
    Case "客户", "销售单","检验标准","首件","复卷","涂布","来料异常统计表","制程异常汇总表","浆料检验","箔材进料检验","IPA检验","纸管检验","特采跟踪反馈表","风鹏检验","石墨检验","碳黑检验","干燥剂检验","浆料072C3生产记录表","胶水检验记录表","浆料062CH1生产记录表","浆料065C0生产记录表","浆料067C0生产记录表","浆料069C3A生产记录表", "生产涂布工艺记录表","生产涂布不良记录表","生产统计","生产配料记录表","生产首件打样"
        e.Cancel = (e.User.Group = "复卷")
    Case "客户","销售单","检验标准","首件","复卷","涂布","来料异常统计表","制程异常汇总表","浆料检验","箔材进料检验","IPA检验","纸管检验","特采跟踪反馈表","风鹏检验","石墨检验","碳黑检验","干燥剂检验","浆料072C3生产记录表","胶水检验记录表","浆料062CH1生产记录表","浆料065C0生产记录表","浆料067C0生产记录表","浆料069C3A生产记录表","版辊对应配比"
        e.Cancel = (e.User.Group = "文员")
    Case "生产首件打样","客户","销售单","检验标准","首件","复卷","涂布","来料异常统计表","制程异常汇总表","浆料检验","箔材进料检验","IPA检验","纸管检验","特采跟踪反馈表","风鹏检验","石墨检验","碳黑检验","干燥剂检验","胶水检验记录表","浆料072C3生产记录表"
         e.Cancel = (e.User.Group = "计划")
    Case "生产排产表","生产涂布工艺记录表","生产统计","生产配料记录表","生产首件打样","生产复卷工艺记录表","工艺标准表","版辊对应配比"
         e.Cancel = (e.User.Group = "普通用户")
    Case "客户","检验标准","来料异常统计表","箔材进料检验","IPA检验","纸管检验","风鹏检验","石墨检验","碳黑检验","干燥剂检验","浆料072C3生产记录表"
         e.Cancel = (e.User.Group = "主管")
    Case "特采跟踪反馈表","风鹏检验","石墨检验","碳黑检验","干燥剂检验"
         e.Cancel = (e.User.Group = "GCB")
    Case "生产排产表","生产涂布工艺记录表","生产统计","生产配料记录表","生产首件打样","生产复卷工艺记录表","浆料072C3生产记录表","版辊对应配比"
         e.Cancel = (e.User.Group = "COA")
    Case "生产排产表","生产涂布工艺记录表","生产涂布不良记录表","生产统计","生产配料记录表","生产首件打样","生产复卷工艺记录表","生产复卷不良记录表","客户","销售单","检验标准","首件","复卷","涂布","来料异常统计表","制程异常汇总表","浆料检验","箔材进料检验","IPA检验","纸管检验","特采跟踪反馈表","工艺标准表","风鹏检验","石墨检验","碳黑检验","浆料072C3生产记录表","干燥剂检验","胶水检验记录表","浆料062CH1生产记录表","浆料065C0生产记录表","浆料067C0生产记录表","浆料069C3A生产记录表","版辊对应配比"
         e.Cancel = (e.User.Group = "WK")
    Case "生产排产表","生产涂布工艺记录表","生产涂布不良记录表","生产统计","生产配料记录表","生产首件打样","生产复卷工艺记录表","生产复卷不良记录表","客户","销售单","检验标准","首件","复卷","涂布","来料异常统计表","制程异常汇总表","浆料检验","箔材进料检验","IPA检验","纸管检验","特采跟踪反馈表","工艺标准表","风鹏检验","石墨检验","碳黑检验","浆料072C3生产记录表","干燥剂检验","胶水检验记录表","浆料062CH1生产记录表","浆料065C0生产记录表","浆料067C0生产记录表","浆料069C3A生产记录表","版辊对应配比"
         e.Cancel = (e.User.Group = "HR")
    Case "版辊对应配比"
         e.Cancel = (e.User.Group = "QE")
    Case  "客户","销售单","检验标准","首件","复卷","涂布","来料异常统计表","制程异常汇总表","浆料检验","箔材进料检验","IPA检验","纸管检验","特采跟踪反馈表","风鹏检验","石墨检验","碳黑检验","干燥剂检验","浆料072C3生产记录表","胶水检验记录表","浆料062CH1生产记录表","浆料065C0生产记录表","浆料067C0生产记录表","浆料069C3A生产记录表","版辊对应配比"
         e.Cancel = (e.User.Group = "ACC")
    Case "生产涂布工艺记录表","生产统计","生产配料记录表","生产首件打样","生产复卷工艺记录表","生产复卷不良记录表","客户","销售单","检验标准","首件","复卷","涂布","来料异常统计表","制程异常汇总表","浆料检验","箔材进料检验","IPA检验","纸管检验","特采跟踪反馈表","工艺标准表","风鹏检验","石墨检验","碳黑检验","浆料072C3生产记录表","干燥剂检验","胶水检验记录表","浆料062CH1生产记录表","浆料065C0生产记录表","浆料067C0生产记录表","浆料069C3A生产记录表","版辊对应配比"
         e.Cancel = (e.User.Group = "PUR")
    Case "生产排产表","生产涂布工艺记录表","生产涂布不良记录表","生产统计","生产配料记录表","生产首件打样","生产复卷工艺记录表","生产复卷不良记录表","客户","销售单","检验标准","首件","复卷","涂布","来料异常统计表","制程异常汇总表","箔材进料检验","IPA检验","纸管检验","特采跟踪反馈表","工艺标准表","风鹏检验","石墨检验","碳黑检验","版辊对应配比"
         e.Cancel = (e.User.Group = "SC")
    Case "生产排产表","生产涂布工艺记录表","生产涂布不良记录表","生产统计","生产配料记录表","生产首件打样","生产复卷工艺记录表","生产复卷不良记录表","客户","销售单","检验标准","首件","复卷","涂布","来料异常统计表","制程异常汇总表","浆料检验","箔材进料检验","IPA检验","纸管检验","特采跟踪反馈表","工艺标准表","风鹏检验","石墨检验","碳黑检验","浆料072C3生产记录表","干燥剂检验","胶水检验记录表","浆料062CH1生产记录表","浆料065C0生产记录表","浆料067C0生产记录表","浆料069C3A生产记录表","版辊对应配比","文件系统管理"
         e.Cancel = (e.User.Group = "6S")
    Case "生产涂布工艺记录表","生产涂布不良记录表","生产统计","生产配料记录表","生产首件打样","生产复卷工艺记录表","客户","销售单","检验标准","首件","涂布","浆料检验","箔材进料检验","IPA检验","纸管检验","特采跟踪反馈表","风鹏检验","石墨检验","碳黑检验","浆料072C3生产记录表","干燥剂检验","胶水检验记录表","浆料062CH1生产记录表","浆料065C0生产记录表","浆料067C0生产记录表","浆料069C3A生产记录表","版辊对应配比","分层审核问题跟踪表"
         e.Cancel = (e.User.Group = "CK")
End Select

 回到顶部
帅哥,在线噢!
有点蓝
  6楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:110334 积分:561518 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2019/7/29 10:46:00 [只看该作者]

先看看:http://www.foxtable.com/webhelp/topics/2242.htm

然后需要使用2层select case处理,如:

Select Case e.User.Group
    Case "涂布"
        Select Case e.DataTableName
            Case "客户", "销售单","检验标准","首件","复卷","涂布","来料异常统计表","制程异常汇总表","浆料检验","箔材进料检验","IPA检验","纸管检验","特采跟踪反馈表","风鹏检验","石墨检验","碳黑检验","干燥剂检验","浆料072C3生产记录表","胶水检验记录表","浆料062CH1生产记录表","浆料065C0生产记录表","浆料067C0生产记录表","浆料069C3A生产记录表","生产复卷工艺记录表","生产复卷不良记录表"
            Case Else
                e.Cancel = True
        End Select
    Case "复卷"
        Select Case e.DataTableName
            Case "客户", "销售单","检验标准","首件","复卷","涂布","来料异常统计表","制程异常汇总表","浆料检验","箔材进料检验","IPA检验","纸管检验","特采跟踪反馈表","风鹏检验","石墨检验","碳黑检验","干燥剂检验","浆料072C3生产记录表","胶水检验记录表","浆料062CH1生产记录表","浆料065C0生产记录表","浆料067C0生产记录表","浆料069C3A生产记录表", "生产涂布工艺记录表","生产涂布不良记录表","生产统计","生产配料记录表","生产首件打样"
            Case Else
                e.Cancel = True
        End Select
        
End Select

 回到顶部