Rss & SiteMap

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

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

标题:BUG修改

1楼
youyuweinihao 发表于:2011/8/25 13:48:00


图片点击可在新窗口打开查看此主题相关图片如下:qq截图20110825134521.png
图片点击可在新窗口打开查看

 

Dim tpb As WinForm.TopicBar = e.Form.Controls("TopicBar1")

With Ctype(tpb.BaseControl, C1Command.C1TopicBar)

    If System.Environment.OSVersion.Version.Major < 6 Then

        .VisualStyle = C1Command.VisualStyle.WindowsXP

    Else

        .VisualStyle = C1Command.VisualStyle.Office2010Blue

    End If

    .Padding = New Windows.Forms.Padding(4)

End With

tpb.Animation = False

If user.IsRole = "管理员" Then

    e.Form.Controls("TopicBar1").Pages("系统设置").Visible = True

    e.Form.Controls("TopicBar1").Pages("基础数据").Visible = True

    e.Form.Controls("TopicBar1").Pages("员工管理").Visible = True

Else e.Form.Controls("TopicBar1").Pages("系统设置").Visible = False

     e.Form.Controls("TopicBar1").Pages("基础数据").Visible = False

     e.Form.Controls("TopicBar1").Pages("员工管理").Visible = False

End If

 

 

窗口AFTERLOAD中运行出现如图错误,不是太明白

2楼
youyuweinihao 发表于:2011/8/25 13:48:00

要如何修改

3楼
czy 发表于:2011/8/25 13:56:00
User.Name = "管理没" 不行吗?
4楼
狐狸爸爸 发表于:2011/8/25 14:02:00

判断用户具备某个角色:

 

If User.IsRole("审核") Then
     MessageBox.Show("当前用户具备审核功能!")
End If

5楼
youyuweinihao 发表于:2011/8/25 14:43:00
User.Name = "管理没" 不行吗?

这样不行

我要实现的是部门之间的权限管理啊

人员多了

按人员来设置太麻烦啊

6楼
czy 发表于:2011/8/25 15:46:00
呵呵,我落伍了,我还没安装最新版,还没有角色功能。
7楼
czy 发表于:2011/8/25 15:53:00

那就不用判断直接这样好了。

 

e.Form.Controls("TopicBar1").Pages("系统设置").Visible = User.IsRole("管理员")
e.Form.Controls("TopicBar1").Pages("基础数据").Visible = User.IsRole("管理员")
e.Form.Controls("TopicBar1").Pages("员工管理").Visible = User.IsRole("管理员")

共7 条记录, 每页显示 10 条, 页签: [1]

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

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