Subversion Repositories DevTools

Rev

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

Rev Author Line No. Line
5357 dpurdie 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'                 Add
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 AddReleaseReference   ( 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
   OraDatabase.Parameters.Add "PROBLEM_STRING", NULL,       ORAPARM_OUTPUT, ORATYPE_VARCHAR2
45
 
46
   objEH.TryORA ( OraSession )
47
   On Error Resume Next
48
 
49
   OraDatabase.ExecuteSQL _
50
   " BEGIN "&_
51
   "    PK_RELEASE.ADD_RELEASE_REFERENCE ( :RTAG_ID, :REF_RTAG_ID, :PROBLEM_STRING ); "&_
52
   " END; "
53
 
54
   objEH.CatchORA ( OraSession )
55
 
56
   outProblemsString = OraDatabase.Parameters("PROBLEM_STRING").Value
57
 
58
   OraDatabase.Parameters.Remove "RTAG_ID"
59
   OraDatabase.Parameters.Remove "REF_RTAG_ID"
60
   OraDatabase.Parameters.Remove "PROBLEM_STRING"
61
End Sub
62
%>
63
<%
64
'-----------------------  MAIN LINE  ---------------------------
65
 
66
'------ ACCESS CONTROL ----------
67
If NOT canShowControlInProject("AddReleaseReference") Then
68
   Call OpenInWindow ( "Login.asp?message=4&rfile="& scriptName & objPMod.ComposeURLWithout("rfile") )
69
End If
70
'--------------------------------
71
 
72
If (Request("RefRtag_id") <> "")  AND  (Request("ToRtag_id") <> "") Then
73
 
74
   '--- Process submition ---
75
   Call AddReleaseReference ( Request("ToRtag_id"), Request("RefRtag_id"), ProblemsString )
76
 
77
   If IsNull( ProblemsString ) Then
78
      Response.Redirect( "dependencies.asp?rtag_id="& Request("ToRtag_id") )
79
   End If
80
 
81
Else
82
 
83
   Err.Raise 8, "This page requires more paramaters to run.<br>"& objPMod.ComposeURL()
84
 
85
End If
86
 
87
'----------------------------------------------------------------
88
%>
89
 
90
 
91
<html>
92
<head>
93
<title>Release Manager</title>
94
<link rel="shortcut icon" href="<%=FavIcon%>"/>
95
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
96
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
97
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
98
<link rel="stylesheet" href="images/navigation.css" type="text/css">
99
<script language="JavaScript" src="images/common.js"></script>
100
 
101
</head>
102
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
103
<!-- BODY ---->
104
 
105
 
106
<table width="100%" height="98%"  border="0" cellpadding="0" cellspacing="0">
107
   <tr>
108
      <td align="center" valign="middle" background="images/bg_form_lightgray.gif">
109
         <table width="650" border="0" cellspacing="0" cellpadding="0">
110
            <tr>
111
               <td>
112
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
113
                     <tr>
114
                        <td align="left" valign="top" width="1%" background="images/lbox_bg_blue.gif"><img src="images/lbox_tl_cnr_b.gif" width="13" height="13"></td>
115
                        <td background="images/lbox_bg_blue.gif"><!-- Heading -->
116
                        <img src="images/h_trsp_dot.gif" width="1" height="20">
117
                        <!-- END Heading --></td>
118
                        <td align="right" valign="top" width="1%" background="images/lbox_bg_blue.gif"><img src="images/lbox_tr_cnr_b.gif" width="13" height="13"></td>
119
                     </tr>
120
                     <tr>
121
                        <td width="1%" bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
122
                        <td bgcolor="#FFFFFF" valign="top">
123
                           <!-- Body -->
124
                           <table width="100%" border="0" cellspacing="1" cellpadding="2">
125
                              <form name="form" method="get" action="<%=ScriptName%>">
126
                                 <tr>
127
                                    <td width="1%"><img src="images/h_trsp_dot.gif" width="1" height="10"></td>
128
                                    <td width="1%" nowrap class="form_group" valign="bottom"></td>
129
                                    <td nowrap width="100%" align="right" class="form_step"></td>
130
                                 </tr>
131
                                 <tr>
132
                                    <td width="1%">&nbsp;</td>
133
                                    <td colspan="2" width="1%" nowrap class="form_field">
134
                                       <table width="100%"  border="0" cellspacing="0" cellpadding="10">
135
                                          <tr>
136
                                             <td background="images/bg_form_lightbluedark.gif"><p class="err_ttl">Please note:</p></td>
137
                                          </tr>
138
                                          <tr>
139
                                             <td background="images/bg_form_lightgray.gif" class="form_item">
140
                                                <%
141
                                                ' Format problem report string to html
142
                                                Response.write Replace( Server.HTMLEncode( ProblemsString ), VBNewLine, "<br>" )
143
                                                %>
144
                                             </td>
145
                                          </tr>
146
                                          <tr>
147
                                             <td background="images/bg_form_lightgray.gif" class="form_item">This action will be cancelled ? </td>
148
                                          </tr>
149
                                       </table>
150
                                    </td>
151
                                 </tr>
152
                                 <tr>
153
                                    <td width="1%">&nbsp;</td>
154
                                    <td width="1%" nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
155
                                    <td nowrap width="100%" class="body_scol">
156
                                       <br>
157
                                       <input type="reset" name="btn" value="   OK   " class="form_btn" onClick="history.back();">
158
                                       <br><br>
159
                                    </td>
160
                                 </tr>
161
                                 <%=objPMod.ComposeHiddenTags()%>
162
                              </form>
163
                           </table>
164
                           <!-- END Body-->
165
                        </td>
166
                        <td width="1%" background="images/lbox_bgside_white.gif">&nbsp;</td>
167
                     </tr>
168
                     <tr>
169
                        <td width="1%" background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
170
                        <td background="images/lbox_bg_blue.gif"></td>
171
                        <td width="1%" background="images/lbox_bg_blue.gif" valign="bottom" align="right"><img src="images/lbox_br_cnr_b.gif" width="13" height="13"></td>
172
                     </tr>
173
                  </table>
174
               </td>
175
            </tr>
176
         </table>
177
      </td>
178
   </tr>
179
</table>
180
</body>
181
</html>
182
 
183
 
184
<!-- DESTRUCTOR ------->
185
<!--#include file="common/destructor.asp"-->