| 5357 |
dpurdie |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
'=====================================================
|
|
|
4 |
'| |
|
|
|
5 |
'| REPORT |
|
|
|
6 |
'| Escrow |
|
|
|
7 |
'=====================================================
|
|
|
8 |
%>
|
|
|
9 |
<%
|
|
|
10 |
Option explicit
|
|
|
11 |
' Good idea to set when using redirect
|
|
|
12 |
Response.Expires = 0 ' always load the page, dont store
|
|
|
13 |
%>
|
|
|
14 |
<!--#include file="common/conf.asp"-->
|
|
|
15 |
<!--#include file="common/globals.asp"-->
|
|
|
16 |
<!--#include file="common/common_subs.asp"-->
|
|
|
17 |
<!--#include file="common/formating.asp"-->
|
|
|
18 |
<!--#include file="common/qstr.asp"-->
|
|
|
19 |
<!--#include file="common/common_dbedit.asp"-->
|
|
|
20 |
<%
|
|
|
21 |
'------------ ACCESS CONTROL ------------------
|
|
|
22 |
%>
|
| 6048 |
dpurdie |
23 |
<!--#include file="_access_control_login.asp"-->
|
| 5357 |
dpurdie |
24 |
<!--#include file="_access_control_general.asp"-->
|
|
|
25 |
<%
|
|
|
26 |
'------------ Variable Definition -------------
|
|
|
27 |
Dim rsQry
|
|
|
28 |
Dim rsTemp
|
|
|
29 |
Dim parPv_id, parExt
|
|
|
30 |
Dim objReleaseContent
|
|
|
31 |
Dim aReleaseContent
|
|
|
32 |
Dim objPackageDetails
|
|
|
33 |
Dim BldStd
|
|
|
34 |
'------------ Constants Declaration -----------
|
|
|
35 |
'------------ Variable Init -------------------
|
|
|
36 |
parRtag_id = Request("rtag_id")
|
|
|
37 |
parExt = Request("ext")
|
|
|
38 |
Set objReleaseContent = CreateObject("Scripting.Dictionary")
|
|
|
39 |
Set objPackageDetails = CreateObject("Scripting.Dictionary")
|
|
|
40 |
'----------------------------------------------
|
|
|
41 |
%>
|
|
|
42 |
<%
|
|
|
43 |
'----------------------------------------------------------------------------------------------------------------------------------------
|
|
|
44 |
Sub GetPackageInformation ( nPv_id, ByRef oPackageDetails )
|
|
|
45 |
Dim rsQry, query
|
|
|
46 |
query = _
|
|
|
47 |
" SELECT pkg.pkg_name, pv.* "&_
|
|
|
48 |
" FROM PACKAGES pkg,"&_
|
|
|
49 |
" PACKAGE_VERSIONS pv"&_
|
|
|
50 |
" WHERE pv.pv_id = "& nPv_id &_
|
|
|
51 |
" AND pv.pkg_id = pkg.pkg_id "
|
|
|
52 |
|
|
|
53 |
Set rsQry = OraDatabase.DbCreateDynaset( query, 0)
|
|
|
54 |
|
|
|
55 |
oPackageDetails.RemoveAll
|
|
|
56 |
|
|
|
57 |
If (NOT rsQry.BOF) AND (NOT rsQry.EOF) Then
|
|
|
58 |
oPackageDetails("pkg_name") = rsQry("pkg_name")
|
|
|
59 |
oPackageDetails("pkg_version") = rsQry("pkg_version")
|
|
|
60 |
oPackageDetails("v_ext") = rsQry("v_ext")
|
|
|
61 |
oPackageDetails("pv_description") = rsQry("pv_description")
|
|
|
62 |
oPackageDetails("pv_overview") = rsQry("pv_overview")
|
|
|
63 |
oPackageDetails("src_path") = rsQry("src_path")
|
|
|
64 |
oPackageDetails("pkg_label") = rsQry("pkg_label")
|
|
|
65 |
oPackageDetails("is_build_env_required") = rsQry("is_build_env_required")
|
|
|
66 |
|
|
|
67 |
End If
|
|
|
68 |
|
|
|
69 |
rsQry.Close()
|
|
|
70 |
Set rsQry = Nothing
|
|
|
71 |
End Sub
|
|
|
72 |
'----------------------------------------------------------------------------------------------------------------------------------------
|
|
|
73 |
Function SQL_Build_Std ( nPv_id )
|
|
|
74 |
SQL_Build_Std = _
|
|
|
75 |
" SELECT bs.bs_name"&_
|
|
|
76 |
" FROM RELEASE_MANAGER.PACKAGE_VERSIONS pv,"&_
|
|
|
77 |
" RELEASE_MANAGER.BUILD_STANDARDS bs"&_
|
|
|
78 |
" WHERE pv.PV_ID = "& nPv_id &_
|
|
|
79 |
" AND pv.BS_ID = bs.BS_ID "
|
|
|
80 |
End Function
|
|
|
81 |
'----------------------------------------------------------------------------------------------------------------------------------------
|
|
|
82 |
Function SQL_Build_Env ( nPv_id )
|
|
|
83 |
SQL_Build_Env = _
|
|
|
84 |
" SELECT bm.bm_name"&_
|
|
|
85 |
" FROM RELEASE_MANAGER.PACKAGE_BUILD_INFO pbi,"&_
|
|
|
86 |
" RELEASE_MANAGER.BUILD_MACHINES bm"&_
|
|
|
87 |
" WHERE pbi.PV_ID = "& nPv_id &_
|
|
|
88 |
" AND pbi.BM_ID = bm.BM_ID "&_
|
|
|
89 |
" ORDER BY UPPER(bm.BM_NAME) "
|
|
|
90 |
End Function
|
|
|
91 |
'----------------------------------------------------------------------------------------------------------------------------------------
|
|
|
92 |
Function SQL_Build_Dependencies ( nPv_id )
|
|
|
93 |
SQL_Build_Dependencies = _
|
|
|
94 |
" SELECT dpkg.pkg_name, dpv.pkg_version"&_
|
|
|
95 |
" FROM PACKAGE_DEPENDENCIES dep,"&_
|
|
|
96 |
" PACKAGES dpkg,"&_
|
|
|
97 |
" PACKAGE_VERSIONS dpv"&_
|
|
|
98 |
" WHERE dep.pv_id = "& nPv_id &_
|
|
|
99 |
" AND dep.DPV_ID = dpv.pv_id"&_
|
|
|
100 |
" AND dpv.pkg_id = dpkg.pkg_id "&_
|
|
|
101 |
" ORDER BY UPPER(dpkg.pkg_name) "
|
|
|
102 |
End Function
|
|
|
103 |
'----------------------------------------------------------------------------------------------------------------------------------------
|
|
|
104 |
Sub GetReleaseContent ( nRtag_id, ByRef oReleaseContent )
|
|
|
105 |
Dim rsQry, query
|
|
|
106 |
query = _
|
|
|
107 |
" SELECT qry.pv_id"&_
|
|
|
108 |
" FROM ("&_
|
|
|
109 |
" SELECT pv.pv_id, pkg.pkg_name, pv.pkg_version, 1 AS seq_num"&_
|
|
|
110 |
" FROM RELEASE_CONTENT rc,"&_
|
|
|
111 |
" PACKAGES pkg,"&_
|
|
|
112 |
" PACKAGE_VERSIONS pv"&_
|
|
|
113 |
" WHERE rc.rtag_id = "& nRtag_id &_
|
|
|
114 |
" AND pv.pkg_id = pkg.pkg_id"&_
|
|
|
115 |
" AND rc.pv_id = pv.pv_id"&_
|
|
|
116 |
" AND rc.BASE_VIEW_ID = 5 "&_
|
|
|
117 |
" UNION "&_
|
|
|
118 |
" SELECT pv.pv_id, pkg.pkg_name, pv.pkg_version, 2 AS seq_num"&_
|
|
|
119 |
" FROM RELEASE_CONTENT rc,"&_
|
|
|
120 |
" PACKAGES pkg,"&_
|
|
|
121 |
" PACKAGE_VERSIONS pv"&_
|
|
|
122 |
" WHERE rc.rtag_id = "& nRtag_id &_
|
|
|
123 |
" AND pv.pkg_id = pkg.pkg_id"&_
|
|
|
124 |
" AND rc.pv_id = pv.pv_id"&_
|
|
|
125 |
" AND rc.BASE_VIEW_ID != 5"&_
|
|
|
126 |
" ) qry "&_
|
|
|
127 |
" ORDER BY qry.seq_num, UPPER(qry.pkg_name)"
|
|
|
128 |
|
|
|
129 |
Set rsQry = OraDatabase.DbCreateDynaset( query, 0)
|
|
|
130 |
|
|
|
131 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
|
|
132 |
oReleaseContent( CStr( rsQry("pv_id")) ) = ""
|
|
|
133 |
rsQry.MoveNext()
|
|
|
134 |
WEnd
|
|
|
135 |
|
|
|
136 |
rsQry.Close()
|
|
|
137 |
Set rsQry = Nothing
|
|
|
138 |
End Sub
|
|
|
139 |
'----------------------------------------------------------------------------------------------------------------------------------------
|
|
|
140 |
|
|
|
141 |
%>
|
|
|
142 |
<%
|
|
|
143 |
'---------------------- Run Before Page ---------------------------
|
|
|
144 |
Call GetReleaseContent ( parRtag_id, objReleaseContent )
|
|
|
145 |
'------------------------------------------------------------------
|
|
|
146 |
%>
|
|
|
147 |
<html>
|
|
|
148 |
<head>
|
|
|
149 |
<title>Release Manager</title>
|
|
|
150 |
<link rel="shortcut icon" href="<%=FavIcon%>"/>
|
|
|
151 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
152 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
153 |
</head>
|
|
|
154 |
<body>
|
|
|
155 |
|
|
|
156 |
<%
|
|
|
157 |
aReleaseContent = objReleaseContent.Keys
|
|
|
158 |
For Each parPv_id In aReleaseContent
|
|
|
159 |
Response.Flush
|
|
|
160 |
Call GetPackageInformation ( parPv_id, objPackageDetails )
|
|
|
161 |
%>
|
|
|
162 |
<a name="<%=objPackageDetails.Item("pkg_name")%>"></a>
|
|
|
163 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
164 |
<tr>
|
|
|
165 |
<td class="body_colb"><h3><%=objPackageDetails.Item("pkg_name")%></h3></td>
|
|
|
166 |
</tr>
|
|
|
167 |
</table>
|
|
|
168 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
169 |
<tr>
|
|
|
170 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Version:</strong></td>
|
|
|
171 |
<td bgcolor="#FFFFFF" class="sublbox_txt"><%=objPackageDetails.Item("pkg_version")%></td>
|
|
|
172 |
</tr>
|
|
|
173 |
<tr>
|
|
|
174 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Source Path:</strong> </td>
|
|
|
175 |
<td bgcolor="#FFFFFF" class="sublbox_txt"><%=objPackageDetails.Item("src_path")%></td>
|
|
|
176 |
</tr>
|
|
|
177 |
<tr>
|
|
|
178 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Source Label:</strong></td>
|
|
|
179 |
<td bgcolor="#FFFFFF" class="sublbox_txt"><%=objPackageDetails.Item("pkg_label")%></td>
|
|
|
180 |
</tr>
|
|
|
181 |
<tr>
|
|
|
182 |
<td width="1%" nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Short Description:</strong></td>
|
|
|
183 |
<td witdh="100%" bgcolor="#FFFFFF" class="sublbox_txt"><%=NewLine_To_BR ( To_HTML( objPackageDetails.Item("pv_description") ) )%></td>
|
|
|
184 |
</tr>
|
|
|
185 |
<tr>
|
|
|
186 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Package Overview:</strong> </td>
|
|
|
187 |
<td bgcolor="#FFFFFF" class="sublbox_txt"><%=NewLine_To_BR ( To_HTML( objPackageDetails.Item("pv_overview") ) )%></td>
|
|
|
188 |
</tr>
|
|
|
189 |
<tr>
|
|
|
190 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>General Sublicense Material:</strong> </td>
|
|
|
191 |
<td bgcolor="#FFFFFF" class="sublbox_txt"><%If objPackageDetails.Item("v_ext") = parExt Then%>Yes<%Else%>No<%End If%></td>
|
|
|
192 |
</tr>
|
|
|
193 |
<tr>
|
|
|
194 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Build Environment:</strong> </td>
|
|
|
195 |
<td bgcolor="#FFFFFF" class="sublbox_txt"><%If objPackageDetails.Item("is_build_env_required") = enumDB_NO Then%>Not Required.<%End If%>
|
|
|
196 |
<%
|
|
|
197 |
'--- Get Build Env Details
|
|
|
198 |
|
|
|
199 |
Set rsQry = OraDatabase.DbCreateDynaset( SQL_Build_Std ( parPv_id ), cint(0))
|
|
|
200 |
If ((NOT rsQry.BOF) AND (NOT rsQry.EOF)) Then
|
|
|
201 |
BldStd = rsQry("bs_name")
|
|
|
202 |
rsQry.Close
|
|
|
203 |
|
|
|
204 |
Set rsQry = OraDatabase.DbCreateDynaset( SQL_Build_Env ( parPv_id ), cint(0))
|
|
|
205 |
%>
|
|
|
206 |
<ul>
|
|
|
207 |
<%
|
|
|
208 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
|
|
209 |
%>
|
|
|
210 |
<li><%=BldStd%>, <%=rsQry("bm_name")%></li>
|
|
|
211 |
<%rsQry.MoveNext
|
|
|
212 |
WEnd
|
|
|
213 |
%>
|
|
|
214 |
</ul>
|
|
|
215 |
<%End If%>
|
|
|
216 |
</td>
|
|
|
217 |
</tr>
|
|
|
218 |
<tr>
|
|
|
219 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Build Dependencies:</strong> </td>
|
|
|
220 |
<td bgcolor="#FFFFFF" class="sublbox_txt">
|
|
|
221 |
<%
|
|
|
222 |
'--- Get Build Dependencies Details
|
|
|
223 |
|
|
|
224 |
Set rsQry = OraDatabase.DbCreateDynaset( SQL_Build_Dependencies ( parPv_id ), cint(0))
|
|
|
225 |
%>
|
|
|
226 |
<table width="100%" cellspacing="0" cellpadding="2" border="1">
|
|
|
227 |
<tr>
|
|
|
228 |
<td nowrap class="sublbox_txt" bgcolor="#FFFFFF" width="1%"><strong>Software Component</strong></td>
|
|
|
229 |
<td nowrap class="sublbox_txt" bgcolor="#FFFFFF" width="100%"><strong>Version</strong></td>
|
|
|
230 |
</tr>
|
|
|
231 |
<%If rsQry.RecordCount < 1 Then%>
|
|
|
232 |
<tr>
|
|
|
233 |
<td nowrap class="sublbox_txt">No Dependencies</td>
|
|
|
234 |
<td nowrap class="sublbox_txt"></td>
|
|
|
235 |
</tr>
|
|
|
236 |
<%End If%>
|
|
|
237 |
<%
|
|
|
238 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
|
|
239 |
%>
|
|
|
240 |
<tr>
|
|
|
241 |
<td nowrap class="sublbox_txt"><a href="#<%=rsQry("pkg_name")%>"><%=rsQry("pkg_name")%></a></td>
|
|
|
242 |
<td nowrap class="sublbox_txt"><%=rsQry("pkg_version")%></td>
|
|
|
243 |
</tr>
|
|
|
244 |
<%rsQry.MoveNext
|
|
|
245 |
WEnd
|
|
|
246 |
%>
|
|
|
247 |
</table>
|
|
|
248 |
</td>
|
|
|
249 |
</tr>
|
|
|
250 |
</table>
|
|
|
251 |
<br><br>
|
|
|
252 |
<%
|
|
|
253 |
'Exit For
|
|
|
254 |
Next
|
|
|
255 |
%>
|
|
|
256 |
</body>
|
|
|
257 |
</html>
|
|
|
258 |
<%
|
|
|
259 |
Call Destroy_All_Objects
|
|
|
260 |
%>
|