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