Subversion Repositories DevTools

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|			      _remove_process				 	 |
6
'|                                                   |
7
'=====================================================
8
%>
9
<%
10
Option explicit
11
Response.Expires = 0
12
%>
13
<!--#include file="common/conf.asp"-->
14
<!--#include file="common/globals.asp"-->
15
<!--#include file="common/formating.asp"-->
16
<!--#include file="common/qstr.asp"-->
17
<!--#include file="common/common_subs.asp"-->
18
<!--#include file="common/_form_window_common.asp"-->
19
<%
20
'------------ ACCESS CONTROL ------------------
21
%>
22
<!--#include file="_access_control_general.asp"-->
23
<%
24
'------------ VARIABLE DEFINITION -------------
25
'------------ CONSTANTS DECLARATION -----------
26
'------------ VARIABLE INIT -------------------
27
'------------ CONDITIONS ----------------------
28
'----------------------------------------------
29
%>
30
<%
31
'--------------------------------------------------------------------------------------------------------------------------
32
Sub RemoveProcess()
33
	On Error Resume Next
34
 
35
 
36
	OraDatabase.Parameters.Add "PROC_ID", 	Request("proc_id"), 		ORAPARM_INPUT, ORATYPE_NUMBER 
37
	OraDatabase.Parameters.Add "PV_ID", 	Request("pv_id"), 			ORAPARM_INPUT, ORATYPE_NUMBER 
38
	OraDatabase.Parameters.Add "USER_ID", 	objAccessControl.UserId, 	ORAPARM_INPUT, ORATYPE_NUMBER 
39
 
40
	objEH.TryORA ( OraSession )
41
 
42
	OraDatabase.ExecuteSQL _
43
	"BEGIN   PK_PACKAGE.REMOVE_PROCESS ( :PROC_ID, :PV_ID, :USER_ID );   END;"
44
 
45
	objEH.CatchORA ( OraSession )
46
 
47
	OraDatabase.Parameters.Remove "PROC_ID"
48
	OraDatabase.Parameters.Remove "PV_ID"
49
	OraDatabase.Parameters.Remove "USER_ID"
50
 
51
End Sub
52
'--------------------------------------------------------------------------------------------------------------------------
53
%>
54
<%
55
'**************************** M  A  I  N ******************************
56
' --- Form is Valid ---
57
Call RemoveProcess()
58
 
59
If objEH.Finally Then
60
	Call OpenInWindow ( "process_dependencies.asp?pv_id="& Request("pv_id") &"&rtag_id="& Request("rtag_id") &"" )
61
End If
62
'**********************************************************************
63
%>
64
<%
65
'------------ RUN AFTER CODE RUN --------------
66
'----------------------------------------------
67
Call Destroy_All_Objects
68
%>