Dim ldsxyyc As WinForm.RadioButton = e.Form.Controls("ldxsyycRadioButton")
Dim liexz As WinForm.CheckedListBox = e.Form.Controls("lieCheckedListBox")
Dim t As WinForm.Table = e.Form.Controls("Table1")
Dim str As String = ""
If ldsxyyc .Checked=True Then
e.Form.Controls("tzlsxGroupBox").Enabled=False
e.Form.Controls("ycyxslGroupBox").Enabled=True
e.Form.Controls("sjldczGroupBox").Enabled=True
liexz.Value =""
liexz.SelectedValue=""
End If
liexz.CheckOnClick=True
Dim dtshb As WinForm.Table = e.Form.Controls("Table1")
For Each c As Col In t.Table.Cols
If t.Table.DataTable.Name ="客户资料" Then
If _UserGroup = "数据操作员" Then
If c.name <> "身份证号" AndAlso c.name <> "客户主手机号" AndAlso c.name <>"第二手机号" AndAlso c.name <> "第三手机号" Then
str &= c.Name & "(" & c.Caption & ")|"
End If
ElseIf _UserGroup = "系统管理员" OrElse _UserGroup = "数据管理员"
If c.name <>"身份证号掩码显示" AndAlso c.name <> "客户主手机号掩码显示" AndAlso c.name <> "第二手机号掩码显示" AndAlso c.name <> "第三手机号掩码显示" Then
str &= c.Name & "(" & c.Caption & ")|"
End If
End If
Else
str &= c.Name & "(" & c.Caption & ")|"
End If
Next
e.Form.Controls("lieCheckedListBox").ComboList = str.Trim("|")
'Dim clist As WinForm.CheckedListBox = e.Form.Controls("lieCheckedListBox")
For Each c As Col In t.Table.Cols
If t.Table.DataTable.Name ="客户资料" Then
If _UserGroup = "数据操作员" Then
If c.name <> "身份证号" AndAlso c.name <> "客户主手机号" AndAlso c.name <>"第二手机号" AndAlso c.name <> "第三手机号" Then
liexz .SetItemChecked(c.Index, not c.Visible)
End If
ElseIf _UserGroup = "系统管理员" OrElse _UserGroup = "数据管理员"
If c.name <>"身份证号掩码显示" AndAlso c.name <> "客户主手机号掩码显示" AndAlso c.name <> "第二手机号掩码显示" AndAlso c.name <> "第三手机号掩码显示" Then
liexz .SetItemChecked(c.Index, not c.Visible)
End If
End If
Else
liexz .SetItemChecked(c.Index, not c.Visible)
End If
Next