Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
' 			 	   Destroy Package
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 DestroyPackage ( nPvId, cOverrideWarnings, outProblemsString )
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
	OraSession.BeginTrans
49
 
50
	OraDatabase.ExecuteSQL _
51
	"BEGIN "&_
52
	" PK_PACKAGE.DESTROY_PACKAGE ( :PV_ID, :OVERRIDE_WARNINGS, :PROBLEM_STRING ); "&_
53
	"END; "
54
 
55
	OraSession.CommitTrans
56
 
57
	outProblemsString = OraDatabase.Parameters("PROBLEM_STRING").Value 
58
 
59
 
60
	OraDatabase.Parameters.Remove "PV_ID"
61
	OraDatabase.Parameters.Remove "OVERRIDE_WARNINGS"
62
	OraDatabase.Parameters.Remove "PROBLEM_STRING"
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
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
 
89
Else
90
 
91
	Err.Raise 8, "This page requires more paramaters to run.<br>"& objPMod.ComposeURL()
92
 
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">
114
  <tr>
115
    <td align="center" valign="middle" background="images/bg_form_lightgray.gif"><table width="650" border="0" cellspacing="0" cellpadding="0">
116
      <tr>
117
        <td>
118
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
119
            <tr>
120
              <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>
121
              <td background="images/lbox_bg_blue.gif"><!-- Heading -->
122
                  <img src="images/h_trsp_dot.gif" width="1" height="20">
123
                  <!-- END Heading --></td>
124
              <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>
125
            </tr>
126
            <tr>
127
              <td width="1%" bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
128
              <td bgcolor="#FFFFFF" valign="top">
129
                <!-- Body -->
130
                <table width="100%" border="0" cellspacing="1" cellpadding="2">
131
                  <form name="form" method="get" action="<%=ScriptName%>">
132
                    <tr>
133
                      <td width="1%"><img src="images/h_trsp_dot.gif" width="1" height="10"></td>
134
                      <td width="1%" nowrap class="form_group" valign="bottom"></td>
135
                      <td nowrap width="100%" align="right" class="form_step"></td>
136
                    </tr>
137
                    <tr>
138
                      <td width="1%">&nbsp;</td>
139
                      <td colspan="2" width="1%" nowrap class="form_field">
140
                        <table width="100%"  border="0" cellspacing="0" cellpadding="10">
141
                          <tr>
142
                            <td background="images/bg_form_lightbluedark.gif"><p class="err_ttl">Please note:</p></td>
143
                          </tr>
144
                          <tr>
145
                            <td background="images/bg_form_lightgray.gif" class="form_item">
146
							<%
147
							' Format problem report string to html
148
							Response.write Replace( Server.HTMLEncode( ProblemsString ), VBNewLine, "<br>" )
149
							%>
150
							</td>
151
                          </tr>
152
                          <tr>
153
                            <td background="images/bg_form_lightgray.gif" class="form_item">Do you still want to proceed ? </td>
154
                          </tr>
155
                      </table></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></td>
181
      </tr>
182
    </table></td>
183
  </tr>
184
</table>
185
</body>
186
</html>
187
 
188
 
189
<!-- DESTRUCTOR ------->
190
<!--#include file="common/destructor.asp"-->