Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 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
%>
23
<!--#include file="_access_control_general.asp"-->
24
<%
25
'------------ Variable Definition -------------
26
Dim rsQry
27
Dim rsTemp
28
Dim parPv_id, parExt
29
Dim objReleaseContent
30
Dim aReleaseContent
31
Dim objPackageDetails
32
'------------ Constants Declaration -----------
33
'------------ Variable Init -------------------
34
parRtag_id = Request("rtag_id")
35
parExt = Request("ext")
36
Set objReleaseContent = CreateObject("Scripting.Dictionary")
37
Set objPackageDetails = CreateObject("Scripting.Dictionary")
38
'----------------------------------------------
39
%>
40
<%
41
'----------------------------------------------------------------------------------------------------------------------------------------
42
Sub GetPackageInformation ( nPv_id, ByRef oPackageDetails )
43
	Dim rsQry, query
44
	query = _
45
	" SELECT pkg.pkg_name, pv.* "&_
46
	"  FROM PACKAGES pkg,"&_
47
	"       PACKAGE_VERSIONS pv"&_
48
	" WHERE pv.pv_id = "& nPv_id &_
49
	"   AND pv.pkg_id = pkg.pkg_id	"
50
 
51
	Set rsQry = OraDatabase.DbCreateDynaset( query, 0)
52
 
53
	oPackageDetails.RemoveAll
54
 
55
	If (NOT rsQry.BOF) AND (NOT rsQry.EOF) Then
56
		oPackageDetails("pkg_name") = rsQry("pkg_name")
57
		oPackageDetails("pkg_version") = rsQry("pkg_version")
58
		oPackageDetails("v_ext") = rsQry("v_ext")
59
		oPackageDetails("pv_description") = rsQry("pv_description")
60
		oPackageDetails("pv_overview") = rsQry("pv_overview")
61
		oPackageDetails("src_path") = rsQry("src_path")
62
		oPackageDetails("pkg_label") = rsQry("pkg_label")
63
		oPackageDetails("is_build_env_required") = rsQry("is_build_env_required")
64
 
65
	End If
66
 
67
	rsQry.Close()
68
	Set rsQry = Nothing
69
End Sub
70
'----------------------------------------------------------------------------------------------------------------------------------------
71
Function SQL_Build_Env ( nPv_id )
72
	SQL_Build_Env = _
73
	" SELECT be.*"&_
74
	"  FROM BUILD_ENVIRONMENTS be,"&_
75
	"	   PACKAGE_BUILD_ENV pbe"&_
76
	" WHERE pbe.PV_ID = "& nPv_id &_
77
	"   AND pbe.BE_ID = be.BE_ID "&_
78
	" ORDER BY UPPER(be.BE_NAME) "
79
End Function
80
'----------------------------------------------------------------------------------------------------------------------------------------
81
Function SQL_Build_Dependencies ( nPv_id )
82
	SQL_Build_Dependencies = _
83
	" SELECT dpkg.pkg_name, dpv.pkg_version"&_
84
	"	  FROM PACKAGE_DEPENDENCIES dep,"&_
85
	"	  	   PACKAGES dpkg,"&_
86
	"		   PACKAGE_VERSIONS dpv"&_
87
	"	 WHERE dep.pv_id = "& nPv_id &_
88
	"	   AND dep.DPV_ID = dpv.pv_id"&_
89
	"	   AND dpv.pkg_id = dpkg.pkg_id	"&_
90
	"	ORDER BY UPPER(dpkg.pkg_name) "
91
End Function
92
'----------------------------------------------------------------------------------------------------------------------------------------
93
Sub GetReleaseContent ( nRtag_id, ByRef oReleaseContent )
94
	Dim rsQry, query
95
	query = _
96
	" SELECT qry.pv_id"&_
97
	"  FROM ("&_
98
	"		SELECT pv.pv_id, pkg.pkg_name, pv.pkg_version, 1 AS seq_num"&_
99
	"		  FROM RELEASE_CONTENT rc,"&_
100
	"		  	   PACKAGES pkg,"&_
101
	"			   PACKAGE_VERSIONS pv"&_
102
	"		 WHERE rc.rtag_id = "& nRtag_id  &_
103
	"		   AND pv.pkg_id = pkg.pkg_id"&_
104
	"		   AND rc.pv_id = pv.pv_id"&_
105
	"		   AND rc.BASE_VIEW_ID = 5  "&_
106
	"		UNION   "&_
107
	"		SELECT pv.pv_id, pkg.pkg_name, pv.pkg_version, 2 AS seq_num"&_
108
	"		  FROM RELEASE_CONTENT rc,"&_
109
	"		  	   PACKAGES pkg,"&_
110
	"			   PACKAGE_VERSIONS pv"&_
111
	"		 WHERE rc.rtag_id = "& nRtag_id &_
112
	"		   AND pv.pkg_id = pkg.pkg_id"&_
113
	"		   AND rc.pv_id = pv.pv_id"&_
114
	"		   AND rc.BASE_VIEW_ID != 5"&_
115
	"	   ) qry  "&_
116
	" ORDER BY qry.seq_num, UPPER(qry.pkg_name)"
117
 
118
	Set rsQry = OraDatabase.DbCreateDynaset( query, 0)
119
 
120
	While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
121
		oReleaseContent( CStr( rsQry("pv_id")) ) = ""
122
		rsQry.MoveNext()
123
	WEnd
124
 
125
	rsQry.Close()
126
	Set rsQry = Nothing
127
End Sub
128
'----------------------------------------------------------------------------------------------------------------------------------------
129
 
130
%>
131
<%
132
'---------------------- Run Before Page ---------------------------
133
Call GetReleaseContent ( parRtag_id, objReleaseContent )
134
'------------------------------------------------------------------
135
%>
136
<html>
137
<head>
138
<title>Release Manager</title>
139
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
140
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
141
</head>
142
<body>
143
 
144
<%
145
aReleaseContent = objReleaseContent.Keys
146
For Each parPv_id In aReleaseContent
147
 
148
	Call GetPackageInformation ( parPv_id, objPackageDetails )
149
%>					<a name="<%=objPackageDetails.Item("pkg_name")%>"></a>
150
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
151
					  <tr>
152
                       	<td class="body_colb"><h3><%=objPackageDetails.Item("pkg_name")%></h3></td>
153
					  </tr>
154
					</table>
155
		            <table width="100%" border="0" cellspacing="0" cellpadding="0">
156
					  <tr>
157
		                <td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Version:</strong></td>
158
		                <td bgcolor="#FFFFFF" class="sublbox_txt"><%=objPackageDetails.Item("pkg_version")%></td>
159
		              </tr>
160
		              <tr>
161
		                <td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Source Path:</strong> </td>
162
		                <td bgcolor="#FFFFFF" class="sublbox_txt"><%=objPackageDetails.Item("src_path")%></td>
163
		              </tr>
164
					  <tr>
165
		                <td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Source Label:</strong></td>
166
		                <td bgcolor="#FFFFFF" class="sublbox_txt"><%=objPackageDetails.Item("pkg_label")%></td>
167
		              </tr>
168
					  <tr>
169
		                <td width="1%" nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Short Description:</strong></td>
170
		                <td witdh="100%" bgcolor="#FFFFFF" class="sublbox_txt"><%=NewLine_To_BR ( To_HTML( objPackageDetails.Item("pv_description") ) )%></td>
171
		              </tr>
172
		              <tr>
173
		                <td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Package Overview:</strong> </td>
174
		                <td bgcolor="#FFFFFF" class="sublbox_txt"><%=NewLine_To_BR ( To_HTML( objPackageDetails.Item("pv_overview") ) )%></td>
175
		              </tr>
176
					  <tr>
177
		                <td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>General Sublicense Material:</strong> </td>
178
		                <td bgcolor="#FFFFFF" class="sublbox_txt"><%If objPackageDetails.Item("v_ext") = parExt Then%>Yes<%Else%>No<%End If%></td>
179
		              </tr>
180
					  <tr>
181
		                <td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Build Environment:</strong> </td>
182
		                <td bgcolor="#FFFFFF" class="sublbox_txt"><%If objPackageDetails.Item("is_build_env_required") = enumDB_NO Then%>Not Required.<%End If%>
183
						<%
184
						'--- Get Build Env Details
185
 
186
						Set rsQry = OraDatabase.DbCreateDynaset( SQL_Build_Env ( parPv_id ), cint(0))
187
						%>
188
						  <ul>
189
						  <%
190
						  While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
191
						  %>
192
                          <li><%=rsQry("be_name")%></li>
193
						  <%rsQry.MoveNext
194
						  WEnd
195
						  %>
196
                          </ul>
197
					   </td>
198
		              </tr>
199
					  <tr>
200
		                <td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Build Dependencies:</strong> </td>
201
		                <td bgcolor="#FFFFFF" class="sublbox_txt">
202
						<%
203
						'--- Get Build Dependencies Details
204
 
205
						Set rsQry = OraDatabase.DbCreateDynaset( SQL_Build_Dependencies ( parPv_id ), cint(0))
206
						%>
207
                        <table width="100%"  cellspacing="0" cellpadding="2" border="1">
208
						  <tr>
209
                            <td nowrap class="sublbox_txt" bgcolor="#FFFFFF" width="1%"><strong>Software Component</strong></td>
210
							<td nowrap class="sublbox_txt" bgcolor="#FFFFFF" width="100%"><strong>Version</strong></td>
211
                          </tr>
212
						  <%If rsQry.RecordCount < 1 Then%>
213
						  <tr>
214
                            <td nowrap class="sublbox_txt">No Dependencies</td>
215
							<td nowrap class="sublbox_txt"></td>
216
                          </tr>
217
						  <%End If%>
218
						  <%
219
						  While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
220
						  %>
221
                          <tr>
222
                            <td nowrap class="sublbox_txt"><a href="#<%=rsQry("pkg_name")%>"><%=rsQry("pkg_name")%></a></td>
223
							<td nowrap class="sublbox_txt"><%=rsQry("pkg_version")%></td>
224
                          </tr>
225
						  <%rsQry.MoveNext
226
						  WEnd
227
						  %>
228
                        </table>
229
					   </td>
230
		              </tr>
231
		            </table>
232
		            <br><br>
233
<%
234
	'Exit For
235
Next
236
%>
237
</body>
238
</html>