-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathStatusViewOptions.ascx.vb
executable file
·71 lines (47 loc) · 1.79 KB
/
StatusViewOptions.ascx.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Imports System.Web.UI.WebControls
Imports DotNetNuke.Common
Imports DotNetNuke.Entities.Modules
Imports DotNetNuke.Security.Roles
Imports DotNetNuke.Security
Imports DotNetNuke.Services.Exceptions
Imports DotNetNuke.Services.Localization
Imports Ventrian.SubscriptionTools.Entities
Namespace Ventrian.SubscriptionTools
Partial Public Class StatusViewOptions
Inherits PortalModuleBase
#Region " Private Methods "
Private Sub BindRoles()
Dim objRoleController As New RoleController
Localization.LocalizeDataGrid(grdRoles, Me.LocalResourceFile)
grdRoles.DataSource = objRoleController.GetPortalRoles(Me.PortalId)
grdRoles.DataBind()
End Sub
#End Region
#Region " Protected Methods "
Protected Function IsContentDefined(ByVal roleID As String) As String
Dim objContentController As New ContentController
Dim objContent As ContentInfo = objContentController.Get(Me.ModuleId, roleID)
If (objContent Is Nothing) Then
Return "False"
Else
If (objContent.SettingValue <> "") Then
Return "True"
Else
Return "False"
End If
End If
End Function
#End Region
#Region " Event Handlers "
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Try
If (IsPostBack = False) Then
BindRoles()
End If
Catch exc As Exception 'Module failed to load
ProcessModuleLoadException(Me, exc)
End Try
End Sub
#End Region
End Class
End Namespace