Subversion Repositories DevTools

Rev

Rev 6048 | Details | Compare with Previous | 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
%>
6181 dpurdie 22
<!--#include file="_access_control_login_optional.asp"-->
119 ghuddy 23
<!--#include file="_access_control_general.asp"-->
24
<%
25
'------------ VARIABLE DEFINITION -------------
26
'------------ CONSTANTS DECLARATION -----------
27
'------------ VARIABLE INIT -------------------
28
'------------ CONDITIONS ----------------------
29
'----------------------------------------------
30
%>
31
<%
32
'--------------------------------------------------------------------------------------------------------------------------
33
Sub RemoveProcess()
34
	On Error Resume Next
35
 
36
 
37
	OraDatabase.Parameters.Add "PROC_ID", 	Request("proc_id"), 		ORAPARM_INPUT, ORATYPE_NUMBER 
38
	OraDatabase.Parameters.Add "PV_ID", 	Request("pv_id"), 			ORAPARM_INPUT, ORATYPE_NUMBER 
39
	OraDatabase.Parameters.Add "USER_ID", 	objAccessControl.UserId, 	ORAPARM_INPUT, ORATYPE_NUMBER 
40
 
41
	objEH.TryORA ( OraSession )
42
 
43
	OraDatabase.ExecuteSQL _
44
	"BEGIN   PK_PACKAGE.REMOVE_PROCESS ( :PROC_ID, :PV_ID, :USER_ID );   END;"
45
 
46
	objEH.CatchORA ( OraSession )
47
 
48
	OraDatabase.Parameters.Remove "PROC_ID"
49
	OraDatabase.Parameters.Remove "PV_ID"
50
	OraDatabase.Parameters.Remove "USER_ID"
51
 
52
End Sub
53
'--------------------------------------------------------------------------------------------------------------------------
54
%>
55
<%
56
'**************************** M  A  I  N ******************************
57
' --- Form is Valid ---
58
Call RemoveProcess()
59
 
60
If objEH.Finally Then
61
	Call OpenInWindow ( "process_dependencies.asp?pv_id="& Request("pv_id") &"&rtag_id="& Request("rtag_id") &"" )
62
End If
63
'**********************************************************************
64
%>
65
<%
66
'------------ RUN AFTER CODE RUN --------------
67
'----------------------------------------------
68
Call Destroy_All_Objects
69
%>