Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:权限失效

1楼
nuoyan89 发表于:2024/6/27 12:36:00
老师,我想非以下两个组别人员不能编辑所有列,并且以下两个组别的人员在下面没有出现的列不能编辑,现在以下代码生产部文员能编辑整个表的列,代码写在:prepareedit事件中的

If "," & _UserGroup & "," Like "*,管理员,*" OrElse "," & _UserGroup & "," Like "*,生产部文员,*" Then
    If "," & _UserGroup & "," Like "*,管理员,*" Then lst.AddRange({"毛坯编码", "备注", "姓名", "月份", "班次", "扫描日期", "加工时间", "合格品", "批次序号", "结果", "类型", "毛坯产地", "成品编码", "成品描述", "加工工序", "加工内容", "使用设备", "完成数量", "生产批次", "循环时间", "实际时间", "线别", "实际加工日期", "是否首件", "加工次数", "年", "月", "日", "扫码类型", "配刀单号", "制单人员", "制单日期", "加工单价", "加工金额", "审核人员", "审核日期"})
    If "," & _UserGroup & "," Like "*生产部文员*" Then lst.AddRange({"备注", "姓名", "班次", "扫描日期", "合格品", "完成数量", "循环时间", "实际时间", "线别", "实际加工日期", "加工次数", "扫码类型", "配刀单号", "加工单价", "加工金额", "审核人员", "审核日期", "生产型号", "毛坯状态", "加工时间", "加工单价", "加工金额", "循环时间", "结果", "类型", "月份", "使用设备"})
Else
    e.cancel = True
End If
2楼
nuoyan89 发表于:2024/6/27 13:28:00
找到原因了
共2 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .02344 s, 2 queries.