Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

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