Subversion Repositories DevTools

Rev

Rev 5506 | Go to most recent revision | Details | Compare with Previous | 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
5957 dpurdie 78
      Call Destroy_All_Objects
5357 dpurdie 79
      Response.Redirect( "dependencies.asp?rtag_id="& Request("ToRtag_id") )
80
   End If
81
 
82
Else
83
 
84
   Err.Raise 8, "This page requires more paramaters to run.<br>"& objPMod.ComposeURL()
85
 
86
End If
87
 
88
'----------------------------------------------------------------
89
%>
90
 
91
 
92
<html>
93
<head>
94
<title>Release Manager</title>
95
<link rel="shortcut icon" href="<%=FavIcon%>"/>
96
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
97
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
98
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
99
<link rel="stylesheet" href="images/navigation.css" type="text/css">
100
<script language="JavaScript" src="images/common.js"></script>
101
 
102
</head>
103
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
104
<!-- BODY ---->
105
 
106
 
107
<table width="100%" height="98%"  border="0" cellpadding="0" cellspacing="0">
108
   <tr>
109
      <td align="center" valign="middle" background="images/bg_form_lightgray.gif">
110
         <table width="650" border="0" cellspacing="0" cellpadding="0">
111
            <tr>
112
               <td>
113
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
114
                     <tr>
115
                        <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>
116
                        <td background="images/lbox_bg_blue.gif"><!-- Heading -->
117
                        <img src="images/h_trsp_dot.gif" width="1" height="20">
118
                        <!-- END Heading --></td>
119
                        <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>
120
                     </tr>
121
                     <tr>
122
                        <td width="1%" bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
123
                        <td bgcolor="#FFFFFF" valign="top">
124
                           <!-- Body -->
125
                           <table width="100%" border="0" cellspacing="1" cellpadding="2">
126
                              <form name="form" method="get" action="<%=ScriptName%>">
127
                                 <tr>
128
                                    <td width="1%"><img src="images/h_trsp_dot.gif" width="1" height="10"></td>
129
                                    <td width="1%" nowrap class="form_group" valign="bottom"></td>
130
                                    <td nowrap width="100%" align="right" class="form_step"></td>
131
                                 </tr>
132
                                 <tr>
133
                                    <td width="1%">&nbsp;</td>
134
                                    <td colspan="2" width="1%" nowrap class="form_field">
135
                                       <table width="100%"  border="0" cellspacing="0" cellpadding="10">
136
                                          <tr>
137
                                             <td background="images/bg_form_lightbluedark.gif"><p class="err_ttl">Please note:</p></td>
138
                                          </tr>
139
                                          <tr>
140
                                             <td background="images/bg_form_lightgray.gif" class="form_item">
141
                                                <%
142
                                                ' Format problem report string to html
143
                                                Response.write Replace( Server.HTMLEncode( ProblemsString ), VBNewLine, "<br>" )
144
                                                %>
145
                                             </td>
146
                                          </tr>
147
                                          <tr>
148
                                             <td background="images/bg_form_lightgray.gif" class="form_item">This action will be cancelled ? </td>
149
                                          </tr>
150
                                       </table>
151
                                    </td>
152
                                 </tr>
153
                                 <tr>
154
                                    <td width="1%">&nbsp;</td>
155
                                    <td width="1%" nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
156
                                    <td nowrap width="100%" class="body_scol">
157
                                       <br>
158
                                       <input type="reset" name="btn" value="   OK   " class="form_btn" onClick="history.back();">
159
                                       <br><br>
160
                                    </td>
161
                                 </tr>
162
                                 <%=objPMod.ComposeHiddenTags()%>
163
                              </form>
164
                           </table>
165
                           <!-- END Body-->
166
                        </td>
167
                        <td width="1%" background="images/lbox_bgside_white.gif">&nbsp;</td>
168
                     </tr>
169
                     <tr>
170
                        <td width="1%" background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
171
                        <td background="images/lbox_bg_blue.gif"></td>
172
                        <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>
173
                     </tr>
174
                  </table>
175
               </td>
176
            </tr>
177
         </table>
178
      </td>
179
   </tr>
180
</table>
181
</body>
182
</html>
183
<!-- DESTRUCTOR ------->
184
<!--#include file="common/destructor.asp"-->