| 2 |
rsolanki |
1 |
<%
|
|
|
2 |
'===================================================================
|
|
|
3 |
' Role Common
|
|
|
4 |
'===================================================================
|
|
|
5 |
%>
|
|
|
6 |
<!--#include file="../class/classTemplateManager.asp"-->
|
|
|
7 |
<!--#include file="../class/classTabControl.asp"-->
|
|
|
8 |
<!--#include file="../class/classActionButtonControl.asp"-->
|
|
|
9 |
<!--#include file="../class/classRepeater.asp"-->
|
|
|
10 |
<%
|
|
|
11 |
'------------ VARIABLE DEFINITION -------------
|
|
|
12 |
Dim parApp_id
|
|
|
13 |
Dim parRole_id
|
|
|
14 |
Dim objRoleCollector
|
|
|
15 |
Dim objBtnControl
|
|
|
16 |
Dim aTabBtnsDef
|
|
|
17 |
Dim objRepeater
|
|
|
18 |
'------------ CONSTANTS DECLARATION -----------
|
|
|
19 |
Const PARENT_TITLE = "Role"
|
|
|
20 |
'------------ VARIABLE INIT -------------------
|
|
|
21 |
parRole_id = Request("role_id")
|
|
|
22 |
parApp_id = Request("app_id")
|
|
|
23 |
Set objBtnControl = New ActionButtonControl
|
|
|
24 |
Set objRepeater = New Repeater
|
|
|
25 |
Set objRoleCollector = CreateObject("Scripting.Dictionary")
|
|
|
26 |
'------------ CONDITIONS ----------------------
|
|
|
27 |
'----------------------------------------------
|
|
|
28 |
%>
|
|
|
29 |
<%
|
|
|
30 |
'------------ RUN BEFORE PAGE RENDER ----------
|
|
|
31 |
objPMod.PersistInQryString ("role_id")
|
|
|
32 |
objPMod.PersistInQryString ("app_id")
|
|
|
33 |
objPMod.PersistInQryString ("tree")
|
|
|
34 |
'----------------------------------------------
|
|
|
35 |
%>
|
|
|
36 |
<%
|
|
|
37 |
'-----------------------------------------------------------------------------------------------------------------
|
|
|
38 |
Sub GetRoleDetails ( nRole_id, nApp_id, ByRef outobjDetails )
|
|
|
39 |
Dim rsQry, query
|
|
|
40 |
query = "SELECT * FROM ROLES WHERE role_id = "& nRole_id &" AND app_id = "& nApp_id
|
|
|
41 |
|
|
|
42 |
Set rsQry = OraDatabase.DbCreateDynaset( query , ORADYN_DEFAULT )
|
|
|
43 |
|
|
|
44 |
If ((NOT rsQry.BOF) AND (NOT rsQry.EOF)) Then
|
|
|
45 |
outobjDetails.Item ("role_id") = rsQry("role_id")
|
|
|
46 |
outobjDetails.Item ("role_name") = rsQry("role_name")
|
| 5299 |
dpurdie |
47 |
outobjDetails.Item ("role_comments") = rsQry("comments")
|
| 2 |
rsolanki |
48 |
outobjDetails.Item ("is_role_variation") = rsQry("is_role_variation")
|
|
|
49 |
|
|
|
50 |
Else
|
|
|
51 |
Err.Raise 8, "Sub GetRoleDetails", "Empty record set returned. nRole_id="& nRole_id &", nApp_id="& nApp_id
|
|
|
52 |
|
|
|
53 |
End If
|
|
|
54 |
|
|
|
55 |
rsQry.Close
|
|
|
56 |
Set rsQry = Nothing
|
|
|
57 |
End Sub
|
|
|
58 |
'-----------------------------------------------------------------------------------------------------------------
|
|
|
59 |
Sub RenderTitle ( objCollector )
|
|
|
60 |
If IsNull(objCollector.Item("is_role_variation")) Then
|
|
|
61 |
Response.write LIMG_ROLE_LRG
|
|
|
62 |
Else
|
|
|
63 |
Response.write LIMG_SPEC_ROLE_LRG
|
|
|
64 |
End If
|
|
|
65 |
Response.write "<b>"& objCollector.Item("role_name") &"</b>"
|
|
|
66 |
End Sub
|
|
|
67 |
'-----------------------------------------------------------------------------------------------------------------
|
|
|
68 |
%>
|