| 119 |
ghuddy |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
'=====================================================
|
| 129 |
ghuddy |
4 |
' Remove release reference
|
| 119 |
ghuddy |
5 |
' --- PROCESS FORM ---
|
|
|
6 |
'=====================================================
|
|
|
7 |
%>
|
|
|
8 |
<%
|
|
|
9 |
Option explicit
|
|
|
10 |
' Good idea to set when using redirect
|
| 129 |
ghuddy |
11 |
Response.Expires = 0 ' always load the page, dont store
|
| 119 |
ghuddy |
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 |
<%
|
| 129 |
ghuddy |
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 |
objEH.TryORA ( OraSession )
|
|
|
46 |
On Error Resume Next
|
|
|
47 |
|
|
|
48 |
OraDatabase.ExecuteSQL _
|
|
|
49 |
" BEGIN "&_
|
|
|
50 |
" PK_RELEASE.REMOVE_RELEASE_REFERENCE ( :RTAG_ID, :REF_RTAG_ID ); "&_
|
|
|
51 |
" END; "
|
|
|
52 |
|
|
|
53 |
objEH.CatchORA ( OraSession )
|
|
|
54 |
|
|
|
55 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
|
|
56 |
OraDatabase.Parameters.Remove "REF_RTAG_ID"
|
| 119 |
ghuddy |
57 |
End Sub
|
|
|
58 |
%>
|
|
|
59 |
<%
|
|
|
60 |
'----------------------- MAIN LINE ---------------------------
|
|
|
61 |
|
|
|
62 |
'------ ACCESS CONTROL ----------
|
| 5061 |
dpurdie |
63 |
If NOT canShowControlInProject("RemoveReleaseReference") Then
|
| 129 |
ghuddy |
64 |
Call OpenInWindow ( "Login.asp?message=4&rfile="& scriptName & objPMod.ComposeURLWithout("rfile") )
|
| 119 |
ghuddy |
65 |
End If
|
|
|
66 |
'--------------------------------
|
|
|
67 |
|
|
|
68 |
|
|
|
69 |
If (Request("rtag_id") <> "") AND (Request("refrtag_id") <> "") Then
|
| 129 |
ghuddy |
70 |
|
|
|
71 |
'--- Process submition ---
|
|
|
72 |
If InStr(Request("refrtag_id"), ",") = 0 Then
|
|
|
73 |
Call RemoveReleaseReference ( Request("rtag_id"), Request("refrtag_id"), ProblemsString )
|
|
|
74 |
End If
|
|
|
75 |
|
| 5957 |
dpurdie |
76 |
Call Destroy_All_Objects
|
| 129 |
ghuddy |
77 |
Response.Redirect( "dependencies.asp?rtag_id="& Request("rtag_id") )
|
|
|
78 |
|
| 119 |
ghuddy |
79 |
Else
|
| 129 |
ghuddy |
80 |
|
|
|
81 |
Err.Raise 8, "This page requires more paramaters to run.<br>"& objPMod.ComposeURL()
|
|
|
82 |
|
| 119 |
ghuddy |
83 |
End If
|
|
|
84 |
|
|
|
85 |
'----------------------------------------------------------------
|
|
|
86 |
%>
|
|
|
87 |
<!-- DESTRUCTOR ------->
|
| 129 |
ghuddy |
88 |
<!--#include file="common/destructor.asp"-->
|