Foxtable(狐表)用户栏目专家坐堂 → 备注列权限问题


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

主题:备注列权限问题

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


加好友 发短信
等级:幼狐 帖子:171 积分:1392 威望:0 精华:0 注册:2013/2/1 10:00:00
备注列权限问题  发帖心情 Post By:2014/7/7 9:42:00 [只看该作者]

已设置编辑权限,在列中可以按不同部门权限编辑,但在下面的备注列就不受控了,所有部门都能编辑!
图片点击可在新窗口打开查看此主题相关图片如下:002.jpg
图片点击可在新窗口打开查看

请部如何设置下面的备注列窗口才能按用户权限编辑?

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


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

 你需要在DataColchanging里面写入对应代码,如果没有权限,就 e.Cancel = True

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


加好友 发短信
等级:幼狐 帖子:171 积分:1392 威望:0 精华:0 注册:2013/2/1 10:00:00
  发帖心情 Post By:2014/7/7 9:54:00 [只看该作者]

请问此段代码如何简化好,让不同部门编辑不同列,现在的代码如何有增加列的时候就会做好多修改?

' 让不同部门编辑不同的列

Select Case User.Group    ' 禁止部门 编辑相关列.
 
    Case "客服部"
        Select Case e.Col.Name
            Case "PMC回复交期","物料备齐日期","外购物料标识","生产周期","在产标识","排产计划日期","物料到货标识","外购物料日期","PMC备注","生产部备注","采购部备注"
                e.Cancel = True
        End Select

   
    Case "PMC"
        Select Case e.Col.Name
            Case  "开始日期","结束日期","PMC接收日期","T6单号","产品型号","产品数量","进仓时间","发货日期","客户名称","项目名称","跟单负责人","大区","省份","城市","订单类别","单价","订单级别","创建者","在产标识","销售额","生产周期","排产计划日期","物料到货标识","外购物料日期","物流单号","业务员","订单级别","客服部备注","生产部备注","采购部备注"
                e.Cancel = True
        End Select

    Case "生产部"
        Select Case e.Col.Name
            Case  "开始日期","结束日期","PMC接收日期","PMC回复交期","物料备齐日期","T6单号","产品型号","产品数量","发货日期","客户名称","项目名称","跟单负责人","大区","省份","城市","订单类别","单价","订单级别","创建者","销售额","外购物料日期","外购物料标识","物料到货标识","物流单号","业务员","订单级别" ,"客服部备注","PMC备注","采购部备注"
                e.Cancel = True
        End Select
        
      Case "采购部"
        Select Case e.Col.Name
            Case  "开始日期","结束日期","PMC接收日期","T6单号","产品型号","产品数量","PMC回复交期","进仓时间","发货日期","客户名称","项目名称","跟单负责人","大区","省份","城市","订单类别","单价","订单级别","创建者","物料备齐日期","在产标识","销售额","在产标识","生产周期","排产计划日期","物流单号","业务员","订单级别" ,"客服部备注","PMC备注","生产部备注"

                e.Cancel = True
        End Select

 Case "销售部"
        Select Case e.Col.Name
            Case  "开始日期","结束日期","PMC接收日期","T6单号","产品型号","产品数量","PMC回复交期","异常记录","进仓时间","发货日期","客户名称","项目名称","跟单负责人","大区","省份","城市","订单类别","单价","订单级别","创建者","物料备齐日期","在产标识","销售额","外购物料日期","外购物料标识","生产周期","排产计划日期","物料到货标识","物流单号","业务员","订单级别" ,"客服部备注","PMC备注","生产部备注","采购部备注"
                e.Cancel = True
        End Select


    Case "经理"
        Select Case e.Col.Name
            Case  "开始日期","结束日期","PMC接收日期","T6单号","产品型号","产品数量","PMC回复交期","异常记录","进仓时间","发货日期","客户名称","项目名称","跟单负责人","大区","省份","城市","订单类别","单价","订单级别","创建者","物料备齐日期","在产标识","销售额","外购物料日期","外购物料标识","生产周期","排产计划日期","物料到货标识","物流单号","业务员","客服部备注","PMC备注","生产部备注","采购部备注"
                e.Cancel = True
        End Select
     
        
      
End Select


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


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

 这个没办法,你的权限写在了事件里,增加列,肯定是要改代码的。

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


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

 如果希望在表里面设置权限管理,可以参考 http://www.foxtable.com/help/topics/2405.htm

 


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


加好友 发短信
等级:幼狐 帖子:171 积分:1392 威望:0 精华:0 注册:2013/2/1 10:00:00
  发帖心情 Post By:2014/7/7 9:57:00 [只看该作者]

出错
图片点击可在新窗口打开查看此主题相关图片如下:003.jpg
图片点击可在新窗口打开查看

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


加好友 发短信
等级:贵宾 帖子:35433 积分:178524 威望:0 精华:3 注册:2013/3/30 16:36:00
  发帖心情 Post By:2014/7/7 9:59:00 [只看该作者]

用DataCol  不要盲目套用

 回到顶部