| 5357 |
dpurdie |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
Option explicit
|
|
|
4 |
Response.Expires = 0 ' always load the page, dont store
|
|
|
5 |
%>
|
|
|
6 |
<%
|
|
|
7 |
'=====================================================
|
|
|
8 |
' Obsolete Patch
|
|
|
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"-->
|
| 7286 |
dpurdie |
19 |
<!--#include file="common/_form_window_common.asp"-->
|
| 5357 |
dpurdie |
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 parPv_id
|
|
|
29 |
Dim patchRecCount
|
|
|
30 |
Dim rsTemp
|
|
|
31 |
Dim parRfile
|
|
|
32 |
'------------ Constants Declaration -----------
|
|
|
33 |
'------------ Variable Init -------------------
|
|
|
34 |
parPv_id = QStrPar("pv_id")
|
|
|
35 |
parRfile = QStrPar("rfile")
|
|
|
36 |
'----------------------------------------------
|
|
|
37 |
%>
|
|
|
38 |
<%
|
|
|
39 |
'----------------------------------------------------------------------------------------------------
|
|
|
40 |
Sub Run_onMakeOfficial ( nPv_id, nRtag_id )
|
|
|
41 |
|
|
|
42 |
Dim objWSH, proj_id, Qry
|
|
|
43 |
|
|
|
44 |
objEH.TryORA ( OraSession )
|
|
|
45 |
On Error Resume Next
|
|
|
46 |
|
|
|
47 |
OraDatabase.ExecuteSQL " UPDATE package_versions "&_
|
|
|
48 |
" SET release_notes_info = '"& enum_RELEASE_NOTES_GENERATING &"'"&_
|
|
|
49 |
" WHERE pv_id = "& nPv_id
|
|
|
50 |
|
|
|
51 |
objEH.CatchORA ( OraSession )
|
|
|
52 |
|
|
|
53 |
End Sub
|
|
|
54 |
'----------------------------------------------------------------------------------------------------
|
|
|
55 |
Sub MakeRelease ( NNpv_id, NNrtag_id )
|
|
|
56 |
|
|
|
57 |
OraDatabase.Parameters.Add "PV_ID", NNpv_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
58 |
OraDatabase.Parameters.Add "RTAG_ID", NNrtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
59 |
OraDatabase.Parameters.Add "USER_ID", objAccessControl.UserId, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
60 |
|
| 5590 |
dpurdie |
61 |
On Error Resume Next
|
|
|
62 |
objEH.ErrorRedirect = FALSE
|
| 5357 |
dpurdie |
63 |
objEH.TryORA ( OraSession )
|
| 5590 |
dpurdie |
64 |
|
| 5357 |
dpurdie |
65 |
OraDatabase.ExecuteSQL _
|
|
|
66 |
"BEGIN "&_
|
|
|
67 |
" PK_ENVIRONMENT.MAKE_RELEASE ( :PV_ID, :RTAG_ID, :USER_ID );"&_
|
|
|
68 |
"END; "
|
|
|
69 |
|
|
|
70 |
objEH.CatchORA ( OraSession )
|
|
|
71 |
|
|
|
72 |
OraDatabase.Parameters.Remove "PV_ID"
|
|
|
73 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
|
|
74 |
OraDatabase.Parameters.Remove "USER_ID"
|
|
|
75 |
|
|
|
76 |
'/* Log Action */
|
|
|
77 |
'Call Log_Action ( NNpv_id, "makeofficial", NULL )
|
|
|
78 |
|
|
|
79 |
End Sub
|
|
|
80 |
'-----------------------------------------------------------------------------------------
|
|
|
81 |
|
|
|
82 |
Sub MakeBulkReleasePatches ( NNPatch_id_list, NNrtagId )
|
|
|
83 |
Dim pvId, iLoop
|
|
|
84 |
pvId = split(NNPatch_id_list, ",")
|
|
|
85 |
|
|
|
86 |
|
|
|
87 |
For iLoop = LBound(pvId) to UBound(pvId)
|
|
|
88 |
pvId(iLoop) = Trim(pvId(iLoop))
|
|
|
89 |
Next
|
|
|
90 |
|
|
|
91 |
|
|
|
92 |
For iLoop = LBound(pvId) to UBound(pvId)
|
|
|
93 |
|
|
|
94 |
Call MakeRelease(pvId(iLoop), NNrtagId )
|
|
|
95 |
Call Run_onMakeOfficial(pvId(iLoop), NNrtagId)
|
|
|
96 |
|
|
|
97 |
Next
|
|
|
98 |
|
|
|
99 |
End Sub
|
|
|
100 |
%>
|
|
|
101 |
<%
|
|
|
102 |
'Process submission
|
|
|
103 |
'------------ Action Requirements -------------------
|
|
|
104 |
If CBool(QStrPar("action")) AND objAccessControl.UserLogedIn Then
|
|
|
105 |
Call MakeBulkReleasePatches ( Request("patch_id_list"), Request("rtag_id") )
|
| 5590 |
dpurdie |
106 |
If objEH.Finally Then
|
|
|
107 |
Call OpenInParentWindow ( "patches.asp?pv_id="& parPv_id &"&rtag_id="& Request("rtag_id") )
|
| 5957 |
dpurdie |
108 |
Call Destroy_All_Objects
|
| 5590 |
dpurdie |
109 |
Response.End
|
|
|
110 |
End If
|
| 5357 |
dpurdie |
111 |
End If
|
|
|
112 |
%>
|
|
|
113 |
<html>
|
|
|
114 |
<head>
|
|
|
115 |
<title>Release Manager</title>
|
|
|
116 |
<link rel="shortcut icon" href="<%=FavIcon%>"/>
|
|
|
117 |
<meta http-equiv="Pragma" content="no-cache">
|
|
|
118 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
| 6579 |
dpurdie |
119 |
<link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
|
|
|
120 |
<link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
|
|
|
121 |
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
|
| 5590 |
dpurdie |
122 |
<script language="javascript">
|
| 5357 |
dpurdie |
123 |
function checkAllAuto()
|
|
|
124 |
{
|
|
|
125 |
var args = arguments;
|
|
|
126 |
start_point:
|
|
|
127 |
for (var i=0;i<document.forms[0].elements.length;i++)
|
|
|
128 |
{
|
|
|
129 |
|
|
|
130 |
found = false;
|
|
|
131 |
var e=document.forms[0].elements[i];
|
|
|
132 |
if ((e.name != 'checkallauto') && (e.type=='checkbox'))
|
|
|
133 |
e.checked=document.forms[0].checkallauto.checked;
|
|
|
134 |
}
|
|
|
135 |
}
|
|
|
136 |
</script>
|
|
|
137 |
</head>
|
|
|
138 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();">
|
|
|
139 |
<%
|
|
|
140 |
'-- FROM START ---------------------------------------------------------------------------------------------------------------
|
|
|
141 |
objFormComponent.FormName = "FormSearch"
|
| 5590 |
dpurdie |
142 |
objFormComponent.FormClass = "form_tight"
|
| 5357 |
dpurdie |
143 |
objFormComponent.Action = scriptName
|
|
|
144 |
Call objFormComponent.FormStart()
|
|
|
145 |
%>
|
| 5590 |
dpurdie |
146 |
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
| 5357 |
dpurdie |
147 |
<!-- INCLUDE PATCHES +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
148 |
<%
|
|
|
149 |
OraDatabase.Parameters.Add "PV_ID", parPv_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
150 |
|
|
|
151 |
Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery("BulkPatchesRelease.sql"), cint(0))
|
|
|
152 |
|
|
|
153 |
OraDatabase.Parameters.Remove "PV_ID"
|
|
|
154 |
|
|
|
155 |
patchRecCount = rsTemp.RecordCount
|
|
|
156 |
%>
|
|
|
157 |
<tr>
|
|
|
158 |
<td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
|
| 5590 |
dpurdie |
159 |
<!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
160 |
<!--#include file="messages/_msg_inline.asp"-->
|
|
|
161 |
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
| 5357 |
dpurdie |
162 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
|
|
163 |
<tr>
|
|
|
164 |
<td width="33%" colspan="3" nowrap class="body_colb">Available Patches To Make Official<br>
|
| 5590 |
dpurdie |
165 |
<div style="min-height:300px;max-height:500px;overflow:auto;">
|
| 5357 |
dpurdie |
166 |
<table width="265" border="0">
|
|
|
167 |
<tr>
|
|
|
168 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_field"><input type="checkbox" name="checkallauto" value="Check All" onclick="checkAllAuto();"></td>
|
|
|
169 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_field"><b>Select All</b></td>
|
|
|
170 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_field"></td>
|
|
|
171 |
</tr>
|
|
|
172 |
<tr>
|
|
|
173 |
<td width="20" background="images/bg_form_lightbluedark.gif"> </td>
|
|
|
174 |
<td width="90" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Package</td>
|
|
|
175 |
<td width="119" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Patch Version</td>
|
|
|
176 |
</tr>
|
|
|
177 |
<%While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))%>
|
|
|
178 |
<tr>
|
|
|
179 |
<%If (rsTemp("patch_id")) <> "0" Then %>
|
|
|
180 |
<td><input type="checkbox" name="patch_id_list" value="<%=rsTemp("patch_id")%>"></td>
|
|
|
181 |
<%Else%>
|
|
|
182 |
<td><input type="checkbox" name="patch_id_list" value="<%=rsTemp("ppatch_id")%>"></td>
|
|
|
183 |
<%End If%>
|
|
|
184 |
<td nowrap class="form_txt"><%=rsTemp("pkg_name")%></td>
|
|
|
185 |
<td width="18" nowrap class="form_txt"><%=rsTemp("pkg_version")%></td>
|
|
|
186 |
</tr>
|
|
|
187 |
<%rsTemp.MoveNext
|
|
|
188 |
WEnd
|
|
|
189 |
|
|
|
190 |
rsTemp.Close
|
|
|
191 |
Set rsTemp = nothing
|
|
|
192 |
%>
|
|
|
193 |
</table>
|
| 5590 |
dpurdie |
194 |
</div>
|
| 5357 |
dpurdie |
195 |
</td>
|
|
|
196 |
</tr>
|
|
|
197 |
</table>
|
|
|
198 |
</td>
|
|
|
199 |
</tr>
|
|
|
200 |
<tr>
|
| 5590 |
dpurdie |
201 |
<td align="right">
|
|
|
202 |
<input type="submit" name="btn" value="Submit" class="form_btn_comp">
|
|
|
203 |
<input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="parent.closeIFrame()">
|
|
|
204 |
</td>
|
| 5357 |
dpurdie |
205 |
</tr>
|
|
|
206 |
</table>
|
|
|
207 |
<input type="hidden" name="pv_id" value="<%=parPv_id%>">
|
|
|
208 |
<input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
|
|
|
209 |
<input type="hidden" name="action" value="true">
|
|
|
210 |
<%
|
|
|
211 |
Call objFormComponent.FormEnd()
|
|
|
212 |
'-- FROM END ----------------------------------------------------------------------------------------------------------------
|
|
|
213 |
%>
|
|
|
214 |
</body>
|
|
|
215 |
</html>
|
|
|
216 |
<!-- DESTRUCTOR ------->
|
|
|
217 |
<!--#include file="common/destructor.asp"-->
|