| 119 |
ghuddy |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
Option explicit
|
| 129 |
ghuddy |
4 |
Response.Expires = 0 ' always load the page, dont store
|
| 119 |
ghuddy |
5 |
%>
|
|
|
6 |
<%
|
|
|
7 |
'=====================================================
|
| 129 |
ghuddy |
8 |
' Obsolete Patch
|
| 119 |
ghuddy |
9 |
'=====================================================
|
|
|
10 |
%>
|
|
|
11 |
<!--#include file="common/conf.asp"-->
|
|
|
12 |
<!--#include file="common/globals.asp"-->
|
|
|
13 |
<!--#include file="common/formating.asp"-->
|
|
|
14 |
<!--#include file="common/qstr.asp"-->
|
|
|
15 |
<!--#include file="common/common_subs.asp"-->
|
|
|
16 |
<!--#include file="common/common_dbedit.asp"-->
|
|
|
17 |
<!--#include file="controls/ERGFormComponent/classFormComponent.asp"-->
|
|
|
18 |
<!--#include file="common/_popup_window_common.asp"-->
|
|
|
19 |
<%
|
|
|
20 |
'------------ ACCESS CONTROL ------------------
|
|
|
21 |
%>
|
|
|
22 |
<!--#include file="_access_control_login.asp"-->
|
|
|
23 |
<!--#include file="_access_control_general.asp"-->
|
|
|
24 |
<!--#include file="_access_control_project.asp"-->
|
|
|
25 |
<%
|
|
|
26 |
'------------ Variable Definition -------------
|
|
|
27 |
Dim parPv_id
|
|
|
28 |
Dim objFormComponent
|
|
|
29 |
Dim patchRecCount
|
|
|
30 |
Dim rsTemp
|
|
|
31 |
'------------ Constants Declaration -----------
|
|
|
32 |
'------------ Variable Init -------------------
|
|
|
33 |
parPv_id = QStrPar("pv_id")
|
|
|
34 |
Set objFormComponent = New FormComponent
|
|
|
35 |
'----------------------------------------------
|
|
|
36 |
%>
|
|
|
37 |
<%
|
|
|
38 |
'Function Get_Comments( NNPv_id )
|
| 129 |
ghuddy |
39 |
' Dim rsTemp, Query_String
|
|
|
40 |
' Query_String = _
|
|
|
41 |
' " SELECT obsolete_comments"&_
|
|
|
42 |
' " FROM package_versions"&_
|
|
|
43 |
' " WHERE pv_id = "& NNPv_id
|
|
|
44 |
' Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
|
|
45 |
' If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
|
|
|
46 |
' Get_Comments = rsTemp.Fields("obsolete_comments")
|
|
|
47 |
' End If
|
|
|
48 |
' rsTemp.Close
|
|
|
49 |
' Set rsTemp = nothing
|
| 119 |
ghuddy |
50 |
'End Function
|
|
|
51 |
|
|
|
52 |
Sub SubmitObsoleteComments ( NNPatch_id_list )
|
| 129 |
ghuddy |
53 |
Dim isPatchObsolete
|
| 119 |
ghuddy |
54 |
|
| 129 |
ghuddy |
55 |
isPatchObsolete = "Y"
|
|
|
56 |
If Request("unobsolete") <> "" Then
|
|
|
57 |
isPatchObsolete = NULL
|
|
|
58 |
End If
|
| 119 |
ghuddy |
59 |
|
| 129 |
ghuddy |
60 |
OraDatabase.Parameters.Add "PATCH_ID_LIST", NNPatch_id_list, ORAPARM_INPUT, ORATYPE_VARCHAR2
|
|
|
61 |
OraDatabase.Parameters.Add "IS_OBSOLETE", isPatchObsolete, ORAPARM_INPUT, ORATYPE_CHAR
|
|
|
62 |
OraDatabase.Parameters.Add "OBSOLETE_COMMENTS", Request("obsolete_comments"), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
|
|
63 |
OraDatabase.Parameters.Add "USER_ID", objAccessControl.UserId, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 119 |
ghuddy |
64 |
|
| 129 |
ghuddy |
65 |
On Error Resume Next
|
|
|
66 |
objEH.TryORA ( OraSession )
|
|
|
67 |
|
|
|
68 |
OraDatabase.ExecuteSQL _
|
|
|
69 |
" BEGIN PK_PACKAGE.OBSOLETE_PATCHES ( :PATCH_ID_LIST, :IS_OBSOLETE, :OBSOLETE_COMMENTS, :USER_ID ); END;"
|
|
|
70 |
|
|
|
71 |
objEH.CatchORA ( OraSession )
|
|
|
72 |
|
|
|
73 |
OraDatabase.Parameters.Remove "PATCH_ID_LIST"
|
|
|
74 |
OraDatabase.Parameters.Remove "USER_ID"
|
|
|
75 |
OraDatabase.Parameters.Remove "IS_OBSOLETE"
|
|
|
76 |
OraDatabase.Parameters.Remove "OBSOLETE_COMMENTS"
|
|
|
77 |
|
| 119 |
ghuddy |
78 |
End Sub
|
|
|
79 |
%>
|
|
|
80 |
<%
|
|
|
81 |
'Process submission
|
|
|
82 |
'------------ Action Requirements -------------------
|
|
|
83 |
If CBool(QStrPar("action")) AND objAccessControl.UserLogedIn Then
|
| 129 |
ghuddy |
84 |
|
|
|
85 |
Call SubmitObsoleteComments ( Request("patch_id_list") )
|
|
|
86 |
Call OpenInParentWindow ( "patches.asp?pv_id="& parPv_id &"&rtag_id="& Request("rtag_id") )
|
|
|
87 |
Call CloseWindow
|
|
|
88 |
|
| 119 |
ghuddy |
89 |
End If
|
|
|
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 |
</head>
|
|
|
100 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();document.FormSearch.obsolete_comments.focus();">
|
|
|
101 |
<%
|
|
|
102 |
'-- FROM START ---------------------------------------------------------------------------------------------------------------
|
|
|
103 |
objFormComponent.FormName = "FormSearch"
|
|
|
104 |
objFormComponent.Action = scriptName
|
|
|
105 |
Call objFormComponent.FormStart()
|
| 129 |
ghuddy |
106 |
%>
|
|
|
107 |
<table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
|
|
|
108 |
<tr>
|
|
|
109 |
<td background="images/lbox_bg_orange.gif" width="1%" height="1%"><img src="images/i_new_pkg_off.gif" width="21" height="23" hspace="5" border="0"></td>
|
|
|
110 |
<td background="images/lbox_bg_blue.gif" nowrap width="50%" class="wform_ttl"> Make Patches Obsolete</td>
|
|
|
111 |
<td background="images/lbox_bg_blue.gif" align="right" width="50%">
|
|
|
112 |
<input type="submit" name="btn" value="Submit" class="form_btn_comp">
|
|
|
113 |
<input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="self.close()">
|
|
|
114 |
</td>
|
|
|
115 |
<td background="images/lbox_bg_blue.gif" align="right" width="1%%" nowrap><img src="images/h_trsp_dot.gif" width="5" height="22"></td>
|
|
|
116 |
</tr>
|
|
|
117 |
<tr>
|
|
|
118 |
<td height="100%" width="1%"> </td>
|
|
|
119 |
<td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
|
|
|
120 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
|
|
121 |
<tr>
|
|
|
122 |
<td width="4%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
|
|
|
123 |
<td nowrap width="60%"> </td>
|
|
|
124 |
</tr>
|
|
|
125 |
<tr>
|
|
|
126 |
<td width="4%"> </td>
|
|
|
127 |
<td nowrap width="60%" background="images/bg_form_lightbluedark.gif" class="form_txt">
|
|
|
128 |
<textarea name="obsolete_comments" class="form_item" cols="60" rows="10"></textarea>
|
| 119 |
ghuddy |
129 |
|
| 129 |
ghuddy |
130 |
<input type="hidden" name="pv_id" value="<%=parPv_id%>">
|
|
|
131 |
<input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
|
|
|
132 |
<input type="hidden" name="rfile" value="<%=Request("rfile")%>">
|
|
|
133 |
<input type="hidden" name="action" value="true">
|
|
|
134 |
</td>
|
|
|
135 |
</tr>
|
|
|
136 |
<tr>
|
|
|
137 |
<td width="4%"> </td>
|
|
|
138 |
<td nowrap width="60%">
|
|
|
139 |
<p> </p>
|
|
|
140 |
</td>
|
|
|
141 |
</tr>
|
|
|
142 |
<!-- INCLUDE PATCHES +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
143 |
<%
|
|
|
144 |
OraDatabase.Parameters.Add "PV_ID", parPv_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
145 |
OraDatabase.Parameters.Add "HIDE_OBSOLETE", "Y", ORAPARM_INPUT, ORATYPE_CHAR
|
|
|
146 |
|
|
|
147 |
Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery("Patches.sql"), cint(0))
|
|
|
148 |
|
|
|
149 |
OraDatabase.Parameters.Remove "PV_ID"
|
|
|
150 |
OraDatabase.Parameters.Remove "HIDE_OBSOLETE"
|
|
|
151 |
|
|
|
152 |
patchRecCount = rsTemp.RecordCount
|
|
|
153 |
|
|
|
154 |
%>
|
|
|
155 |
<tr>
|
|
|
156 |
<td width="33%" colspan="3" nowrap class="body_colb">Available Patches For Obsolete<br>
|
|
|
157 |
<table width="265" border="0">
|
|
|
158 |
<tr>
|
|
|
159 |
<td width="20" background="images/bg_form_lightbluedark.gif"> </td>
|
|
|
160 |
<td width="90" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Package</td>
|
|
|
161 |
<td width="119" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Patch Version</td>
|
|
|
162 |
</tr>
|
|
|
163 |
<%While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))%>
|
|
|
164 |
<tr>
|
|
|
165 |
<%If (rsTemp("patch_id")) <> "0" Then %>
|
|
|
166 |
<td><input type="checkbox" name="patch_id_list" value="<%=rsTemp("patch_id")%>"></td>
|
|
|
167 |
<%Else%>
|
|
|
168 |
<td><input type="checkbox" name="patch_id_list" value="<%=rsTemp("ppatch_id")%>"></td>
|
|
|
169 |
<%End If%>
|
|
|
170 |
<td nowrap class="form_txt"><%=rsTemp("pkg_name")%></td>
|
|
|
171 |
<td width="18" nowrap class="form_txt"><%=rsTemp("pkg_version")%></td>
|
|
|
172 |
</tr>
|
|
|
173 |
<%rsTemp.MoveNext
|
|
|
174 |
WEnd
|
|
|
175 |
|
|
|
176 |
rsTemp.Close
|
|
|
177 |
Set rsTemp = nothing
|
|
|
178 |
%>
|
|
|
179 |
</table>
|
|
|
180 |
<br>
|
|
|
181 |
</td>
|
|
|
182 |
</tr>
|
|
|
183 |
</table>
|
|
|
184 |
</td>
|
|
|
185 |
</tr>
|
|
|
186 |
<tr>
|
|
|
187 |
<td height="1%" width="1%"><img src="images/h_trsp_dot.gif" width="5" height="5"></td>
|
|
|
188 |
<td valign="top" nowrap colspan="3" class="wform_ttl" background="images/lbox_bg_blue.gif"></td>
|
|
|
189 |
</tr>
|
|
|
190 |
</table>
|
|
|
191 |
|
|
|
192 |
|
| 119 |
ghuddy |
193 |
<%
|
|
|
194 |
Call objFormComponent.FormEnd()
|
|
|
195 |
'-- FROM END ----------------------------------------------------------------------------------------------------------------
|
|
|
196 |
%>
|
|
|
197 |
</body>
|
|
|
198 |
</html>
|
|
|
199 |
|
|
|
200 |
|
|
|
201 |
<!-- DESTRUCTOR ------->
|
| 129 |
ghuddy |
202 |
<!--#include file="common/destructor.asp"-->
|