Subversion Repositories DevTools

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 rsolanki 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|			      _RemoveApplication			 	 |
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 RemoveApplication ()
31
	On Error Resume Next
32
 
33
	OraDatabase.Parameters.Add "APP_ID", 	Request("app_id"), 	ORAPARM_INPUT, ORATYPE_NUMBER 
34
 
35
	objEH.TryORA ( OraSession )
36
 
37
		OraDatabase.ExecuteSQL _
38
		"BEGIN   pk_Application.Remove_Application ( :APP_ID );   END;"
39
 
40
		'--- Log Action ---
41
		'objEH.LogAction  _
42
		'objAccessControl.UserId, _
43
		'enumAT_EVENT_COMMENT, _
44
		'"Sub RemoveProductFromOs PROD_ID_LIST="& Request("prod_id_list") &", OS_ID="& Request("os_id") , _
45
		'SCRIPT_NAME, _
46
		'"Removed Products from OS.", _
47
		'OraDatabase 
48
 
49
	objEH.CatchORA ( OraSession )
50
 
51
	OraDatabase.Parameters.Remove "APP_ID"
52
 
53
End Sub
54
'--------------------------------------------------------------------------------------------------------------------------
55
%>
56
<%
57
'**************************** M  A  I  N ******************************
58
' --- Form is Valid ---
59
Call RemoveApplication()
60
 
61
If objEH.Finally Then
62
	Call OpenInWindow ( Request("rfile") &"?"& objPMod.ComposeURL() )
63
End If
64
'**********************************************************************
65
%>
66
<%
67
'------------ RUN AFTER CODE RUN --------------
68
'----------------------------------------------
69
%><!--#include file="common/globals_destructor.asp"-->