以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 求解编辑行锁定和审核冲突 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=74292) |
-- 作者:qctv -- 发布时间:2015/9/7 23:27:00 -- 求解编辑行锁定和审核冲突 If e.Row("项目单位") <> User.Name Then e.Cancel = True End If If e.Col.Name = "审批" Then \'只有经理才能审批 If User.Group <> "高管" Then e.Cancel = True End If ElseIf e.Row("审批") = True Then \'如果此行已经审批了,则禁止修改 e.Cancel = True End If
|
-- 作者:程兴刚 -- 发布时间:2015/9/7 23:33:00 -- If e.Col.Name = "审批" Then \'只有经理才能审批 If e.Row("审批") = true Then \'如果此行已经审批了,则禁止修改
e.Cancel = True
ElseIf User.Group <> "高管" Then
e.Cancel = True
ElseIf e.Row("项目单位") <> User.Name Then
e.Cancel = True
End If End If End If
[此贴子已经被作者于2015/9/7 23:38:01编辑过]
|