For Each dr As DataRow In DataTables("授权表").Select("分组 = ' " & user.Group & " ' And 表名 = '" & e.Form.Group & "'")
e.form.controls(dr("列名")).Visible = Not dr("不可见")
e.form.controls(dr("列名")).Visible = Not dr("不可编辑")
Next
For Each dr As RibbonTabs In DataTables("授权表").Select("分组 = ' " & user.Group & "' And 表名 = ' " & e.Tab.Group & "'")
e.Tab.RibbonTabs(dr("列名")).Visible = Not dr("不可见")
e.Tab.RibbonTabs(dr("列名")).Visible = Not dr("不可编辑")
Next