e.Form.Controls("制造信息录入").Enabled = False
e.Form.Controls("制造信息录入").Visible = False
e.Form.Controls("制造信息录入").ForeColor = Color.LightGray
e.Form.Controls("制造信息核对").Enabled = False
e.Form.Controls("制造信息核对").Visible = False
e.Form.Controls("制造信息核对").ForeColor = Color.LightGray
e.Form.Controls("物流信息录入").Enabled = False
e.Form.Controls("物流信息录入").Visible = False
e.Form.Controls("物流信息录入").ForeColor = Color.LightGray
e.Form.Controls("设备组录入").Enabled = False
e.Form.Controls("设备组录入").Visible = False
e.Form.Controls("设备组录入").ForeColor = Color.LightGray
e.Form.Controls("品质部录入").Enabled = False
e.Form.Controls("品质部录入").Visible = False
e.Form.Controls("品质部录入").ForeColor = Color.LightGray
e.Form.Controls("基础数据管理").Enabled = False
e.Form.Controls("基础数据管理").Visible = False
e.Form.Controls("基础数据管理").ForeColor = Color.LightGray
e.Form.Controls("人事管理").Enabled = False
e.Form.Controls("人事管理").Visible = False
e.Form.Controls("人事管理").ForeColor = Color.LightGray
e.Form.Controls("现场问题").Enabled = False
e.Form.Controls("现场问题").Visible = False
e.Form.Controls("现场问题").ForeColor = Color.LightGray
e.Form.Controls("员工自助查询").Enabled = False
e.Form.Controls("员工自助查询").Visible = False
e.Form.Controls("员工自助查询").ForeColor = Color.LightGray
e.Form.Controls("数据综合查询").Enabled = False
e.Form.Controls("数据综合查询").Visible = False
e.Form.Controls("数据综合查询").ForeColor = Color.LightGray
Dim str As String = User.Roles
If str > "" Then
If str.Contains("生产记录录入") OrElse str.Contains("生产记录核对") OrElse str.Contains("生产计划录入") OrElse str.Contains("质检记录录入") Then
e.Form.Controls("制造信息录入").Enabled = True
e.Form.Controls("制造信息录入").Visible = True
e.Form.Controls("制造信息录入").ForeColor = Color.Black
End If
If str.Contains("生产记录核对") OrElse str.Contains("生产计划录入") Then
e.Form.Controls("制造信息核对").Enabled = True
e.Form.Controls("制造信息核对").Visible = True
e.Form.Controls("制造信息核对").ForeColor = Color.Black
End If
If str.Contains("物料信息录入") OrElse str.Contains("材料信息录入") OrElse str.Contains("材料信息核对") OrElse str.Contains("成品信息录入") OrElse str.Contains("成品信息核对") Then
e.Form.Controls("物流信息录入").Enabled = True
e.Form.Controls("物流信息录入").Visible = True
e.Form.Controls("物流信息录入").ForeColor = Color.Black
End If
If str.Contains("工装设备录入") OrElse str.Contains("调试记录录入") Then
e.Form.Controls("设备组录入").Enabled = True
e.Form.Controls("设备组录入").Visible = True
e.Form.Controls("设备组录入").ForeColor = Color.Black
End If
If str.Contains("质检记录录入") Then
e.Form.Controls("品质部录入").Enabled = True
e.Form.Controls("品质部录入").Visible = True
e.Form.Controls("品质部录入").ForeColor = Color.Black
End If
If str.Contains("基础数据管理") Then
e.Form.Controls("基础数据管理").Enabled = True
e.Form.Controls("基础数据管理").Visible = True
e.Form.Controls("基础数据管理").ForeColor = Color.Black
End If
If str.Contains("人事管理") Then
e.Form.Controls("人事管理").Enabled = True
e.Form.Controls("人事管理").Visible = True
e.Form.Controls("人事管理").ForeColor = Color.Black
End If
If str.Contains("现场问题提交") OrElse str.Contains("问题确认解决") Then
e.Form.Controls("现场问题").Enabled = True
e.Form.Controls("现场问题").Visible = True
e.Form.Controls("现场问题").ForeColor = Color.Black
End If
If str.Contains("员工自助查询") Then
e.Form.Controls("员工自助查询").Enabled = True
e.Form.Controls("员工自助查询").Visible = True
e.Form.Controls("员工自助查询").ForeColor = Color.Black
End If
If str.Contains("数据综合查询") Then
e.Form.Controls("数据综合查询").Enabled = True
e.Form.Controls("数据综合查询").Visible = True
e.Form.Controls("数据综合查询").ForeColor = Color.Black
End If
End If