Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
' 			 	    Destroy Release
5
'               --- PROCESS FORM ---
6
'=====================================================
7
%>
8
<%
9
Option explicit
10
' Good idea to set when using redirect
11
Response.Expires = 0	' always load the page, dont store
12
%>
13
 
14
<!--#include file="common/conf.asp"-->
15
<!--#include file="common/globals.asp"-->
16
<!--#include file="common/formating.asp"-->
17
<!--#include file="common/qstr.asp"-->
18
<!--#include file="common/common_subs.asp"-->
19
<!--#include file="common/common_dbedit.asp"-->
20
<%
21
' Set rfile parameter. This is a return page after Login
22
Call objPMod.StoreParameter ( "rfile", "rtree.asp" )
23
'------------ ACCESS CONTROL ------------------
24
%>
25
<!--#include file="_access_control_login.asp"-->
26
<!--#include file="_access_control_general.asp"-->
27
<!--#include file="_access_control_project.asp"-->
28
<%
29
'------------ Variable Definition -------------
30
'------------ Constants Declaration -----------
31
'------------ Variable Init -------------------
32
'----------------------------------------------
33
%>
34
<%
35
Sub DestroyRelease ( )
36
 
37
	On Error Resume Next
38
	objEH.ErrorRedirect = TRUE
39
 
40
 
41
 
42
	OraDatabase.Parameters.Add "RTAG_ID", Request("rtag_id_list"), 	ORAPARM_INPUT, ORATYPE_NUMBER
43
	OraDatabase.Parameters.Add "USER_ID", objAccessControl.UserId, 	ORAPARM_INPUT, ORATYPE_NUMBER
44
 
45
	objEH.TryORA ( OraSession )
46
 
47
 
48
	OraDatabase.ExecuteSQL _
49
	"BEGIN "&_
50
	" PK_RELEASE.DESTROY_RELEASE ( :RTAG_ID, :USER_ID ); "&_
51
	"END;"
52
 
53
	objEH.CatchORA ( OraSession )
54
 
55
 
56
	OraDatabase.Parameters.Remove "RTAG_ID"
57
	OraDatabase.Parameters.Remove "USER_ID"
58
End Sub
59
%>
60
<%
61
'-----------------------  MAIN LINE  ---------------------------
62
 
63
'--- Process submition ---
64
If (Request("rtag_id_list") <> "") AND (Request("proj_id") <> "")Then
65
 
66
	Call DestroyRelease ()
67
 
68
	If objEH.Finally Then
69
		Response.Redirect("rtree.asp?proj_id="& Request("proj_id") )
70
	End If
71
 
72
Else
73
	Response.write "Some parameters are missing!" & "<br>" 'TODO
74
End If
75
%>
76
 
77
<!-- DESTRUCTOR ------->
78
<!--#include file="common/destructor.asp"-->