Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
' 			 	   Remove release reference 
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
'------------ ACCESS CONTROL ------------------
22
%>
23
<!--#include file="_access_control_login.asp"-->
24
<!--#include file="_access_control_general.asp"-->
25
<!--#include file="_access_control_project.asp"-->
26
<%
27
'------------ Variable Definition -------------
28
Dim ProblemsString
29
Dim OverideWarnings
30
'------------ Constants Declaration -----------
31
'------------ Variable Init -------------------
32
ProblemsString = NULL
33
 
34
OverideWarnings = "N"
35
If InStr( 1, Request("btn"), "YES", 1 ) > 0 Then OverideWarnings = "Y"
36
 
37
'----------------------------------------------
38
%>
39
<%
40
Sub RemoveReleaseReference	( nRtagId, nRefRtagId, outProblemsString )
41
 
42
	OraDatabase.Parameters.Add "RTAG_ID", 			nRtagId, 		ORAPARM_INPUT, ORATYPE_NUMBER 
43
	OraDatabase.Parameters.Add "REF_RTAG_ID", 		nRefRtagId, 	ORAPARM_INPUT, ORATYPE_NUMBER
44
 
45
 
46
	OraSession.BeginTrans
47
 
48
	OraDatabase.ExecuteSQL _
49
	" BEGIN "&_
50
	" 	PK_RELEASE.REMOVE_RELEASE_REFERENCE ( :RTAG_ID, :REF_RTAG_ID ); "&_
51
	" END; "
52
 
53
	OraSession.CommitTrans
54
 
55
 
56
	OraDatabase.Parameters.Remove "RTAG_ID"
57
	OraDatabase.Parameters.Remove "REF_RTAG_ID"
58
End Sub
59
%>
60
<%
61
'-----------------------  MAIN LINE  ---------------------------
62
 
63
'------ ACCESS CONTROL ----------
64
If NOT objAccessControl.IsVisible("RemoveReleaseReference") Then
65
	Call OpenInWindow ( "Login.asp?message=4&rfile="& scriptName & objPMod.ComposeURLWithout("rfile") )
66
End If
67
'--------------------------------
68
 
69
 
70
If (Request("rtag_id") <> "")  AND  (Request("refrtag_id") <> "") Then
71
 
72
	'--- Process submition ---
73
	If InStr(Request("refrtag_id"), ",") = 0 Then
74
		Call RemoveReleaseReference ( Request("rtag_id"), Request("refrtag_id"), ProblemsString )
75
	End If
76
 
77
	Response.Redirect( "dependencies.asp?rtag_id="& Request("rtag_id") )
78
 
79
Else
80
 
81
	Err.Raise 8, "This page requires more paramaters to run.<br>"& objPMod.ComposeURL()
82
 
83
End If
84
 
85
'----------------------------------------------------------------
86
%>
87
 
88
<!-- DESTRUCTOR ------->
89
<!--#include file="common/destructor.asp"-->