Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 rsolanki 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|			        _RevokeRole					 	 |
6
'|                                                   |
7
'=====================================================
8
%>
9
<%
10
Option explicit
11
Response.Expires = 0
12
%>
13
<!--#include file="common/globals.asp"-->
14
<!--#include file="common/config.asp"-->
15
<!--#include file="common/common_subs.asp"-->
16
<!--#include file="common/_code_behind_common.asp"-->
17
<%
18
'------------ ACCESS CONTROL ------------------
19
%>
20
<!--#include file="_access_control_general.asp"-->
21
<%
22
'------------ VARIABLE DEFINITION -------------
23
'------------ CONSTANTS DECLARATION -----------
24
'------------ VARIABLE INIT -------------------
25
'------------ CONDITIONS ----------------------
26
'----------------------------------------------
27
%>
28
<%
29
'--------------------------------------------------------------------------------------------------------------------------
30
Sub RevokeRole ()
31
	On Error Resume Next
32
 
33
	OraDatabase.Parameters.Add "ROLE_ID_LIST", 		Request("role_id_list"), 	ORAPARM_INPUT, ORATYPE_VARCHAR2
34
	OraDatabase.Parameters.Add "USER_ID", 			Request("user_id"), 		ORAPARM_INPUT, ORATYPE_NUMBER
35
 
36
 
37
	objEH.TryORA ( OraSession )
38
 
39
	OraDatabase.ExecuteSQL _
40
	"BEGIN pk_Role.Revoke_Role ( :ROLE_ID_LIST, :USER_ID ); END;"	
41
 
42
	objEH.CatchORA ( OraSession )
43
 
44
 
45
	OraDatabase.Parameters.Remove "ROLE_ID_LIST"
46
	OraDatabase.Parameters.Remove "USER_ID"
47
 
48
End Sub
49
'--------------------------------------------------------------------------------------------------------------------------
50
%>
51
<%
52
'**************************** M  A  I  N ******************************
53
' --- Form is Valid ---
54
Call RevokeRole()
55
 
56
If objEH.Finally Then
57
	Call OpenInWindow ( Request("rfile") &"?"& objPMod.ComposeURL() )
58
End If
59
'**********************************************************************
60
%>
61
<%
62
'------------ RUN AFTER CODE RUN --------------
63
'----------------------------------------------
64
%><!--#include file="common/globals_destructor.asp"-->