| 119 |
ghuddy |
1 |
<%
|
|
|
2 |
'=====================================================
|
|
|
3 |
'| |
|
|
|
4 |
'| REPORTS DEFINITION |
|
|
|
5 |
'| |
|
|
|
6 |
'=====================================================
|
|
|
7 |
' Good idea to set when using redirect
|
|
|
8 |
Response.Expires = 0 ' always load the page, dont store
|
|
|
9 |
|
|
|
10 |
'To enable the script timeout to 10 mins
|
|
|
11 |
Server.ScriptTimeout=600
|
|
|
12 |
%>
|
|
|
13 |
|
|
|
14 |
<%
|
|
|
15 |
'------------ ACCESS CONTROL ------------------
|
|
|
16 |
%>
|
|
|
17 |
|
|
|
18 |
<%
|
|
|
19 |
'------------ Variable Definition -------------
|
|
|
20 |
Dim rsQry
|
|
|
21 |
Dim rsTemp
|
|
|
22 |
Dim parPv_id, parExt
|
|
|
23 |
Dim objReleaseContent
|
|
|
24 |
Dim aReleaseContent
|
|
|
25 |
Dim objPackageDetails
|
|
|
26 |
Dim outobjDetails
|
|
|
27 |
Dim pvIdList
|
|
|
28 |
Dim dpv_id
|
|
|
29 |
'------------ Constants Declaration -----------
|
|
|
30 |
'------------ Variable Init -------------------
|
|
|
31 |
|
|
|
32 |
parExt = Request("ext")
|
|
|
33 |
Set objReleaseContent = CreateObject("Scripting.Dictionary")
|
|
|
34 |
Set objPackageDetails = CreateObject("Scripting.Dictionary")
|
|
|
35 |
Set outobjDetails = CreateObject("Scripting.Dictionary")
|
|
|
36 |
'----------------------------------------------------------------------------------------------------------------------------------------
|
|
|
37 |
Sub GetPackageInformation ( nPv_id, ByRef oPackageDetails )
|
|
|
38 |
Dim rsQry, query
|
|
|
39 |
query = _
|
|
|
40 |
" SELECT pkg.pkg_name, pv.* "&_
|
|
|
41 |
" FROM PACKAGES pkg,"&_
|
|
|
42 |
" PACKAGE_VERSIONS pv"&_
|
|
|
43 |
" WHERE pv.pv_id = "& nPv_id &_
|
|
|
44 |
" AND pv.pkg_id = pkg.pkg_id "
|
|
|
45 |
|
|
|
46 |
Set rsQry = OraDatabase.DbCreateDynaset( query, 0)
|
|
|
47 |
|
|
|
48 |
oPackageDetails.RemoveAll
|
|
|
49 |
|
|
|
50 |
If (NOT rsQry.BOF) AND (NOT rsQry.EOF) Then
|
|
|
51 |
oPackageDetails("pkg_name") = rsQry("pkg_name")
|
|
|
52 |
oPackageDetails("pkg_version") = rsQry("pkg_version")
|
|
|
53 |
oPackageDetails("v_ext") = rsQry("v_ext")
|
|
|
54 |
oPackageDetails("pv_description") = rsQry("pv_description")
|
|
|
55 |
oPackageDetails("pv_overview") = rsQry("pv_overview")
|
|
|
56 |
oPackageDetails("src_path") = rsQry("src_path")
|
|
|
57 |
oPackageDetails("pkg_label") = rsQry("pkg_label")
|
|
|
58 |
oPackageDetails("is_build_env_required") = rsQry("is_build_env_required")
|
|
|
59 |
|
|
|
60 |
End If
|
|
|
61 |
|
|
|
62 |
rsQry.Close()
|
|
|
63 |
Set rsQry = Nothing
|
|
|
64 |
End Sub
|
|
|
65 |
'----------------------------------------------------------------------------------------------------------------------------------------
|
|
|
66 |
Function SQL_Build_Env ( nPv_id )
|
|
|
67 |
SQL_Build_Env = _
|
|
|
68 |
" SELECT be.*"&_
|
|
|
69 |
" FROM RELEASE_MANAGER.BUILD_ENVIRONMENTS be,"&_
|
|
|
70 |
" RELEASE_MANAGER.PACKAGE_BUILD_ENV pbe"&_
|
|
|
71 |
" WHERE pbe.PV_ID = "& nPv_id &_
|
|
|
72 |
" AND pbe.BE_ID = be.BE_ID "&_
|
|
|
73 |
" ORDER BY UPPER(be.BE_NAME) "
|
|
|
74 |
End Function
|
|
|
75 |
'----------------------------------------------------------------------------------------------------------------------------------------
|
|
|
76 |
Function SQL_Modules (nPv_idList)
|
|
|
77 |
SQL_Modules = _
|
|
|
78 |
"SELECT DISTINCT"&_
|
|
|
79 |
" qry.DPV_ID "&_
|
|
|
80 |
" FROM ("&_
|
|
|
81 |
" SELECT dep.*,"&_
|
|
|
82 |
" LEVEL AS LEVEL_NUM"&_
|
|
|
83 |
" FROM PACKAGE_DEPENDENCIES dep"&_
|
|
|
84 |
" START WITH dep.PV_ID IN ( "& nPv_idList &" ) "&_
|
|
|
85 |
" CONNECT BY PRIOR dep.DPV_ID = dep.PV_ID"&_
|
|
|
86 |
" ) qry,"&_
|
|
|
87 |
" PACKAGES pkg,"&_
|
|
|
88 |
" PACKAGE_VERSIONS pv"&_
|
|
|
89 |
" WHERE qry.PV_ID = pv.PV_ID AND pv.PKG_ID = pkg.PKG_ID"
|
|
|
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 ( nBom_id, ByRef oReleaseContent )
|
|
|
105 |
Dim rsQry, query
|
|
|
106 |
|
|
|
107 |
|
|
|
108 |
|
|
|
109 |
query = _
|
|
|
110 |
" SELECT qry.prod_id"&_
|
|
|
111 |
" FROM ("&_
|
|
|
112 |
" SELECT DISTINCT"&_
|
|
|
113 |
" osc.PROD_ID,"&_
|
|
|
114 |
" pkg.pkg_name,"&_
|
|
|
115 |
" pv.pkg_version,"&_
|
|
|
116 |
" 1 as seq_num"&_
|
|
|
117 |
" FROM DEPLOYMENT_MANAGER.bom_contents bc,"&_
|
|
|
118 |
" DEPLOYMENT_MANAGER.operating_systems os, "&_
|
|
|
119 |
" DEPLOYMENT_MANAGER.os_contents osc,"&_
|
|
|
120 |
" PACKAGES pkg,"&_
|
|
|
121 |
" PACKAGE_VERSIONS pv,"&_
|
|
|
122 |
" DEPLOYMENT_MANAGER.PRODUCT_DETAILS pd"&_
|
|
|
123 |
" WHERE osc.os_id = os.os_id "&_
|
|
|
124 |
" AND os.node_id = bc.node_id"&_
|
|
|
125 |
" AND bc.bom_id = "& nBom_id &_
|
|
|
126 |
" AND pd.PROD_ID (+) = osc.PROD_ID"&_
|
|
|
127 |
" AND pv.pkg_id = pkg.pkg_id"&_
|
|
|
128 |
" AND osc.prod_id = pv.pv_id "&_
|
|
|
129 |
" AND (pd.is_rejected IS NULL or pd.IS_REJECTED != 'Y') "&_
|
|
|
130 |
" UNION "&_
|
|
|
131 |
" SELECT DISTINCT bec.prod_id, pkg.pkg_name, pkg_version, 2 as seq_num"&_
|
|
|
132 |
" FROM DEPLOYMENT_MANAGER.boms bm,"&_
|
|
|
133 |
" DEPLOYMENT_MANAGER.bom_contents bc,"&_
|
|
|
134 |
" DEPLOYMENT_MANAGER.network_nodes nn,"&_
|
|
|
135 |
" DEPLOYMENT_MANAGER.operating_systems os,"&_
|
|
|
136 |
" DEPLOYMENT_MANAGER.os_base_env obe,"&_
|
|
|
137 |
" DEPLOYMENT_MANAGER.base_env_contents bec,"&_
|
|
|
138 |
" PACKAGES pkg,"&_
|
|
|
139 |
" package_versions pv,"&_
|
|
|
140 |
" DEPLOYMENT_MANAGER.base_env be,"&_
|
|
|
141 |
" DEPLOYMENT_MANAGER.bos_types bt,"&_
|
|
|
142 |
" DEPLOYMENT_MANAGER.PRODUCT_DETAILS pd"&_
|
|
|
143 |
" WHERE bm.bom_id = "& nBom_id &_
|
|
|
144 |
" AND bm.bom_id = bc.bom_id"&_
|
|
|
145 |
" AND nn.node_id = bc.node_id"&_
|
|
|
146 |
" AND os.node_id = nn.node_id"&_
|
|
|
147 |
" AND obe.os_id = os.os_id"&_
|
|
|
148 |
" AND pd.PROD_ID (+) = bec.PROD_ID"&_
|
|
|
149 |
" AND (pd.is_rejected IS NULL or pd.IS_REJECTED != 'Y') "&_
|
|
|
150 |
" AND bec.base_env_id = obe.base_env_id"&_
|
|
|
151 |
" AND bec.prod_id = pv.pv_id"&_
|
|
|
152 |
" AND pkg.pkg_id = pv.pkg_id"&_
|
|
|
153 |
" AND be.base_env_id = obe.base_env_id"&_
|
|
|
154 |
" AND bt.bos_id = be.bos_id"&_
|
|
|
155 |
" ) qry "&_
|
|
|
156 |
" ORDER BY qry.seq_num, UPPER(qry.pkg_name), UPPER(qry.pkg_version)"
|
|
|
157 |
|
|
|
158 |
Set rsQry = OraDatabase.DbCreateDynaset( query, 0)
|
|
|
159 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
|
|
160 |
oReleaseContent( CStr( rsQry("prod_id")) ) = ""
|
|
|
161 |
rsQry.MoveNext()
|
|
|
162 |
WEnd
|
|
|
163 |
|
|
|
164 |
rsQry.Close()
|
|
|
165 |
Set rsQry = Nothing
|
|
|
166 |
End Sub
|
|
|
167 |
'----------------------------------------------------------------------------------------------------------------------------------------
|
|
|
168 |
Function PatchIcon ( cIsPatch, cIsPatchObsolete )
|
|
|
169 |
If IsNull(cIsPatch) Then
|
|
|
170 |
PatchIcon = "<img src='images/rex_images/ext_blank.gif' width='16' height='16' border='0' align='absmiddle'>"
|
|
|
171 |
Else
|
|
|
172 |
If IsNull(cIsPatchObsolete) Then
|
|
|
173 |
PatchIcon = "<img src='images/i_patch_small.gif' width='16' height='16' border='0' align='absmiddle' >"
|
|
|
174 |
Else
|
|
|
175 |
PatchIcon = "<img src='images/i_patch_small_obsolete.gif' width='16' height='16' border='0' align='absmiddle' title='Patch is obsolete'>"
|
|
|
176 |
End If
|
|
|
177 |
End If
|
|
|
178 |
End Function
|
|
|
179 |
%>
|
|
|
180 |
|
|
|
181 |
<%
|
|
|
182 |
Sub Reports_List ( SSgroup )
|
|
|
183 |
Dim repNum
|
|
|
184 |
%> <!-- REPORTS LIST -------------------------------------------------------->
|
|
|
185 |
<%Select Case SSgroup%>
|
|
|
186 |
<%Case "Advanced_Search"%>
|
|
|
187 |
<%repNum = 1%>
|
|
|
188 |
<strong>Find ClearQuest Bugs / Issues Location</strong><br>
|
|
|
189 |
Use this advance search to locate bugs / issues imported to Release Manager from ClearQuest.<br>
|
|
|
190 |
<a href="rep_where_are_bugs_located.asp?repnum=<%=repNum%>&group=<%=SSgroup%>" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
|
|
191 |
<%repNum = 2%>
|
|
|
192 |
<strong>Find Packages Using "Ignore Warnings" feature</strong><br>
|
|
|
193 |
Lists packages which use "Ignore Warning" feature on their dependencies.<br>
|
|
|
194 |
<a href="rep_packages_using_ignore_feature.asp?repnum=<%=repNum%>&group=<%=SSgroup%>" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
|
|
195 |
<%repNum = 4%>
|
|
|
196 |
<strong>Find A Package</strong><br>
|
|
|
197 |
Use this advanced search to find a package in Release Manager<br>
|
|
|
198 |
<a href="rep_find_package.asp?repnum=<%=repNum%>&group=<%=SSgroup%>" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
|
|
199 |
<%repNum = 5%>
|
|
|
200 |
<strong>Find Package Version History</strong><br>
|
|
|
201 |
Find all package versions and their current locations.<br>
|
|
|
202 |
<a href="rep_package_version_history.asp?repnum=<%=repNum%>&group=<%=SSgroup%>" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
|
|
203 |
<%Case "Release_Status"%>
|
|
|
204 |
<%repNum = 3%>
|
|
|
205 |
<strong>Current Status of Release</strong><br>
|
|
|
206 |
Shows all packages in a selected release with their current state, owner and last modifier.<br>
|
|
|
207 |
<a href="rep_current_state_of_release.asp?repnum=<%=repNum%>&group=<%=SSgroup%>" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
|
|
208 |
<%repNum = 8%>
|
|
|
209 |
<strong>Deployable Software Modules</strong><br>
|
|
|
210 |
This report shows new and current deployable software modules. Use this report to find which modules will be deployed to the customer.<br>
|
|
|
211 |
Also, use this report to find if there are new modules flaged as 'deployable'.<br>
|
|
|
212 |
<a href="rep_depoyable_software_modules.asp?repnum=<%=repNum%>&group=<%=SSgroup%>" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
|
|
213 |
<%repNum = 7%>
|
|
|
214 |
<strong>Unit Tests per Package</strong><br>
|
|
|
215 |
Use this report to check the unit tests performed on packages in a project.<br>
|
|
|
216 |
<a href="rep_unit_tests_per_package.asp?repnum=<%=repNum%>&group=<%=SSgroup%>" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
|
|
217 |
<%repNum = 12%>
|
|
|
218 |
<strong>Release AutoBuildable Status</strong><br>
|
|
|
219 |
Use this report to check the package versions that are autobuildable/not autobuildable in a given release.<br>
|
|
|
220 |
<a href="rep_autobuildable_package.asp?repnum=<%=repNum%>&group=<%=SSgroup%>" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
|
|
221 |
|
|
|
222 |
|
|
|
223 |
<!-- <strong>All Packages With out-of-sync Dependencies</strong><br>
|
|
|
224 |
List of all packages with dependencies out-of-sync with the release environment.<br>
|
|
|
225 |
In escence, these are the packages which has versions in "latest" column of their dependencies.<br>
|
|
|
226 |
Not available yet.<br><br><hr size="1" noshade color="#DAD7C8">
|
|
|
227 |
--> <%Case "Release_History"%>
|
|
|
228 |
<%repNum = 10%>
|
|
|
229 |
<strong>Build History</strong><br>
|
|
|
230 |
Use this report to find which packages have been officially released within specified date range.<br>
|
|
|
231 |
<a href="rep_build_history.asp?repnum=<%=repNum%>&group=<%=SSgroup%>" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
|
|
232 |
<%Case "Admin_Reports"%>
|
|
|
233 |
<strong>All Packages by Project by Version Tree by Release</strong><br>
|
|
|
234 |
CSV output of all packages used in Release Manager per Project.<br>
|
|
|
235 |
<a href="rep_all_packages_by_project_by_vtree_by_release.asp" target="_blank" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
|
|
236 |
<strong>All Runtime Dependencies by Project by Version Tree by Release</strong><br>
|
|
|
237 |
CSV output of all runtime dependencies used in Release Manager per Project.<br>
|
|
|
238 |
<a href="rep_all_runtime_dependencies_by_project_by_vtree_by_release.asp" target="_blank" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
|
|
239 |
<%repNum = 6%>
|
|
|
240 |
<strong>Unused Packages</strong><br>
|
|
|
241 |
All packages (Not Products) with no entries in "Used By" tab.<br>
|
|
|
242 |
Use this report to help you clean up a release and remove all potentially unused packages.<br>
|
|
|
243 |
<a href="rep_obsolete_packages.asp?repnum=<%=repNum%>&group=<%=SSgroup%>" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
|
|
244 |
<%Case "Escrow"%>
|
|
|
245 |
<%repNum = 9%>
|
|
|
246 |
<strong>Bill of Materials (BOM)</strong><br>
|
|
|
247 |
List of all ERG Products per network node for a particular
|
|
|
248 |
project. Use this report to integrate a particular project.<br>
|
|
|
249 |
<a href="rep_bill_of_materials.asp?repnum=<%=repNum%>&group=<%=SSgroup%>" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
|
|
250 |
<%repNum = 11%>
|
|
|
251 |
<strong>Escrow Report</strong><br>
|
|
|
252 |
List of all Products/Patches for the BOM including modules. Use this report to provide a build roadmap.<br>
|
|
|
253 |
<a href="escrow_report.asp?repnum=<%=repNum%>&group=<%=SSgroup%>" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
|
|
254 |
<strong>Build Dependencies per Package</strong><br>
|
|
|
255 |
Use this report to build package from source code. The report
|
|
|
256 |
include package repository location, label and build dependencies.<br>
|
|
|
257 |
Not available yet.<br><br><hr size="1" noshade color="#DAD7C8">
|
|
|
258 |
<strong>Build Order</strong><br>
|
|
|
259 |
Use this reports to find the order in which packages should be built.<br>
|
|
|
260 |
Not available yet.<br><br><hr size="1" noshade color="#DAD7C8">
|
|
|
261 |
<%Case Else%>
|
|
|
262 |
<b>« Select reporting category.</b>
|
|
|
263 |
<%End Select%>
|
|
|
264 |
<!-- REPORTS LIST END-------------------------------------------------------->
|
|
|
265 |
|
|
|
266 |
<%End Sub%>
|
|
|
267 |
|
|
|
268 |
<%
|
|
|
269 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
270 |
Sub Get_Projects ( NNproj_id, BBallow_all )
|
|
|
271 |
Dim rsTemp, Query_String
|
|
|
272 |
|
|
|
273 |
Query_String = _
|
|
|
274 |
"SELECT * FROM projects ORDER BY proj_name ASC"
|
|
|
275 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
|
|
276 |
|
|
|
277 |
Response.write "<select name='FRproj_id' onChange=""Cascaded_Menu('parent','"& scriptName &"?FRvtree_id=&FRrtag_id=&group="& Request("group") &"&repnum="& Request("repnum") &"&FRproj_id=',this,0)"" class='form_item'>"
|
|
|
278 |
If BBallow_all Then
|
|
|
279 |
Response.write "<option value='-1'>ALL</option>"
|
|
|
280 |
Else
|
|
|
281 |
Response.write "<option></option>"
|
|
|
282 |
End If
|
|
|
283 |
|
|
|
284 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
|
|
285 |
If CDbl(NNproj_id) = CDbl(rsTemp.Fields("proj_id")) Then
|
|
|
286 |
Response.write "<option value='"& rsTemp.Fields("proj_id") &"' selected>"& UCase(rsTemp.Fields("proj_name")) &"</option>"
|
|
|
287 |
Else
|
|
|
288 |
Response.write "<option value='"& rsTemp.Fields("proj_id") &"'>"& UCase(rsTemp.Fields("proj_name")) &"</option>"
|
|
|
289 |
End If
|
|
|
290 |
rsTemp.MoveNext
|
|
|
291 |
WEnd
|
|
|
292 |
Response.write "</select>"
|
|
|
293 |
|
|
|
294 |
rsTemp.Close
|
|
|
295 |
Set rsTemp = nothing
|
|
|
296 |
End Sub
|
|
|
297 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
298 |
Sub Get_Version_Trees ( NNproj_id, NNvtree_id, BBallow_all )
|
|
|
299 |
Dim rsTemp, Query_String
|
|
|
300 |
|
|
|
301 |
Query_String = _
|
|
|
302 |
"SELECT vtree_id, vtree_name FROM vtrees WHERE hide = 'N' AND proj_id = "& NNproj_id &" ORDER BY vtree_id ASC"
|
|
|
303 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
|
|
304 |
|
|
|
305 |
Response.write "<select name='FRvtree_id' onChange=""Cascaded_Menu('parent','"& scriptName &"?FRproj_id="& NNproj_id &"&FRrtag_id=&group="& Request("group") &"&repnum="& Request("repnum") &"&FRvtree_id=',this,0)"" class='form_item'>"
|
|
|
306 |
If BBallow_all Then
|
|
|
307 |
Response.write "<option value='-1'>ALL</option>"
|
|
|
308 |
Else
|
|
|
309 |
Response.write "<option></option>"
|
|
|
310 |
End If
|
|
|
311 |
|
|
|
312 |
If NNproj_id <> -1 Then
|
|
|
313 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
|
|
314 |
If CDbl(NNvtree_id) = CDbl(rsTemp.Fields("vtree_id")) Then
|
|
|
315 |
Response.write "<option value='"& rsTemp.Fields("vtree_id") &"' selected>"& (rsTemp.Fields("vtree_name")) &"</option>"
|
|
|
316 |
Else
|
|
|
317 |
Response.write "<option value='"& rsTemp.Fields("vtree_id") &"'>"& (rsTemp.Fields("vtree_name")) &"</option>"
|
|
|
318 |
End If
|
|
|
319 |
rsTemp.MoveNext
|
|
|
320 |
WEnd
|
|
|
321 |
End If
|
|
|
322 |
Response.write "</select>"
|
|
|
323 |
|
|
|
324 |
rsTemp.Close
|
|
|
325 |
Set rsTemp = nothing
|
|
|
326 |
End Sub
|
|
|
327 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
328 |
Sub Get_Release_Labels ( NNproj_id, NNrtag_id, BBallow_all )
|
|
|
329 |
Dim rsTemp, Query_String
|
|
|
330 |
|
|
|
331 |
Query_String = _
|
|
|
332 |
"SELECT rtag_id, rtag_name FROM release_tags WHERE proj_id = "& NNproj_id &" ORDER BY rtag_id ASC"
|
|
|
333 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
|
|
334 |
|
|
|
335 |
Response.write "<select name='FRrtag_id' onChange=""Cascaded_Menu('parent','"& scriptName &"?FRproj_id="& NNproj_id &"&group="& Request("group") &"&repnum="& Request("repnum") &"&FRrtag_id=',this,0)"" class='form_item'>"
|
|
|
336 |
If BBallow_all Then
|
|
|
337 |
Response.write "<option value='-1'>ALL</option>"
|
|
|
338 |
Else
|
|
|
339 |
Response.write "<option></option>"
|
|
|
340 |
End If
|
|
|
341 |
|
|
|
342 |
If NNproj_id <> -1 Then
|
|
|
343 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
|
|
344 |
If CDbl(NNrtag_id) = CDbl(rsTemp.Fields("rtag_id")) Then
|
|
|
345 |
Response.write "<option value='"& rsTemp.Fields("rtag_id") &"' selected>"& (rsTemp.Fields("rtag_name")) &"</option>"
|
|
|
346 |
Else
|
|
|
347 |
Response.write "<option value='"& rsTemp.Fields("rtag_id") &"'>"& (rsTemp.Fields("rtag_name")) &"</option>"
|
|
|
348 |
End If
|
|
|
349 |
rsTemp.MoveNext
|
|
|
350 |
WEnd
|
|
|
351 |
End If
|
|
|
352 |
Response.write "</select>"
|
|
|
353 |
|
|
|
354 |
rsTemp.Close
|
|
|
355 |
Set rsTemp = nothing
|
|
|
356 |
End Sub
|
|
|
357 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
358 |
Sub Get_SBOM_Version ( NNproj_id, NNrtag_id, BBallow_all, NNversion )
|
|
|
359 |
Dim rsTemp, Query_String
|
|
|
360 |
|
|
|
361 |
Query_String = _
|
|
|
362 |
"SELECT BOM_ID, BRANCH_ID, BOM_VERSION ||'.'||BOM_LIFECYCLE AS VERSION FROM DEPLOYMENT_MANAGER.BOMS WHERE BRANCH_ID ="&NNrtag_id&" ORDER BY VERSION"
|
|
|
363 |
|
|
|
364 |
|
|
|
365 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
|
|
366 |
|
|
|
367 |
|
|
|
368 |
Response.write "<select name='FRversion' class='form_item'>"
|
|
|
369 |
If BBallow_all Then
|
|
|
370 |
Response.write "<option value='-1'>ALL</option>"
|
|
|
371 |
Else
|
|
|
372 |
Response.write "<option></option>"
|
|
|
373 |
End If
|
|
|
374 |
|
|
|
375 |
If NNrtag_id <> -1 Then
|
|
|
376 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
|
|
377 |
If CStr(NNversion) = CStr(rsTemp.Fields("version")) Then
|
|
|
378 |
Response.write "<option value='"& rsTemp.Fields("version") &"' selected>"& (rsTemp.Fields("version")) &"</option>"
|
|
|
379 |
Else
|
|
|
380 |
Response.write "<option value='"& rsTemp.Fields("version") &"'>"& (rsTemp.Fields("version")) &"</option>"
|
|
|
381 |
End If
|
|
|
382 |
rsTemp.MoveNext
|
|
|
383 |
WEnd
|
|
|
384 |
End If
|
|
|
385 |
Response.write "</select>"
|
|
|
386 |
rsTemp.Close
|
|
|
387 |
Set rsTemp = nothing
|
|
|
388 |
|
|
|
389 |
End Sub
|
|
|
390 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
391 |
Sub Get_Branches ( NNproj_id, NNrtag_id, BBallow_all )
|
|
|
392 |
Dim rsTemp, Query_String
|
|
|
393 |
|
|
|
394 |
Query_String = _
|
|
|
395 |
"SELECT * FROM deployment_manager.branches WHERE proj_id = "& NNproj_id &" ORDER BY branch_id ASC"
|
|
|
396 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
|
|
397 |
Response.write "<select name='FRbranch_id' onChange=""Cascaded_Menu('parent','"& scriptName &"?FRproj_id="& NNproj_id &"&group="& Request("group") &"&repnum="& Request("repnum") &"&FRrtag_id=',this,0)"" class='form_item'>"
|
|
|
398 |
If BBallow_all Then
|
|
|
399 |
Response.write "<option value='-1'>ALL</option>"
|
|
|
400 |
Else
|
|
|
401 |
Response.write "<option></option>"
|
|
|
402 |
End If
|
|
|
403 |
|
|
|
404 |
If NNproj_id <> -1 Then
|
|
|
405 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
|
|
406 |
If CDbl(NNrtag_id) = CDbl(rsTemp.Fields("branch_id")) Then
|
|
|
407 |
Response.write "<option value='"& rsTemp.Fields("branch_id") &"' selected>"& (rsTemp.Fields("branch_name")) &"</option>"
|
|
|
408 |
Else
|
|
|
409 |
Response.write "<option value='"& rsTemp.Fields("branch_id") &"'>"& (rsTemp.Fields("branch_name")) &"</option>"
|
|
|
410 |
End If
|
|
|
411 |
rsTemp.MoveNext
|
|
|
412 |
WEnd
|
|
|
413 |
End If
|
|
|
414 |
Response.write "</select>"
|
|
|
415 |
|
|
|
416 |
rsTemp.Close
|
|
|
417 |
Set rsTemp = nothing
|
|
|
418 |
End Sub
|
|
|
419 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
420 |
|
|
|
421 |
Sub Get_Base_Views ( nRtag_id, nBase_view_id, BBallow_all )
|
|
|
422 |
Dim rsTemp, Query_String
|
|
|
423 |
|
|
|
424 |
Query_String = _
|
|
|
425 |
"SELECT DISTINCT vi.view_id, vi.view_name"&_
|
|
|
426 |
" FROM VIEWS vi,"&_
|
|
|
427 |
" RELEASE_CONTENT rc"&_
|
|
|
428 |
" WHERE rc.BASE_VIEW_ID = vi.VIEW_ID"&_
|
|
|
429 |
" AND rc.rtag_id = "& nRtag_id &_
|
|
|
430 |
"ORDER BY UPPER( vi.view_name )"
|
|
|
431 |
|
|
|
432 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
|
|
433 |
|
|
|
434 |
Response.write "<select name='FRbase_view_id' class='form_item'>"
|
|
|
435 |
If BBallow_all Then
|
|
|
436 |
Response.write "<option value='-1'>ALL</option>"
|
|
|
437 |
Else
|
|
|
438 |
Response.write "<option></option>"
|
|
|
439 |
End If
|
|
|
440 |
|
|
|
441 |
If nRtag_id <> -1 Then
|
|
|
442 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
|
|
443 |
If CDbl(nBase_view_id) = CDbl(rsTemp.Fields("view_id")) Then
|
|
|
444 |
Response.write "<option value='"& rsTemp.Fields("view_id") &"' selected>"& (rsTemp.Fields("view_name")) &"</option>"
|
|
|
445 |
Else
|
|
|
446 |
Response.write "<option value='"& rsTemp.Fields("view_id") &"'>"& (rsTemp.Fields("view_name")) &"</option>"
|
|
|
447 |
End If
|
|
|
448 |
rsTemp.MoveNext
|
|
|
449 |
WEnd
|
|
|
450 |
End If
|
|
|
451 |
Response.write "</select>"
|
|
|
452 |
|
|
|
453 |
rsTemp.Close
|
|
|
454 |
Set rsTemp = nothing
|
|
|
455 |
End Sub
|
|
|
456 |
%>
|
|
|
457 |
<%
|
|
|
458 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
459 |
'==================================================================================
|
|
|
460 |
' Report Name : Packages Using Ignore Feature
|
|
|
461 |
' Description : Lists packages which use "Ignore Warning"
|
|
|
462 |
' feature on their dependencies.
|
|
|
463 |
' INPUT : Project, Vesion Tree, Release Label
|
|
|
464 |
'==================================================================================
|
|
|
465 |
Sub Packages_Using_Ignore_Feature ( SSsection, NNproj_id, NNrtag_id )
|
|
|
466 |
Dim Query_String, rsRep
|
|
|
467 |
Const Allow_All = TRUE
|
|
|
468 |
|
|
|
469 |
If NNproj_id = "" Then NNproj_id = -1
|
|
|
470 |
If NNrtag_id = "" Then NNrtag_id = -1
|
|
|
471 |
|
|
|
472 |
If SSsection = "TITLE" Then
|
|
|
473 |
Response.write "Packages Using 'Ignore Warnings' Feature"
|
|
|
474 |
Exit Sub
|
|
|
475 |
End If
|
|
|
476 |
|
|
|
477 |
|
|
|
478 |
If SSsection = "FORM" Then
|
|
|
479 |
%>
|
|
|
480 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
|
|
481 |
<form action="<%=scriptName%>" method="post" name="repform">
|
|
|
482 |
<tr>
|
|
|
483 |
<td width="1%" nowrap class="form_field"><img src="images/spacer.gif" width="30" height="8"></td>
|
|
|
484 |
<td width="1%" align="right" nowrap class="form_field">Project</td>
|
|
|
485 |
<td width="100%"><%Call Get_Projects( NNproj_id, Allow_All )%></td>
|
|
|
486 |
</tr>
|
|
|
487 |
<tr>
|
|
|
488 |
<td nowrap class="form_field"> </td>
|
|
|
489 |
<td align="right" nowrap class="form_field">Release</td>
|
|
|
490 |
<td><%Call Get_Release_Labels ( NNproj_id, NNrtag_id, Allow_All )%></td>
|
|
|
491 |
</tr>
|
|
|
492 |
<tr>
|
|
|
493 |
<td nowrap class="form_field"> </td>
|
|
|
494 |
<td align="right" nowrap class="form_field"> </td>
|
|
|
495 |
<td><br>
|
|
|
496 |
<input type="hidden" name="group" value="<%=parGroup%>">
|
|
|
497 |
<input type="hidden" name="repnum" value="<%=parRepNum%>">
|
|
|
498 |
<input type="hidden" name="action" value="true">
|
|
|
499 |
<input name="Submit" type="submit" class="form_btn" value="Submit">
|
|
|
500 |
</td>
|
|
|
501 |
</tr>
|
|
|
502 |
</form>
|
|
|
503 |
</table>
|
|
|
504 |
<% Exit Sub
|
|
|
505 |
End If
|
|
|
506 |
|
|
|
507 |
|
|
|
508 |
If SSsection = "BODY" Then
|
|
|
509 |
If NOT CBool(Request("action")) Then Exit Sub
|
|
|
510 |
|
|
|
511 |
Query_String = ReadFile( rootPath & "queries\rep_packages_using_ignore_feature.sql" )
|
|
|
512 |
|
|
|
513 |
OraDatabase.Parameters.Add "PROJ_ID", NNproj_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
514 |
OraDatabase.Parameters.Add "RTAG_ID", NNrtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
515 |
%>
|
|
|
516 |
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
|
|
517 |
<tr>
|
|
|
518 |
<td width="1%" nowrap class="body_colb"> </td>
|
|
|
519 |
<td width="1%" nowrap class="body_colb">Package Name </td>
|
|
|
520 |
<td width="1%" nowrap class="body_colb">Version </td>
|
|
|
521 |
<td width="100%" nowrap class="body_colb"> </td>
|
|
|
522 |
</tr>
|
|
|
523 |
<tr>
|
|
|
524 |
<td colspan="4" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
525 |
</tr>
|
|
|
526 |
<%
|
|
|
527 |
Dim currRtag_id
|
|
|
528 |
currRtag_id = -1
|
|
|
529 |
Set rsRep = OraDatabase.DbCreateDynaset( Query_String, 0 )
|
|
|
530 |
|
|
|
531 |
If rsRep.RecordCount = 0 Then
|
|
|
532 |
With Response
|
|
|
533 |
.write "<tr>"
|
|
|
534 |
.write "<td colspan='4' class='body_row'>Found 0 records</td>"
|
|
|
535 |
.write "</tr>"
|
|
|
536 |
End With
|
|
|
537 |
End If
|
|
|
538 |
|
|
|
539 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))
|
|
|
540 |
' -------- GROUP BY RTAG_ID -----------------
|
|
|
541 |
If CDbl(currRtag_id) <> CDbl(rsRep("rtag_id")) Then
|
|
|
542 |
%>
|
|
|
543 |
<tr>
|
|
|
544 |
<td colspan="3" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
545 |
<td></td>
|
|
|
546 |
</tr>
|
|
|
547 |
<tr>
|
|
|
548 |
<td colspan="4" nowrap class="body_scol"><%=rsRep("proj_name") &" > "& rsRep("rtag_name")%></td>
|
|
|
549 |
</tr>
|
|
|
550 |
<%
|
|
|
551 |
currRtag_id = CDbl(rsRep("rtag_id"))
|
|
|
552 |
End If
|
|
|
553 |
' -------- END GROUP ------------------------
|
|
|
554 |
%>
|
|
|
555 |
<tr>
|
|
|
556 |
<td class="body_row"></td>
|
|
|
557 |
<td nowrap><a href="dependencies.asp?rtag_id=<%=rsRep("rtag_id")%>&pv_id=<%=rsRep("pv_id")%>" class="txt_linked"><%=rsRep("pkg_name")%></a></td>
|
|
|
558 |
<td nowrap><a href="dependencies.asp?rtag_id=<%=rsRep("rtag_id")%>&pv_id=<%=rsRep("pv_id")%>" class="txt_linked"><%=rsRep("pkg_version")%></a></td>
|
|
|
559 |
<td class="body_row"></td>
|
|
|
560 |
</tr>
|
|
|
561 |
<% rsRep.MoveNext
|
|
|
562 |
WEnd
|
|
|
563 |
%>
|
|
|
564 |
<tr>
|
|
|
565 |
<td colspan="3" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
566 |
<td></td>
|
|
|
567 |
</tr>
|
|
|
568 |
<tr>
|
|
|
569 |
<td colspan="4" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
570 |
</tr>
|
|
|
571 |
</table>
|
|
|
572 |
<!-- PRINT, SAVE, ETC. ------------>
|
|
|
573 |
<%If parPrint = "" Then%>
|
|
|
574 |
<br>
|
|
|
575 |
<br>
|
|
|
576 |
<a href="javascript:;" onClick="window.print();" class="txt_linked"><img src="images/btn_print.gif" width="23" height="24" hspace="4" border="0" align="absmiddle">Print this report</a><br>
|
|
|
577 |
<br>
|
|
|
578 |
<%End If%>
|
|
|
579 |
<!-- PRINT, SAVE, ETC. END -------->
|
|
|
580 |
<%
|
|
|
581 |
rsRep.Close
|
|
|
582 |
Set rsRep = nothing
|
|
|
583 |
End If
|
|
|
584 |
|
|
|
585 |
End Sub
|
|
|
586 |
%>
|
|
|
587 |
<%
|
|
|
588 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
589 |
'==================================================================================
|
|
|
590 |
' Report Name : Current State of Release
|
|
|
591 |
' Description : Show all packages in a release with their state, owner and modifier
|
|
|
592 |
' Form Input : Project, Vesion Tree, Release Label
|
|
|
593 |
' SQL INPUT : rtag_id
|
|
|
594 |
'==================================================================================
|
|
|
595 |
Sub Current_State_of_Release ( SSsection, NNproj_id, NNrtag_id, NNpkg_states )
|
|
|
596 |
Dim Query_String, rsRep
|
|
|
597 |
Const Disallow_All = FALSE
|
|
|
598 |
|
|
|
599 |
If NNproj_id = "" Then NNproj_id = -1
|
|
|
600 |
If NNrtag_id = "" Then NNrtag_id = -1
|
|
|
601 |
If NNpkg_states = "" Then NNpkg_states = -1
|
|
|
602 |
|
|
|
603 |
If SSsection = "TITLE" Then
|
|
|
604 |
Response.write "Current State of Release"
|
|
|
605 |
Exit Sub
|
|
|
606 |
End If
|
|
|
607 |
|
|
|
608 |
|
|
|
609 |
If SSsection = "FORM" Then
|
|
|
610 |
%>
|
|
|
611 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
|
|
612 |
<form action="<%=scriptName%>" method="post" name="repform" onSubmit="MM_validateForm('FRproj_id','Project','R','FRvtree_id','Version Tree','R','FRrtag_id','Release','R');return document.MM_returnValue">
|
|
|
613 |
<tr>
|
|
|
614 |
<td width="1%" nowrap class="form_field"><img src="images/spacer.gif" width="30" height="8"></td>
|
|
|
615 |
<td width="1%" align="right" nowrap class="form_field">Project</td>
|
|
|
616 |
<td width="100%"><%Call Get_Projects( NNproj_id, Disallow_All )%></td>
|
|
|
617 |
</tr>
|
|
|
618 |
<tr>
|
|
|
619 |
<td nowrap class="form_field"> </td>
|
|
|
620 |
<td align="right" nowrap class="form_field">Release</td>
|
|
|
621 |
<td><%Call Get_Release_Labels ( NNproj_id, NNrtag_id, Disallow_All )%></td>
|
|
|
622 |
</tr>
|
|
|
623 |
<tr>
|
|
|
624 |
<td nowrap class="form_field"> </td>
|
|
|
625 |
<td align="right" nowrap class="form_field">Package States</td>
|
|
|
626 |
<td class="form_field" nowrap>
|
|
|
627 |
<span style="border: 1px solid #808080;"> OK <input type="checkbox" name="FRpkg_state" value="<%=enumPKG_STATE_OK%>" <%If InStr( Request("FRpkg_state"), Cstr(enumPKG_STATE_OK) ) > 0 Then%>checked<%End If%>></span>
|
|
|
628 |
<span style="border: 1px solid #808080;"><%=enum_imgCritical%><input type="checkbox" name="FRpkg_state" value="<%=enumPKG_STATE_MAJOR%>" <%If InStr( Request("FRpkg_state"), Cstr(enumPKG_STATE_MAJOR) ) > 0 Then%>checked<%End If%>></span>
|
|
|
629 |
<span style="border: 1px solid #808080;"><%=enum_imgWarning%><input type="checkbox" name="FRpkg_state" value="<%=enumPKG_STATE_MINOR%>" <%If InStr( Request("FRpkg_state"), Cstr(enumPKG_STATE_MINOR) ) > 0 Then%>checked<%End If%>></span>
|
|
|
630 |
<span style="border: 1px solid #808080;"><%=enum_imgCReady%><input type="checkbox" name="FRpkg_state" value="<%=enumPKG_STATE_MAJOR_READY%>" <%If InStr( Request("FRpkg_state"), Cstr(enumPKG_STATE_MAJOR_READY) ) > 0 Then%>checked<%End If%>></span>
|
|
|
631 |
<span style="border: 1px solid #808080;"><%=enum_imgWReady%><input type="checkbox" name="FRpkg_state" value="<%=enumPKG_STATE_MINOR_READY%>" <%If InStr( Request("FRpkg_state"), Cstr(enumPKG_STATE_MINOR_READY) ) > 0 Then%>checked<%End If%>></span>
|
|
|
632 |
</td>
|
|
|
633 |
</tr>
|
|
|
634 |
<tr>
|
|
|
635 |
<td nowrap class="form_field"> </td>
|
|
|
636 |
<td align="right" nowrap class="form_field"> </td>
|
|
|
637 |
<td><br>
|
|
|
638 |
<input type="hidden" name="group" value="<%=parGroup%>">
|
|
|
639 |
<input type="hidden" name="repnum" value="<%=parRepNum%>">
|
|
|
640 |
<input type="hidden" name="action" value="true">
|
|
|
641 |
<input name="Submit" type="submit" class="form_btn" value="Submit">
|
|
|
642 |
</td>
|
|
|
643 |
</tr>
|
|
|
644 |
</form>
|
|
|
645 |
</table>
|
|
|
646 |
<% Exit Sub
|
|
|
647 |
End If
|
|
|
648 |
|
|
|
649 |
|
|
|
650 |
If SSsection = "BODY" Then
|
|
|
651 |
If NOT CBool(Request("action")) Then Exit Sub
|
|
|
652 |
|
|
|
653 |
Query_String = ReadFile( rootPath & "queries\rep_details_current_status_of_release.sql" )
|
|
|
654 |
Query_String = Replace ( Query_String, "/*PKG_STATES*/", NNpkg_states )
|
|
|
655 |
|
|
|
656 |
OraDatabase.Parameters.Add "RTAG_ID", NNrtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
657 |
%>
|
|
|
658 |
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
|
|
659 |
<tr>
|
|
|
660 |
<td width="1%" nowrap class="body_colb"> </td>
|
|
|
661 |
<td width="1%" nowrap class="body_colb"> </td>
|
|
|
662 |
<td width="1%" nowrap class="body_colb"> </td>
|
|
|
663 |
<td width="1%" nowrap class="body_colb">Package Name and Version </td>
|
|
|
664 |
<td width="1%" nowrap class="body_colb">Owner </td>
|
|
|
665 |
<td width="1%" nowrap class="body_colb">Last Modifier </td>
|
|
|
666 |
<td width="1%" nowrap class="body_colb">Added to Release </td>
|
|
|
667 |
<td width="100%" nowrap class="body_colb"> </td>
|
|
|
668 |
</tr>
|
|
|
669 |
<tr>
|
|
|
670 |
<td colspan="8" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
671 |
</tr>
|
|
|
672 |
<%
|
|
|
673 |
Dim currView_id
|
|
|
674 |
currView_id = -1
|
|
|
675 |
Set rsRep = OraDatabase.DbCreateDynaset( Query_String, 0 )
|
|
|
676 |
|
|
|
677 |
If rsRep.RecordCount = 0 Then
|
|
|
678 |
With Response
|
|
|
679 |
.write "<tr>"
|
|
|
680 |
.write "<td colspan='8' class='body_row'>Found 0 records</td>"
|
|
|
681 |
.write "</tr>"
|
|
|
682 |
End With
|
|
|
683 |
End If
|
|
|
684 |
|
|
|
685 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))
|
|
|
686 |
' -------- GROUP BY RTAG_ID -----------------
|
|
|
687 |
If CDbl(currView_id) <> CDbl(rsRep("view_id")) Then
|
|
|
688 |
%>
|
|
|
689 |
<tr>
|
|
|
690 |
<td colspan="7" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
691 |
<td></td>
|
|
|
692 |
</tr>
|
|
|
693 |
<tr>
|
|
|
694 |
<td colspan="8" nowrap class="body_scol"><%=rsRep("view_name")%></td>
|
|
|
695 |
</tr>
|
|
|
696 |
<%
|
|
|
697 |
currView_id = CDbl(rsRep("view_id"))
|
|
|
698 |
End If
|
|
|
699 |
' -------- END GROUP ------------------------
|
|
|
700 |
%>
|
|
|
701 |
<tr>
|
|
|
702 |
<td class="body_row"></td>
|
|
|
703 |
<td><%=DefineStateIcon ( rsRep("pkg_state"), rsRep("dlocked"), NULL, NULL, NULL, NULL )%></td>
|
|
|
704 |
<%If rsRep("dlocked") = "Y" Then%>
|
|
|
705 |
<td align="center" class="form_item"><img src='images/i_locked.gif' width='7' height='10' hspace='6'></td>
|
|
|
706 |
<%Else%>
|
|
|
707 |
<td align="center" class="form_item"><img src='images/spacer.gif' width='7' height='10' hspace='6'></td>
|
|
|
708 |
<%End If%>
|
|
|
709 |
<td nowrap class="body_row"><%=rsRep("pkg_name") &" "& rsRep("pkg_version")%></td>
|
|
|
710 |
<td nowrap><a href="mailto:<%=rsRep("owner_email")%>" class="txt_linked"><%=rsRep("owner")%></a> </td>
|
|
|
711 |
<td nowrap><a href="mailto:<%=rsRep("modifier_email")%>" class="txt_linked"><%=rsRep("modifier")%></a> </td>
|
|
|
712 |
<td class="body_row"><%=EuroDate( rsRep("insert_stamp") )%></td>
|
|
|
713 |
<td class="body_row"></td>
|
|
|
714 |
</tr>
|
|
|
715 |
<% rsRep.MoveNext
|
|
|
716 |
WEnd
|
|
|
717 |
%>
|
|
|
718 |
<tr>
|
|
|
719 |
<td colspan="8" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
720 |
</tr>
|
|
|
721 |
</table>
|
|
|
722 |
<!-- PRINT, SAVE, ETC. ------------>
|
|
|
723 |
<%If parPrint = "" Then%>
|
|
|
724 |
<br>
|
|
|
725 |
<br>
|
|
|
726 |
<a href="javascript:;" onClick="window.print();" class="txt_linked"><img src="images/btn_print.gif" width="23" height="24" hspace="4" border="0" align="absmiddle">Print this report</a><br>
|
|
|
727 |
<br>
|
|
|
728 |
<%End If%>
|
|
|
729 |
<!-- PRINT, SAVE, ETC. END -------->
|
|
|
730 |
<%
|
|
|
731 |
rsRep.Close
|
|
|
732 |
Set rsRep = nothing
|
|
|
733 |
End If
|
|
|
734 |
|
|
|
735 |
End Sub
|
|
|
736 |
%>
|
|
|
737 |
<%
|
|
|
738 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
739 |
'==================================================================================
|
|
|
740 |
' Report Name : Find ClearQuest Bugs / Issues Location
|
|
|
741 |
' Description : Locates bugs / issues imported from ClearQuest
|
|
|
742 |
' Form Input : CQ issue Database, CQ issue number list space separated
|
|
|
743 |
'==================================================================================
|
|
|
744 |
Sub Where_Are_Bugs_Located ( SSsection, NNiss_db, SSiss_num_list )
|
|
|
745 |
Dim Query_String, rsRep
|
|
|
746 |
|
|
|
747 |
If SSsection = "TITLE" Then
|
|
|
748 |
Response.write "Find ClearQuest Bugs / Issues Location"
|
|
|
749 |
Exit Sub
|
|
|
750 |
End If
|
|
|
751 |
|
|
|
752 |
|
|
|
753 |
If SSsection = "FORM" Then
|
|
|
754 |
%>
|
|
|
755 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
|
|
756 |
<form action="<%=scriptName%>" method="post" name="repform" onSubmit="MM_validateForm('FRiss_num_list','Issue Number','R');return document.MM_returnValue">
|
|
|
757 |
<tr>
|
|
|
758 |
<td width="1%" nowrap class="form_field"><img src="images/spacer.gif" width="30" height="8"></td>
|
|
|
759 |
<td width="1%" align="right" nowrap class="form_field" valign="top">ClearQuest Database</td>
|
|
|
760 |
<td width="100%">
|
|
|
761 |
<select name="FRiss_db" class="form_item">
|
|
|
762 |
<option value="<%=enumCLEARQUEST_DEVI_ID%>" <%If CDbl(NNiss_db) = enumCLEARQUEST_DEVI_ID Then%>selected<%End If%>>DEVI</option>
|
|
|
763 |
<option value="<%=enumCLEARQUEST_TDSE_ID%>" <%If CDbl(NNiss_db) = enumCLEARQUEST_TDSE_ID Then%>selected<%End If%>>TDSE</option>
|
|
|
764 |
</select>
|
|
|
765 |
</td>
|
|
|
766 |
</tr>
|
|
|
767 |
<tr>
|
|
|
768 |
<td nowrap class="form_field"> </td>
|
|
|
769 |
<td align="right" nowrap class="form_field" valign="top">Issue Numbers</td>
|
|
|
770 |
<td class="form_txt"><input type="text" name="FRiss_num_list" size="50" class="form_item" value="<%=SSiss_num_list%>"><br>
|
|
|
771 |
HINTS:<br>
|
|
|
772 |
- You can use * wildcard. e.g. *0123 or 0123* or *0123*<br>
|
|
|
773 |
- Use space separated issue numbers for multiple search.</td>
|
|
|
774 |
</tr>
|
|
|
775 |
<tr>
|
|
|
776 |
<td nowrap class="form_field"> </td>
|
|
|
777 |
<td align="right" nowrap class="form_field"> </td>
|
|
|
778 |
<td><br>
|
|
|
779 |
<input type="hidden" name="group" value="<%=parGroup%>">
|
|
|
780 |
<input type="hidden" name="repnum" value="<%=parRepNum%>">
|
|
|
781 |
<input type="hidden" name="action" value="true">
|
|
|
782 |
<input name="Submit" type="submit" class="form_btn" value="Submit">
|
|
|
783 |
</td>
|
|
|
784 |
</tr>
|
|
|
785 |
</form>
|
|
|
786 |
</table>
|
|
|
787 |
<% Exit Sub
|
|
|
788 |
End If
|
|
|
789 |
|
|
|
790 |
|
|
|
791 |
If SSsection = "BODY" Then
|
|
|
792 |
If NOT CBool(Request("action")) Then Exit Sub
|
|
|
793 |
|
|
|
794 |
Dim SSsql, issARR, num_item, iss_num_col, issNumDict, rsCQ, recCount, maxRecCount
|
|
|
795 |
Set rsCQ = Server.CreateObject("ADODB.Recordset")
|
|
|
796 |
Set issNumDict = CreateObject("Scripting.Dictionary")
|
|
|
797 |
|
|
|
798 |
|
|
|
799 |
'---- Find Issue numbers in ClearQuest ----
|
|
|
800 |
If CDbl(NNiss_db) = enumCLEARQUEST_MASSI_ID Then
|
|
|
801 |
iss_num_col = "new_num"
|
|
|
802 |
SSsql = _
|
|
|
803 |
" SELECT si.dbid AS iss_id, si."& iss_num_col &" AS iss_num"&_
|
|
|
804 |
" FROM MASSI.admin.software_issue si"&_
|
|
|
805 |
" WHERE "
|
|
|
806 |
|
|
|
807 |
|
|
|
808 |
ElseIf CDbl(NNiss_db) = enumCLEARQUEST_DPGIM_ID Then
|
|
|
809 |
iss_num_col = "new_num"
|
|
|
810 |
SSsql = _
|
|
|
811 |
" SELECT si.dbid AS iss_id, si."& iss_num_col &" AS iss_num"&_
|
|
|
812 |
" FROM DPGIM.admin.software_issue si"&_
|
|
|
813 |
" WHERE "
|
|
|
814 |
|
|
|
815 |
|
|
|
816 |
ElseIf CDbl(NNiss_db) = enumCLEARQUEST_DEVI_ID Then
|
|
|
817 |
iss_num_col = "new_num"
|
|
|
818 |
SSsql = _
|
|
|
819 |
" SELECT si.dbid AS iss_id, si."& iss_num_col &" AS iss_num"&_
|
|
|
820 |
" FROM DEVI_PROD.admin.software_issue si"&_
|
|
|
821 |
" WHERE "
|
|
|
822 |
|
|
|
823 |
|
|
|
824 |
ElseIf CDbl(NNiss_db) = enumCLEARQUEST_TDSE_ID Then
|
|
|
825 |
iss_num_col = "job_number"
|
|
|
826 |
SSsql = _
|
|
|
827 |
" SELECT dbid AS iss_id, si."& iss_num_col &" AS iss_num"&_
|
|
|
828 |
" FROM TDSE_2002.admin.request si"&_
|
|
|
829 |
" WHERE "
|
|
|
830 |
|
|
|
831 |
End If
|
|
|
832 |
|
|
|
833 |
|
|
|
834 |
'---- Split multiple search ----
|
|
|
835 |
SSiss_num_list = Trim(SSiss_num_list)
|
|
|
836 |
If InStr( SSiss_num_list, " " ) > 0 Then
|
|
|
837 |
' space separator found
|
|
|
838 |
issARR = Split ( SSiss_num_list, " ")
|
|
|
839 |
|
|
|
840 |
For Each num_item In issARR
|
|
|
841 |
If num_item <> "" Then
|
|
|
842 |
SSsql = SSsql & " (si."& iss_num_col &" LIKE '%"& Replace( SQLstring(num_item), "*", "%" ) &"%') OR"
|
|
|
843 |
End If
|
|
|
844 |
Next
|
|
|
845 |
|
|
|
846 |
SSsql = Left ( SSsql, Len(SSsql) - 2 ) ' Removes last OR
|
|
|
847 |
|
|
|
848 |
Else
|
|
|
849 |
SSsql = SSsql & " (si."& iss_num_col &" LIKE '%"& Replace( SQLstring(SSiss_num_list), "*", "%") &"%')"
|
|
|
850 |
|
|
|
851 |
End If
|
|
|
852 |
|
|
|
853 |
rsCQ.ActiveConnection = CQ_conn
|
|
|
854 |
rsCQ.Source = SSsql
|
|
|
855 |
rsCQ.CursorType = 0
|
|
|
856 |
rsCQ.CursorLocation = 2
|
|
|
857 |
rsCQ.LockType = 3
|
|
|
858 |
rsCQ.Open()
|
|
|
859 |
|
|
|
860 |
' Get find results from CQ
|
|
|
861 |
recCount = 1
|
|
|
862 |
maxRecCount = 1000
|
|
|
863 |
issNumDict.ADD "-1", "-1" ' take care of no results
|
|
|
864 |
While ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF) AND (recCount < maxRecCount))
|
|
|
865 |
issNumDict.ADD Cstr(rsCQ("iss_id")), Cstr(rsCQ("iss_num"))
|
|
|
866 |
recCount = recCount + 1
|
|
|
867 |
rsCQ.MoveNext
|
|
|
868 |
WEnd
|
|
|
869 |
|
|
|
870 |
rsCQ.Close
|
|
|
871 |
Set rsCQ = nothing
|
|
|
872 |
|
|
|
873 |
Query_String = ReadFile( rootPath & "queries\rep_where_are_bugs_located.sql" )
|
|
|
874 |
Query_String = Replace ( Query_String, "/*ISS_DB*/", NNiss_db )
|
|
|
875 |
Query_String = Replace ( Query_String, "/*ISS_ID_LIST*/", Join( issNumDict.Keys, ",") )
|
|
|
876 |
|
|
|
877 |
%>
|
|
|
878 |
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
|
|
879 |
<tr>
|
|
|
880 |
<td width="1%" nowrap class="body_colb">Issue Number </td>
|
|
|
881 |
<td width="1%" nowrap class="body_colb">Fixed</td>
|
|
|
882 |
<td width="1%" nowrap class="body_colb">Package Name and Version </td>
|
|
|
883 |
<td width="1%" nowrap class="body_colb">Notes </td>
|
|
|
884 |
<td width="100%" nowrap class="body_colb"> </td>
|
|
|
885 |
</tr>
|
|
|
886 |
<tr>
|
|
|
887 |
<td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
888 |
</tr>
|
|
|
889 |
<%
|
|
|
890 |
Dim currIss_id
|
|
|
891 |
currIss_id = -1
|
|
|
892 |
Set rsRep = OraDatabase.DbCreateDynaset( Query_String, 0 )
|
|
|
893 |
|
|
|
894 |
If rsRep.RecordCount = 0 Then
|
|
|
895 |
With Response
|
|
|
896 |
.write "<tr>"
|
|
|
897 |
.write "<td colspan='5' class='body_row'>Found 0 records</td>"
|
|
|
898 |
.write "</tr>"
|
|
|
899 |
End With
|
|
|
900 |
End If
|
|
|
901 |
|
|
|
902 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))
|
|
|
903 |
' -------- GROUP BY ISS_ID -----------------
|
|
|
904 |
If Cstr(currIss_id) <> Cstr(rsRep("iss_id")) Then
|
|
|
905 |
%>
|
|
|
906 |
<tr>
|
|
|
907 |
<td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
908 |
<td></td>
|
|
|
909 |
</tr>
|
|
|
910 |
<tr>
|
|
|
911 |
<td nowrap><a href="javascript:;" onClick="MM_openBrWindow('_wform_issues_details.asp?iss_db=<%=NNiss_db%>&iss_id=<%= rsRep("iss_id")%>','IssueDetails','resizable=yes,width=580,height=500')" class="body_scol"><img src="images/i_drill_down.gif" width="12" height="14" hspace="3" border="0" align="absmiddle" alt="See issue details."><%=issNumDict.Item ( Cstr ( rsRep("iss_id") ) )%></a></td>
|
|
|
912 |
<td colspan='5' class="body_scol"></td>
|
|
|
913 |
</tr>
|
|
|
914 |
<%
|
|
|
915 |
currIss_id = Cstr(rsRep("iss_id"))
|
|
|
916 |
End If
|
|
|
917 |
' -------- END GROUP ------------------------
|
|
|
918 |
%>
|
|
|
919 |
<tr>
|
|
|
920 |
<td nowrap class="body_row" valign="top"></td>
|
|
|
921 |
<%If CDbl(rsRep("iss_state")) = enumISSUES_STATE_FIXED Then%>
|
|
|
922 |
<td align="left"><img src="images/i_tick.gif" width="7" height="7" hspace="6"></td>
|
|
|
923 |
<%Else%>
|
|
|
924 |
<td align="left"><img src='images/spacer.gif' width='7' height='7' hspace='6'></td>
|
|
|
925 |
<%End If%>
|
|
|
926 |
<td nowrap align="left" class="body_row" valign="top"><%=rsRep("pkg_name") &" "& rsRep("pkg_version")%><img src="images/i_drill_down.gif" width="12" height="14" hspace="3" border="0" align="absmiddle" alt="Find this package."></td>
|
|
|
927 |
<%
|
|
|
928 |
Set rsQry = OraDatabase.DbCreateDynaset( "select * from release_content rc, release_tags rt where rc.rtag_id = rt.rtag_id and "&_
|
|
|
929 |
" pv_id ="&rsRep("pv_id"), 0 )
|
|
|
930 |
|
|
|
931 |
While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))
|
|
|
932 |
%>
|
|
|
933 |
<tr>
|
|
|
934 |
<td nowrap align="left" class="body_row" valign="top"></td>
|
|
|
935 |
<td nowrap align="left" class="body_row" valign="top"></td>
|
|
|
936 |
<td nowrap align="left" class="body_row" valign="top"><a href="fixed_issues.asp?rtag_id=<%=rsQry("rtag_id")%>&pv_id=<%=rsQry("pv_id")%>" class="txt_linked" target="_blank"><%=rsQry("rtag_name")%></a></td>
|
|
|
937 |
</tr>
|
|
|
938 |
<%
|
|
|
939 |
rsQry.MoveNext()
|
|
|
940 |
Wend
|
|
|
941 |
rsQry.Close()
|
|
|
942 |
Set rsQry = Nothing
|
|
|
943 |
%>
|
|
|
944 |
<td nowrap align="left" class="body_row" valign="top"><%=rsRep("notes")%></td>
|
|
|
945 |
<td nowrap align="left" class="body_row" valign="top"></td>
|
|
|
946 |
</tr>
|
|
|
947 |
<% rsRep.MoveNext
|
|
|
948 |
WEnd
|
|
|
949 |
%>
|
|
|
950 |
<tr>
|
|
|
951 |
<td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
952 |
</tr>
|
|
|
953 |
</table>
|
|
|
954 |
<!-- PRINT, SAVE, ETC. ------------>
|
|
|
955 |
<%If parPrint = "" Then%>
|
|
|
956 |
<br>
|
|
|
957 |
<br>
|
|
|
958 |
<a href="javascript:;" onClick="window.print();" class="txt_linked"><img src="images/btn_print.gif" width="23" height="24" hspace="4" border="0" align="absmiddle">Print this report</a><br>
|
|
|
959 |
<br>
|
|
|
960 |
<%End If%>
|
|
|
961 |
<!-- PRINT, SAVE, ETC. END -------->
|
|
|
962 |
<%
|
|
|
963 |
rsRep.Close
|
|
|
964 |
Set rsRep = nothing
|
|
|
965 |
End If
|
|
|
966 |
|
|
|
967 |
End Sub
|
|
|
968 |
%>
|
|
|
969 |
<%
|
|
|
970 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
971 |
'==================================================================================
|
|
|
972 |
' Report Name : Find a Package
|
|
|
973 |
' Description : Locate a package in Release Manager
|
|
|
974 |
' Form Input : Package Name, version extension
|
|
|
975 |
'==================================================================================
|
|
|
976 |
Sub Find_Package ( SSsection, SSpkg_name, SSv_ext )
|
|
|
977 |
Dim Query_String, rsRep, oRegExp
|
|
|
978 |
|
|
|
979 |
|
|
|
980 |
If SSsection = "TITLE" Then
|
|
|
981 |
Response.write "Find a Package"
|
|
|
982 |
Exit Sub
|
|
|
983 |
End If
|
|
|
984 |
|
|
|
985 |
|
|
|
986 |
If SSsection = "FORM" Then
|
|
|
987 |
%>
|
|
|
988 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
|
|
989 |
<form action="<%=scriptName%>" method="post" name="repform" onSubmit="MM_validateForm('FRpkg_name','Package Name','R');return document.MM_returnValue">
|
|
|
990 |
<tr>
|
|
|
991 |
<td width="1%" nowrap class="form_field"><img src="images/spacer.gif" width="1" height="8"></td>
|
|
|
992 |
<td width="1%" align="right" nowrap class="form_field" valign="top">Package Name</td>
|
|
|
993 |
<td class="form_txt"><input type="text" name="FRpkg_name" size="30" class="form_item" value="<%=SSpkg_name%>"><br>
|
|
|
994 |
HINTS:<br>
|
|
|
995 |
- You can use * wildcard. e.g. *0123 or 0123* or *0123*<br><br></td>
|
|
|
996 |
</tr>
|
|
|
997 |
<tr>
|
|
|
998 |
<td nowrap class="form_field"> </td>
|
|
|
999 |
<td align="right" nowrap class="form_field" valign="top">Version Extension (optional)</td>
|
|
|
1000 |
<td class="form_txt"><input type="text" name="FRv_ext" size="10" class="form_item" value="<%=SSv_ext%>"><br>
|
|
|
1001 |
e.g. .mas or .lvs or .oso or blank etc.</td>
|
|
|
1002 |
</tr>
|
|
|
1003 |
<tr>
|
|
|
1004 |
<td nowrap class="form_field"> </td>
|
|
|
1005 |
<td align="right" nowrap class="form_field"> </td>
|
|
|
1006 |
<td><br>
|
|
|
1007 |
<input type="hidden" name="group" value="<%=parGroup%>">
|
|
|
1008 |
<input type="hidden" name="repnum" value="<%=parRepNum%>">
|
|
|
1009 |
<input type="hidden" name="action" value="true">
|
|
|
1010 |
<input name="Submit" type="submit" class="form_btn" value="Submit">
|
|
|
1011 |
</td>
|
|
|
1012 |
</tr>
|
|
|
1013 |
</form>
|
|
|
1014 |
</table>
|
|
|
1015 |
<% Exit Sub
|
|
|
1016 |
End If
|
|
|
1017 |
|
|
|
1018 |
|
|
|
1019 |
If SSsection = "BODY" Then
|
|
|
1020 |
If NOT CBool(Request("action")) Then Exit Sub
|
|
|
1021 |
|
|
|
1022 |
If SSpkg_name = "" Then SSpkg_name = "%"
|
|
|
1023 |
If SSv_ext = "" Then SSv_ext = "%"
|
|
|
1024 |
If Request("withwcard") <> "" Then SSpkg_name = "%"& Replace( SQLstring(SSpkg_name), "*", "") &"%" 'Place wild card automatically
|
|
|
1025 |
|
|
|
1026 |
|
|
|
1027 |
|
|
|
1028 |
' -- Check if this is PV_ID
|
|
|
1029 |
Set oRegExp = New RegExp
|
|
|
1030 |
|
|
|
1031 |
oRegExp.Global = False 'Find only first match
|
|
|
1032 |
oRegExp.Pattern = "\D" 'Match number only
|
|
|
1033 |
|
|
|
1034 |
|
|
|
1035 |
If NOT oRegExp.Test(Request("FRpkg_name")) Then
|
|
|
1036 |
Query_String = ReadFile( rootPath & "queries\rep_find_package_by_pv_id.sql" )
|
|
|
1037 |
Query_String = Replace ( Query_String, "/*PV_ID*/", SQLstring(Request("FRpkg_name") ) )
|
|
|
1038 |
|
|
|
1039 |
Else
|
|
|
1040 |
Query_String = ReadFile( rootPath & "queries\rep_find_package.sql" )
|
|
|
1041 |
Query_String = Replace ( Query_String, "/*PKG_NAME*/", Replace( SQLstring(SSpkg_name), "*", "%") )
|
|
|
1042 |
Query_String = Replace ( Query_String, "/*V_EXT*/", Replace( SQLstring(SSv_ext), "*", "%") )
|
|
|
1043 |
End If
|
|
|
1044 |
%>
|
|
|
1045 |
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
|
|
1046 |
<tr>
|
|
|
1047 |
<td width="1%" nowrap class="body_colb">Package Name and Version </td>
|
|
|
1048 |
<td width="1%" nowrap class="body_colb">Location</td>
|
|
|
1049 |
<td width="100%" nowrap class="body_colb"> </td>
|
|
|
1050 |
</tr>
|
|
|
1051 |
<tr>
|
|
|
1052 |
<td colspan="3" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1053 |
</tr>
|
|
|
1054 |
<%
|
|
|
1055 |
Dim currPv_id
|
|
|
1056 |
currPv_id = -1
|
|
|
1057 |
Set rsRep = OraDatabase.DbCreateDynaset( Query_String, 0 )
|
|
|
1058 |
|
|
|
1059 |
If rsRep.RecordCount = 0 Then
|
|
|
1060 |
With Response
|
|
|
1061 |
.write "<tr>"
|
|
|
1062 |
.write "<td colspan='3' class='body_row'>Found 0 records</td>"
|
|
|
1063 |
.write "</tr>"
|
|
|
1064 |
End With
|
|
|
1065 |
End If
|
|
|
1066 |
|
|
|
1067 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))
|
|
|
1068 |
' -------- GROUP BY Package Version -----------------
|
|
|
1069 |
If Cstr(currPv_id) <> Cstr(rsRep("pv_id")) Then
|
|
|
1070 |
%>
|
|
|
1071 |
<tr>
|
|
|
1072 |
<td colspan="2" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1073 |
<td></td>
|
|
|
1074 |
</tr>
|
|
|
1075 |
<tr>
|
|
|
1076 |
<%If Request("withwcard") <> "" Then%>
|
|
|
1077 |
<%' Highlight results for package search from index page%>
|
|
|
1078 |
<td nowrap class="body_scol"><%=Highlight_Substring ( rsRep("pkg_name"), Replace( SQLstring(SSpkg_name), "%", "") ) &" "& rsRep("pkg_version")%></td>
|
|
|
1079 |
<%Else%>
|
|
|
1080 |
<td nowrap class="body_scol"><%=rsRep("pkg_name") &" "& rsRep("pkg_version")%></td>
|
|
|
1081 |
<%End If%>
|
|
|
1082 |
<td colspan='2' class="body_scol"></td>
|
|
|
1083 |
</tr>
|
|
|
1084 |
<%
|
|
|
1085 |
currPv_id = Cstr(rsRep("pv_id"))
|
|
|
1086 |
End If
|
|
|
1087 |
' -------- END GROUP ------------------------
|
|
|
1088 |
%>
|
|
|
1089 |
<%If NOT IsNull(rsRep("proj_name")) Then%>
|
|
|
1090 |
<tr>
|
|
|
1091 |
<td class="body_row"></td>
|
|
|
1092 |
<td nowrap class="body_row" valign="top"><%=rsRep("proj_name") &" > "& rsRep("vtree_name") &" > "& rsRep("rtag_name") &" > <a href='dependencies.asp?pv_id="& rsRep("pv_id") &"&rtag_id="& rsRep("rtag_id") &"' class='txt_linked'>"& rsRep("pkg_name") &" "& rsRep("pkg_version") &"</a>"%></td>
|
|
|
1093 |
<td class="body_row"></td>
|
|
|
1094 |
</tr>
|
|
|
1095 |
<%Else%>
|
|
|
1096 |
<tr>
|
|
|
1097 |
<td class="body_row"></td>
|
|
|
1098 |
<td class="body_row"></td>
|
|
|
1099 |
<td class="body_row"></td>
|
|
|
1100 |
</tr>
|
|
|
1101 |
<%End If%>
|
|
|
1102 |
<% rsRep.MoveNext
|
|
|
1103 |
WEnd
|
|
|
1104 |
%>
|
|
|
1105 |
<tr>
|
|
|
1106 |
<td colspan="3" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1107 |
</tr>
|
|
|
1108 |
</table>
|
|
|
1109 |
<!-- PRINT, SAVE, ETC. ------------>
|
|
|
1110 |
<%If parPrint = "" Then%>
|
|
|
1111 |
<br>
|
|
|
1112 |
<br>
|
|
|
1113 |
<a href="javascript:;" onClick="window.print();" class="txt_linked"><img src="images/btn_print.gif" width="23" height="24" hspace="4" border="0" align="absmiddle">Print this report</a><br>
|
|
|
1114 |
<br>
|
|
|
1115 |
<%End If%>
|
|
|
1116 |
<!-- PRINT, SAVE, ETC. END -------->
|
|
|
1117 |
<%
|
|
|
1118 |
rsRep.Close
|
|
|
1119 |
Set rsRep = nothing
|
|
|
1120 |
End If
|
|
|
1121 |
|
|
|
1122 |
End Sub
|
|
|
1123 |
%>
|
|
|
1124 |
<%
|
|
|
1125 |
'==================================================================================
|
|
|
1126 |
' Report Name : Find Package Version History
|
|
|
1127 |
' Description : Locate all package versions and their current location
|
|
|
1128 |
' Form Input : Package Name, version extension
|
|
|
1129 |
'==================================================================================
|
|
|
1130 |
Sub Find_Package_Version_History ( SSsection, SSpkg_name, SSv_ext )
|
|
|
1131 |
Dim Query_String, rsRep
|
|
|
1132 |
|
|
|
1133 |
|
|
|
1134 |
If SSsection = "TITLE" Then
|
|
|
1135 |
Response.write "Find Package Version History"
|
|
|
1136 |
Exit Sub
|
|
|
1137 |
End If
|
|
|
1138 |
|
|
|
1139 |
|
|
|
1140 |
If SSsection = "FORM" Then
|
|
|
1141 |
%>
|
|
|
1142 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
|
|
1143 |
<form action="<%=scriptName%>" method="post" name="repform" onSubmit="MM_validateForm('FRpkg_name','Package Name','R');return document.MM_returnValue">
|
|
|
1144 |
<tr>
|
|
|
1145 |
<td width="1%" nowrap class="form_field"><img src="images/spacer.gif" width="1" height="8"></td>
|
|
|
1146 |
<td width="1%" align="right" nowrap class="form_field" valign="top">Package Name</td>
|
|
|
1147 |
<td class="form_txt"><input type="text" name="FRpkg_name" size="30" class="form_item" value="<%=SSpkg_name%>"><br>
|
|
|
1148 |
HINTS:<br>
|
|
|
1149 |
- You can use * wildcard. e.g. *0123 or 0123* or *0123*<br><br></td>
|
|
|
1150 |
</tr>
|
|
|
1151 |
<tr>
|
|
|
1152 |
<td nowrap class="form_field"> </td>
|
|
|
1153 |
<td align="right" nowrap class="form_field" valign="top">Version Extension (optional)</td>
|
|
|
1154 |
<td class="form_txt"><input type="text" name="FRv_ext" size="10" class="form_item" value="<%=SSv_ext%>"><br>
|
|
|
1155 |
e.g. .mas or .lvs or .oso or blank etc.</td>
|
|
|
1156 |
</tr>
|
|
|
1157 |
<tr>
|
|
|
1158 |
<td nowrap class="form_field"> </td>
|
|
|
1159 |
<td align="right" nowrap class="form_field"> </td>
|
|
|
1160 |
<td><br>
|
|
|
1161 |
<input type="hidden" name="group" value="<%=parGroup%>">
|
|
|
1162 |
<input type="hidden" name="repnum" value="<%=parRepNum%>">
|
|
|
1163 |
<input type="hidden" name="action" value="true">
|
|
|
1164 |
<input name="Submit" type="submit" class="form_btn" value="Submit">
|
|
|
1165 |
</td>
|
|
|
1166 |
</tr>
|
|
|
1167 |
</form>
|
|
|
1168 |
</table>
|
|
|
1169 |
<% Exit Sub
|
|
|
1170 |
End If
|
|
|
1171 |
|
|
|
1172 |
|
|
|
1173 |
If SSsection = "BODY" Then
|
|
|
1174 |
Const img_Official = "<img src='images/i_locked.gif' width='7' height='10' hspace='3' align='absmiddle'>"
|
|
|
1175 |
If NOT CBool(Request("action")) Then Exit Sub
|
|
|
1176 |
|
|
|
1177 |
If SSpkg_name = "" Then SSpkg_name = "%"
|
|
|
1178 |
If SSv_ext = "" Then SSv_ext = "%"
|
|
|
1179 |
|
|
|
1180 |
Query_String = ReadFile( rootPath & "queries\rep_package_version_history.sql" )
|
|
|
1181 |
Query_String = Replace ( Query_String, "/*PKG_NAME*/", Replace( SQLstring(SSpkg_name), "*", "%") )
|
|
|
1182 |
Query_String = Replace ( Query_String, "/*V_EXT*/", Replace( SQLstring(SSv_ext), "*", "%") )
|
|
|
1183 |
%>
|
|
|
1184 |
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
|
|
1185 |
<tr>
|
|
|
1186 |
<td width="1%" nowrap class="body_colb" align="right">Official<%=img_Official%></td>
|
|
|
1187 |
<td width="1%" nowrap class="body_colb">Package Name and Version </td>
|
|
|
1188 |
<td width="1%" nowrap class="body_colb">Location</td>
|
|
|
1189 |
<td width="100%" nowrap class="body_colb"> </td>
|
|
|
1190 |
</tr>
|
|
|
1191 |
<tr>
|
|
|
1192 |
<td colspan="4" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1193 |
</tr>
|
|
|
1194 |
<%
|
|
|
1195 |
Dim currPv_id
|
|
|
1196 |
currPv_id = -1
|
|
|
1197 |
Set rsRep = OraDatabase.DbCreateDynaset( Query_String, 0 )
|
|
|
1198 |
|
|
|
1199 |
If rsRep.RecordCount = 0 Then
|
|
|
1200 |
With Response
|
|
|
1201 |
.write "<tr>"
|
|
|
1202 |
.write "<td colspan='4' class='body_row'>Found 0 records</td>"
|
|
|
1203 |
.write "</tr>"
|
|
|
1204 |
End With
|
|
|
1205 |
End If
|
|
|
1206 |
|
|
|
1207 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))
|
|
|
1208 |
' -------- GROUP BY Package Version -----------------
|
|
|
1209 |
If Cstr(currPv_id) <> Cstr(rsRep("pv_id")) Then
|
|
|
1210 |
%>
|
|
|
1211 |
<tr>
|
|
|
1212 |
<td colspan="3" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1213 |
<td></td>
|
|
|
1214 |
</tr>
|
|
|
1215 |
<tr>
|
|
|
1216 |
<td align="right"><%If rsRep("dlocked") = "Y" Then%><%=img_Official%><%End If%></td>
|
|
|
1217 |
<td nowrap class="body_scol"><%=rsRep("pkg_name") &" "& rsRep("pkg_version")%></td>
|
|
|
1218 |
<td colspan='2' class="body_scol"></td>
|
|
|
1219 |
</tr>
|
|
|
1220 |
<%
|
|
|
1221 |
currPv_id = Cstr(rsRep("pv_id"))
|
|
|
1222 |
End If
|
|
|
1223 |
' -------- END GROUP ------------------------
|
|
|
1224 |
%>
|
|
|
1225 |
<tr>
|
|
|
1226 |
<td class="body_row"></td>
|
|
|
1227 |
<td class="body_row"></td>
|
|
|
1228 |
<%If IsNull(rsRep("rtag_id")) Then%>
|
|
|
1229 |
<td nowrap class="body_txt_gray" valign="top">Not Used!</td>
|
|
|
1230 |
<%Else%>
|
|
|
1231 |
<td nowrap class="body_row" valign="top"><%=rsRep("proj_name") &" > "& rsRep("vtree_name") &" > "& rsRep("rtag_name") &" > <a href='dependencies.asp?pv_id="& rsRep("pv_id") &"&rtag_id="& rsRep("rtag_id") &"' class='txt_linked'>"& rsRep("pkg_name") &" "& rsRep("pkg_version") &"</a>"%></td>
|
|
|
1232 |
<%End If%>
|
|
|
1233 |
<td class="body_row"></td>
|
|
|
1234 |
</tr>
|
|
|
1235 |
<% rsRep.MoveNext
|
|
|
1236 |
WEnd
|
|
|
1237 |
%>
|
|
|
1238 |
<tr>
|
|
|
1239 |
<td colspan="4" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1240 |
</tr>
|
|
|
1241 |
</table>
|
|
|
1242 |
<!-- PRINT, SAVE, ETC. ------------>
|
|
|
1243 |
<%If parPrint = "" Then%>
|
|
|
1244 |
<br>
|
|
|
1245 |
<br>
|
|
|
1246 |
<a href="javascript:;" onClick="window.print();" class="txt_linked"><img src="images/btn_print.gif" width="23" height="24" hspace="4" border="0" align="absmiddle">Print this report</a><br>
|
|
|
1247 |
<br>
|
|
|
1248 |
<%End If%>
|
|
|
1249 |
<!-- PRINT, SAVE, ETC. END -------->
|
|
|
1250 |
<%
|
|
|
1251 |
rsRep.Close
|
|
|
1252 |
Set rsRep = nothing
|
|
|
1253 |
End If
|
|
|
1254 |
|
|
|
1255 |
End Sub
|
|
|
1256 |
%>
|
|
|
1257 |
<%
|
|
|
1258 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
1259 |
'==================================================================================
|
|
|
1260 |
' Report Name : Obsolete Packages
|
|
|
1261 |
' Description : List packages that are not used (exclude products)
|
|
|
1262 |
' INPUT : Project, Vesion Tree, Release Label
|
|
|
1263 |
'==================================================================================
|
|
|
1264 |
Sub Obsolete_Packages ( SSsection, NNproj_id, NNrtag_id )
|
|
|
1265 |
Dim Query_String, rsRep
|
|
|
1266 |
Const Allow_All = TRUE
|
|
|
1267 |
Const Disallow_All = FALSE
|
|
|
1268 |
|
|
|
1269 |
If NNproj_id = "" Then NNproj_id = -1
|
|
|
1270 |
If NNrtag_id = "" Then NNrtag_id = -1
|
|
|
1271 |
|
|
|
1272 |
If SSsection = "TITLE" Then
|
|
|
1273 |
Response.write "Unused Packages"
|
|
|
1274 |
Exit Sub
|
|
|
1275 |
End If
|
|
|
1276 |
|
|
|
1277 |
|
|
|
1278 |
If SSsection = "FORM" Then
|
|
|
1279 |
%>
|
|
|
1280 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
|
|
1281 |
<form action="<%=scriptName%>" method="post" name="repform" onSubmit="MM_validateForm('FRproj_id','Project','R','FRvtree_id','Version Tree','R','FRrtag_id','Release','R');return document.MM_returnValue">
|
|
|
1282 |
<tr>
|
|
|
1283 |
<td width="1%" nowrap class="form_field"><img src="images/spacer.gif" width="30" height="8"></td>
|
|
|
1284 |
<td width="1%" align="right" nowrap class="form_field">Project</td>
|
|
|
1285 |
<td width="100%"><%Call Get_Projects( NNproj_id, Disallow_All )%></td>
|
|
|
1286 |
</tr>
|
|
|
1287 |
<tr>
|
|
|
1288 |
<td nowrap class="form_field"> </td>
|
|
|
1289 |
<td align="right" nowrap class="form_field">Release</td>
|
|
|
1290 |
<td><%Call Get_Release_Labels ( NNproj_id, NNrtag_id, Disallow_All )%></td>
|
|
|
1291 |
</tr>
|
|
|
1292 |
<tr>
|
|
|
1293 |
<td nowrap class="form_field"> </td>
|
|
|
1294 |
<td align="right" nowrap class="form_field"> </td>
|
|
|
1295 |
<td><br>
|
|
|
1296 |
<input type="hidden" name="group" value="<%=parGroup%>">
|
|
|
1297 |
<input type="hidden" name="repnum" value="<%=parRepNum%>">
|
|
|
1298 |
<input type="hidden" name="action" value="true">
|
|
|
1299 |
<input name="Submit" type="submit" class="form_btn" value="Submit">
|
|
|
1300 |
</td>
|
|
|
1301 |
</tr>
|
|
|
1302 |
</form>
|
|
|
1303 |
</table>
|
|
|
1304 |
<% Exit Sub
|
|
|
1305 |
End If
|
|
|
1306 |
|
|
|
1307 |
|
|
|
1308 |
If SSsection = "BODY" Then
|
|
|
1309 |
If NOT CBool(Request("action")) Then Exit Sub
|
|
|
1310 |
|
|
|
1311 |
Query_String = ReadFile( rootPath & "queries\rep_obsolete_packages.sql" )
|
|
|
1312 |
|
|
|
1313 |
OraDatabase.Parameters.Add "RTAG_ID", NNrtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
1314 |
%>
|
|
|
1315 |
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
|
|
1316 |
<tr>
|
|
|
1317 |
<td width="1%" nowrap class="body_colb"> </td>
|
|
|
1318 |
<td width="1%" nowrap class="body_colb">Package Name and Version </td>
|
|
|
1319 |
<td width="1%" nowrap class="body_colb">Released </td>
|
|
|
1320 |
<td width="1%" nowrap class="body_colb">Added to Release </td>
|
|
|
1321 |
<td width="100%" nowrap class="body_colb"> </td>
|
|
|
1322 |
</tr>
|
|
|
1323 |
<tr>
|
|
|
1324 |
<td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1325 |
</tr>
|
|
|
1326 |
<%
|
|
|
1327 |
Dim currView_id
|
|
|
1328 |
currView_id = -1
|
|
|
1329 |
Set rsRep = OraDatabase.DbCreateDynaset( Query_String, 0 )
|
|
|
1330 |
|
|
|
1331 |
If rsRep.RecordCount = 0 Then
|
|
|
1332 |
With Response
|
|
|
1333 |
.write "<tr>"
|
|
|
1334 |
.write "<td colspan='5' class='body_row'>Found 0 records</td>"
|
|
|
1335 |
.write "</tr>"
|
|
|
1336 |
End With
|
|
|
1337 |
End If
|
|
|
1338 |
|
|
|
1339 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))
|
|
|
1340 |
' -------- GROUP BY BASE VIEW -----------------
|
|
|
1341 |
If CDbl(currView_id) <> CDbl(rsRep("view_id")) Then
|
|
|
1342 |
%>
|
|
|
1343 |
<tr>
|
|
|
1344 |
<td colspan="4" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1345 |
<td></td>
|
|
|
1346 |
</tr>
|
|
|
1347 |
<tr>
|
|
|
1348 |
<td nowrap class="body_scol"><%=rsRep("view_name")%></td>
|
|
|
1349 |
<td class="body_scol"></td>
|
|
|
1350 |
<td class="body_scol"></td>
|
|
|
1351 |
<td class="body_scol"></td>
|
|
|
1352 |
<td class="body_scol"></td>
|
|
|
1353 |
</tr>
|
|
|
1354 |
<%
|
|
|
1355 |
currView_id = CDbl(rsRep("view_id"))
|
|
|
1356 |
End If
|
|
|
1357 |
' -------- END GROUP ------------------------
|
|
|
1358 |
%>
|
|
|
1359 |
<tr>
|
|
|
1360 |
<td class="body_row"></td>
|
|
|
1361 |
<td nowrap class="body_row"><a href="used_by.asp?pv_id=<%=rsRep("pv_id")%>&rtag_id=<%=NNrtag_id%>" class="txt_linked"><%=rsRep("pkg_name") &" "& rsRep("pkg_version")%></a></td>
|
|
|
1362 |
<td nowrap class="body_row"><%=EuroDate( rsRep("modified_stamp") )%> by <a href="mailto:<%=rsRep("modifier_email")%>" class="txt_linked"><%=rsRep("modifier")%></a> </td>
|
|
|
1363 |
<td nowrap class="body_row"><%=EuroDate( rsRep("insert_stamp") )%> by <a href="mailto:<%=rsRep("insertor_email")%>" class="txt_linked"><%=rsRep("insertor")%></a> </td>
|
|
|
1364 |
<td class="body_row"></td>
|
|
|
1365 |
</tr>
|
|
|
1366 |
<% rsRep.MoveNext
|
|
|
1367 |
WEnd
|
|
|
1368 |
%>
|
|
|
1369 |
<tr>
|
|
|
1370 |
<td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1371 |
</tr>
|
|
|
1372 |
</table>
|
|
|
1373 |
<!-- PRINT, SAVE, ETC. ------------>
|
|
|
1374 |
<%If parPrint = "" Then%>
|
|
|
1375 |
<br>
|
|
|
1376 |
<br>
|
|
|
1377 |
<a href="javascript:;" onClick="window.print();" class="txt_linked"><img src="images/btn_print.gif" width="23" height="24" hspace="4" border="0" align="absmiddle">Print this report</a><br>
|
|
|
1378 |
<br>
|
|
|
1379 |
<%End If%>
|
|
|
1380 |
<!-- PRINT, SAVE, ETC. END -------->
|
|
|
1381 |
<%
|
|
|
1382 |
rsRep.Close
|
|
|
1383 |
Set rsRep = nothing
|
|
|
1384 |
End If
|
|
|
1385 |
|
|
|
1386 |
End Sub
|
|
|
1387 |
%>
|
|
|
1388 |
<%
|
|
|
1389 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
1390 |
'==================================================================================
|
|
|
1391 |
' Report Name : Deployable Software Modules
|
|
|
1392 |
' Description : Shows packages that are deployed to the customers and shows new packages marked as deployable.
|
|
|
1393 |
' INPUT : Project, Vesion Tree, Release Label, Base View (hard-coded to PRODUCTS)
|
|
|
1394 |
'==================================================================================
|
|
|
1395 |
Sub Deployable_Software_Modules ( sSection, nProj_id, nRtag_id, nBase_view_id )
|
|
|
1396 |
Dim Query_String, rsRep
|
|
|
1397 |
Const Allow_All = TRUE
|
|
|
1398 |
Const Disallow_All = FALSE
|
|
|
1399 |
|
|
|
1400 |
If nProj_id = "" Then nProj_id = -1
|
|
|
1401 |
If nRtag_id = "" Then nRtag_id = -1
|
|
|
1402 |
|
|
|
1403 |
If sSection = "TITLE" Then
|
|
|
1404 |
Response.write "Deployable Software Modules"
|
|
|
1405 |
Exit Sub
|
|
|
1406 |
End If
|
|
|
1407 |
|
|
|
1408 |
|
|
|
1409 |
If sSection = "FORM" Then
|
|
|
1410 |
%>
|
|
|
1411 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
|
|
1412 |
<form action="<%=scriptName%>" method="post" name="repform" onSubmit="MM_validateForm('FRproj_id','Project','R','FRvtree_id','Version Tree','R','FRrtag_id','Release','R');return document.MM_returnValue">
|
|
|
1413 |
<tr>
|
|
|
1414 |
<td width="1%" nowrap class="form_field"><img src="images/spacer.gif" width="30" height="8"></td>
|
|
|
1415 |
<td width="1%" align="right" nowrap class="form_field">Project</td>
|
|
|
1416 |
<td width="100%"><%Call Get_Projects( nProj_id, Disallow_All )%></td>
|
|
|
1417 |
</tr>
|
|
|
1418 |
<tr>
|
|
|
1419 |
<td nowrap class="form_field"> </td>
|
|
|
1420 |
<td align="right" nowrap class="form_field">Release</td>
|
|
|
1421 |
<td><%Call Get_Release_Labels ( nProj_id, nRtag_id, Disallow_All )%></td>
|
|
|
1422 |
</tr>
|
|
|
1423 |
<tr>
|
|
|
1424 |
<td nowrap class="form_field"> </td>
|
|
|
1425 |
<td align="right" nowrap class="form_field">Base View</td>
|
|
|
1426 |
<td><select name="noname" class='form_item' disabled>
|
|
|
1427 |
<option>PRODUCTS</option>
|
|
|
1428 |
</select></td>
|
|
|
1429 |
</tr>
|
|
|
1430 |
<tr>
|
|
|
1431 |
<td nowrap class="form_field"> </td>
|
|
|
1432 |
<td align="right" nowrap class="form_field"> </td>
|
|
|
1433 |
<td><br>
|
|
|
1434 |
<input type="hidden" name="group" value="<%=parGroup%>">
|
|
|
1435 |
<input type="hidden" name="repnum" value="<%=parRepNum%>">
|
|
|
1436 |
<input type="hidden" name="FRbase_view_id" value="<%=enumBASE_VIEW_PRODUCTS%>">
|
|
|
1437 |
<input type="hidden" name="action" value="true">
|
|
|
1438 |
<input name="Submit" type="submit" class="form_btn" value="Submit">
|
|
|
1439 |
</td>
|
|
|
1440 |
</tr>
|
|
|
1441 |
</form>
|
|
|
1442 |
</table>
|
|
|
1443 |
<% Exit Sub
|
|
|
1444 |
End If
|
|
|
1445 |
|
|
|
1446 |
|
|
|
1447 |
If sSection = "BODY" Then
|
|
|
1448 |
If NOT CBool(Request("action")) Then Exit Sub
|
|
|
1449 |
'--- New Deployable Modules ---
|
|
|
1450 |
Query_String = ReadFile( rootPath & "queries\rep_new_deployable_packages.sql" )
|
|
|
1451 |
|
|
|
1452 |
OraDatabase.Parameters.Add "RTAG_ID", nRtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
1453 |
OraDatabase.Parameters.Add "BASE_VIEW_ID", nBase_view_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
1454 |
%>
|
|
|
1455 |
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
|
|
1456 |
<tr>
|
|
|
1457 |
<td nowrap class="body_colb" colspan="3" background="images/bg_bage.gif"> New Deployable Package</td>
|
|
|
1458 |
</tr>
|
|
|
1459 |
<tr>
|
|
|
1460 |
<td background="images/bg_rep_line.gif" colspan="3"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1461 |
</tr>
|
|
|
1462 |
<tr>
|
|
|
1463 |
<td width="1%" class="body_txt">Package Name</td>
|
|
|
1464 |
<td width="1%" class="body_txt">Version</td>
|
|
|
1465 |
<td width="100%" class="body_txt">Last Modifier</td>
|
|
|
1466 |
</tr>
|
|
|
1467 |
<tr>
|
|
|
1468 |
<td background="images/bg_rep_line.gif" colspan="3"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1469 |
</tr>
|
|
|
1470 |
<%
|
|
|
1471 |
Set rsRep = OraDatabase.DbCreateDynaset( Query_String, 0 )
|
|
|
1472 |
%>
|
|
|
1473 |
<%If rsRep.RecordCount = 0 Then%>
|
|
|
1474 |
<tr>
|
|
|
1475 |
<td nowrap class="body_row" colspan="3">Found 0 records! </td>
|
|
|
1476 |
</tr>
|
|
|
1477 |
<%End If%>
|
|
|
1478 |
<%While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))%>
|
|
|
1479 |
<tr>
|
|
|
1480 |
<td nowrap><a href="dependencies.asp?pv_id=<%=rsRep("pv_id")%>&rtag_id=<%=nRtag_id%>" class="txt_linked"><img src="images/i_go2url.gif" width="14" height="14" hspace="3" border="0" align="absmiddle"><%=rsRep("pkg_name")%></a></td>
|
|
|
1481 |
<td nowrap class="body_row"><%=rsRep("pkg_version")%></td>
|
|
|
1482 |
<td nowrap class="body_row"><%=rsRep("full_name")%></td>
|
|
|
1483 |
</tr>
|
|
|
1484 |
<%rsRep.MoveNext
|
|
|
1485 |
WEnd
|
|
|
1486 |
rsRep.Close
|
|
|
1487 |
Set rsRep = Nothing%>
|
|
|
1488 |
<tr>
|
|
|
1489 |
<td background="images/bg_rep_line.gif" colspan="3"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1490 |
</tr>
|
|
|
1491 |
<%
|
|
|
1492 |
' Go To Release link...
|
|
|
1493 |
Query_String = _
|
|
|
1494 |
" SELECT proj.PROJ_NAME, rt.RTAG_NAME"&_
|
|
|
1495 |
" FROM PROJECTS proj,"&_
|
|
|
1496 |
" RELEASE_TAGS rt"&_
|
|
|
1497 |
" WHERE rt.PROJ_ID = proj.proj_id"&_
|
|
|
1498 |
" AND rt.rtag_id = :RTAG_ID"
|
|
|
1499 |
Set rsRep = OraDatabase.DbCreateDynaset( Query_String, 0 )
|
|
|
1500 |
%>
|
|
|
1501 |
<tr>
|
|
|
1502 |
<td nowrap class="body_row" colspan="3"><a href="dependencies.asp?rtag_id=<%=nRtag_id%>"><img src="images/i_go2url.gif" width="14" height="14" hspace="3" border="0" align="absmiddle"></a>Go to <a href="dependencies.asp?rtag_id=<%=nRtag_id%>" class="txt_linked"><%=rsRep("proj_name")%> > <%=rsRep("rtag_name")%></a> </td>
|
|
|
1503 |
</tr>
|
|
|
1504 |
<%
|
|
|
1505 |
rsRep.Close
|
|
|
1506 |
Set rsRep = Nothing%>
|
|
|
1507 |
</table>
|
|
|
1508 |
<br><br>
|
|
|
1509 |
<%
|
|
|
1510 |
'--- Current Deployable Modules ---
|
|
|
1511 |
Query_String = ReadFile( rootPath & "queries\rep_current_deployable_packages.sql" )
|
|
|
1512 |
%>
|
|
|
1513 |
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
|
|
1514 |
<tr>
|
|
|
1515 |
<td colspan="4" nowrap class="body_colb" background="images/bg_bage.gif"> Current Deployable Packages </td>
|
|
|
1516 |
</tr>
|
|
|
1517 |
<tr>
|
|
|
1518 |
<td colspan="4" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1519 |
</tr>
|
|
|
1520 |
<%
|
|
|
1521 |
Dim currPv_id
|
|
|
1522 |
currPv_id = -1
|
|
|
1523 |
Set rsRep = OraDatabase.DbCreateDynaset( Query_String, 0 )
|
|
|
1524 |
|
|
|
1525 |
If rsRep.RecordCount = 0 Then
|
|
|
1526 |
With Response
|
|
|
1527 |
.write "<tr>"
|
|
|
1528 |
.write "<td colspan='4' class='body_row'>Found 0 records</td>"
|
|
|
1529 |
.write "</tr>"
|
|
|
1530 |
End With
|
|
|
1531 |
End If
|
|
|
1532 |
|
|
|
1533 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))
|
|
|
1534 |
' -------- GROUP BY PRODUCT NAME -----------------
|
|
|
1535 |
If CDbl(currPv_id) <> CDbl(rsRep("pv_id")) Then
|
|
|
1536 |
%>
|
|
|
1537 |
<tr>
|
|
|
1538 |
<td width="1%" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1539 |
<td width="1%" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1540 |
<td width="1%" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1541 |
<td width="100%"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1542 |
</tr>
|
|
|
1543 |
<tr>
|
|
|
1544 |
<td nowrap><a href="dependencies.asp?pv_id=<%=rsRep("pv_id")%>&rtag_id=<%=nRtag_id%>" class="body_scol"><%=rsRep("pkg_name") &" "& rsRep("pkg_version")%></a></td>
|
|
|
1545 |
<td> </td>
|
|
|
1546 |
<td> </td>
|
|
|
1547 |
<td> </td>
|
|
|
1548 |
</tr>
|
|
|
1549 |
<%
|
|
|
1550 |
currPv_id = CDbl(rsRep("pv_id"))
|
|
|
1551 |
End If
|
|
|
1552 |
' -------- END GROUP ------------------------
|
|
|
1553 |
%>
|
|
|
1554 |
<tr>
|
|
|
1555 |
<td> </td>
|
|
|
1556 |
<td nowrap><a href="dependencies.asp?pv_id=<%=rsRep("dpv_id")%>&rtag_id=<%=nRtag_id%>" class="txt_linked"><%=rsRep("dpkg_name")%></a></td>
|
|
|
1557 |
<td nowrap class="body_row"><%=rsRep("dpkg_version")%></td>
|
|
|
1558 |
<td nowrap class="err_alert"><%=rsRep("is_dep_deployable")%></td>
|
|
|
1559 |
</tr>
|
|
|
1560 |
<% rsRep.MoveNext
|
|
|
1561 |
WEnd
|
|
|
1562 |
%>
|
|
|
1563 |
<tr>
|
|
|
1564 |
<td colspan="4" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1565 |
</tr>
|
|
|
1566 |
</table>
|
|
|
1567 |
<!-- PRINT, SAVE, ETC. ------------>
|
|
|
1568 |
<%If parPrint = "" Then%>
|
|
|
1569 |
<br>
|
|
|
1570 |
<br>
|
|
|
1571 |
<a href="javascript:;" onClick="window.print();" class="txt_linked"><img src="images/btn_print.gif" width="23" height="24" hspace="4" border="0" align="absmiddle">Print this report</a><br>
|
|
|
1572 |
<br>
|
|
|
1573 |
<%End If%>
|
|
|
1574 |
<!-- PRINT, SAVE, ETC. END -------->
|
|
|
1575 |
<%
|
|
|
1576 |
rsRep.Close
|
|
|
1577 |
Set rsRep = nothing
|
|
|
1578 |
End If
|
|
|
1579 |
|
|
|
1580 |
End Sub
|
|
|
1581 |
%>
|
|
|
1582 |
|
|
|
1583 |
<%
|
|
|
1584 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
1585 |
'==================================================================================
|
|
|
1586 |
' Report Name : Bill Of Materials
|
|
|
1587 |
' Description : List products for a BOM
|
|
|
1588 |
' INPUT :
|
|
|
1589 |
'==================================================================================
|
|
|
1590 |
Sub Bill_of_Materials ( SSsection, NNproj_id, NNrtag_id, NNbom_id, NNversion )
|
|
|
1591 |
Dim Query_String, rsRep, rsQry
|
|
|
1592 |
Const Allow_All = TRUE
|
|
|
1593 |
Const Disallow_All = FALSE
|
|
|
1594 |
|
|
|
1595 |
If NNproj_id = "" Then NNproj_id = -1
|
|
|
1596 |
If NNrtag_id = "" Then NNrtag_id = -1
|
|
|
1597 |
If NNversion = "" Then NNversion = -1
|
|
|
1598 |
|
|
|
1599 |
If SSsection = "TITLE" Then
|
|
|
1600 |
Response.write "Software Bill Of Materials (SBOM) products"
|
|
|
1601 |
Exit Sub
|
|
|
1602 |
End If
|
|
|
1603 |
|
|
|
1604 |
|
|
|
1605 |
If SSsection = "FORM" Then
|
|
|
1606 |
%>
|
|
|
1607 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
|
|
1608 |
<form action="<%=scriptName%>" method="post" name="repform" onSubmit="MM_validateForm('FRproj_id','Project','R','FRvtree_id','Version Tree','R','FRrtag_id','Release','R');return document.MM_returnValue">
|
|
|
1609 |
<tr>
|
|
|
1610 |
<td width="1%" nowrap class="form_field"><img src="images/spacer.gif" width="30" height="8"></td>
|
|
|
1611 |
<td width="1%" align="right" nowrap class="form_field">Project</td>
|
|
|
1612 |
<td width="100%"><%Call Get_Projects( NNproj_id, Disallow_All )%></td>
|
|
|
1613 |
</tr>
|
|
|
1614 |
<tr>
|
|
|
1615 |
<td nowrap class="form_field"> </td>
|
|
|
1616 |
<td align="right" nowrap class="form_field">Release</td>
|
|
|
1617 |
<td><%Call Get_Branches ( NNproj_id, NNrtag_id, Disallow_All )%></td>
|
|
|
1618 |
</tr>
|
|
|
1619 |
<tr>
|
|
|
1620 |
<td nowrap class="form_field"> </td>
|
|
|
1621 |
<td align="right" nowrap class="form_field">SBOM Version</td>
|
|
|
1622 |
<td><%Call Get_SBOM_Version ( NNproj_id, NNrtag_id, Disallow_All, NNversion )%></td>
|
|
|
1623 |
</tr>
|
|
|
1624 |
<tr>
|
|
|
1625 |
<td nowrap class="form_field"> </td>
|
|
|
1626 |
<td align="right" nowrap class="form_field"> </td>
|
|
|
1627 |
<td><br>
|
|
|
1628 |
<input type="hidden" name="group" value="<%=parGroup%>">
|
|
|
1629 |
<input type="hidden" name="repnum" value="<%=parRepNum%>">
|
|
|
1630 |
<input type="hidden" name="FRrtag_id" value="<%=NNrtag_id%>">
|
|
|
1631 |
<input type="hidden" name="action" value="true">
|
|
|
1632 |
<input name="Submit" type="submit" class="form_btn" value="Submit">
|
|
|
1633 |
</td>
|
|
|
1634 |
</tr>
|
|
|
1635 |
</form>
|
|
|
1636 |
</table>
|
|
|
1637 |
<p>
|
|
|
1638 |
<% Exit Sub
|
|
|
1639 |
End If
|
|
|
1640 |
|
|
|
1641 |
|
|
|
1642 |
|
|
|
1643 |
OraDatabase.Parameters.Add "BRANCH_ID", NNrtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
1644 |
OraDatabase.Parameters.Add "BOM_VERSION", Request("FRVersion"), ORAPARM_INPUT, ORATYPE_STRING
|
|
|
1645 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("rep_SBOM.sql"), cint(0))
|
|
|
1646 |
Dim bomId
|
|
|
1647 |
bomId = rsQry("bom_id")
|
|
|
1648 |
rsQry.close
|
|
|
1649 |
Set rsQry = nothing
|
|
|
1650 |
|
|
|
1651 |
|
|
|
1652 |
If SSsection = "BODY" Then
|
|
|
1653 |
If NOT CBool(Request("action")) Then Exit Sub
|
|
|
1654 |
|
|
|
1655 |
Query_String = ReadFile( rootPath & "queries\AllProducts.sql" )
|
|
|
1656 |
|
|
|
1657 |
OraDatabase.Parameters.Add "BOM_ID", bomId, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
1658 |
%>
|
|
|
1659 |
</p>
|
|
|
1660 |
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
|
|
1661 |
<tr>
|
|
|
1662 |
<td nowrap class="body_colb">Node Name</td>
|
|
|
1663 |
<td nowrap class="body_colb">Operating System</td>
|
|
|
1664 |
<td nowrap class="body_colb">Product</td>
|
|
|
1665 |
<td nowrap class="body_colb">Version</td>
|
|
|
1666 |
</tr>
|
|
|
1667 |
<tr>
|
|
|
1668 |
<td colspan="4" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1669 |
</tr>
|
|
|
1670 |
<%
|
|
|
1671 |
Dim currNode_id, currOs_id
|
|
|
1672 |
currNode_id = -1
|
|
|
1673 |
currOs_id = -1
|
|
|
1674 |
Set rsRep = OraDatabase.DbCreateDynaset( Query_String, 0 )
|
|
|
1675 |
|
|
|
1676 |
If rsRep.RecordCount = 0 Then
|
|
|
1677 |
With Response
|
|
|
1678 |
.write "<tr>"
|
|
|
1679 |
.write "<td colspan='5' class='body_row'>Found 0 records</td>"
|
|
|
1680 |
.write "</tr>"
|
|
|
1681 |
End With
|
|
|
1682 |
End If
|
|
|
1683 |
|
|
|
1684 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))
|
|
|
1685 |
' -------- GROUP BY BASE VIEW -----------------
|
|
|
1686 |
If CDbl(currNode_id) <> CDbl(rsRep("node_id")) Then
|
|
|
1687 |
%>
|
|
|
1688 |
<tr>
|
|
|
1689 |
<td colspan="4" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1690 |
</tr>
|
|
|
1691 |
<tr>
|
|
|
1692 |
<td nowrap class="body_scol"><%=rsRep("node_name")%></td>
|
|
|
1693 |
<td nowrap class="body_scol"></td>
|
|
|
1694 |
<td nowrap class="body_scol"></td>
|
|
|
1695 |
<td nowrap class="body_scol"></td>
|
|
|
1696 |
</tr>
|
|
|
1697 |
<%
|
|
|
1698 |
currNode_id = CDbl(rsRep("node_id"))
|
|
|
1699 |
End If
|
|
|
1700 |
' -------- END GROUP ------------------------
|
|
|
1701 |
If CDbl(currOs_id) <> CDbl(rsRep("os_id")) Then
|
|
|
1702 |
%>
|
|
|
1703 |
|
|
|
1704 |
<tr>
|
|
|
1705 |
<td nowrap class="body_row"></td>
|
|
|
1706 |
<td nowrap class="body_scol"><%=rsRep("os_name")%></td>
|
|
|
1707 |
<td nowrap class="body_scol"></td>
|
|
|
1708 |
<td nowrap class="body_scol"></td>
|
|
|
1709 |
</tr>
|
|
|
1710 |
<%
|
|
|
1711 |
currOs_id = CDbl(rsRep("Os_id"))
|
|
|
1712 |
End If
|
|
|
1713 |
%>
|
|
|
1714 |
<tr>
|
|
|
1715 |
<td nowrap class="body_row"></td>
|
|
|
1716 |
<td nowrap class="body_row"></td>
|
|
|
1717 |
<td nowrap class="body_row"><%=PatchIcon ( rsRep("is_patch"), rsRep("is_obsolete") )%><%=rsRep("pkg_name")%></td>
|
|
|
1718 |
<td nowrap class="body_row"><%=rsRep("pkg_version")%></td>
|
|
|
1719 |
</tr>
|
|
|
1720 |
<% rsRep.MoveNext
|
|
|
1721 |
WEnd
|
|
|
1722 |
%>
|
|
|
1723 |
<tr>
|
|
|
1724 |
<td colspan="4" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1725 |
</tr>
|
|
|
1726 |
</table>
|
|
|
1727 |
<p> </p>
|
|
|
1728 |
<p> <!-- PRINT, SAVE, ETC. ------------>
|
|
|
1729 |
<%If parPrint = "" Then%>
|
|
|
1730 |
<br>
|
|
|
1731 |
<br>
|
|
|
1732 |
<a href="javascript:;" onClick="window.print();" class="txt_linked"><img src="images/btn_print.gif" width="23" height="24" hspace="4" border="0" align="absmiddle">Print this report</a><br>
|
|
|
1733 |
<br>
|
|
|
1734 |
<%End If%>
|
|
|
1735 |
<!-- PRINT, SAVE, ETC. END -------->
|
|
|
1736 |
<%
|
|
|
1737 |
rsRep.Close
|
|
|
1738 |
Set rsRep = nothing
|
|
|
1739 |
End If
|
|
|
1740 |
|
|
|
1741 |
End Sub
|
|
|
1742 |
%>
|
|
|
1743 |
|
|
|
1744 |
<%
|
|
|
1745 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
1746 |
'==================================================================================
|
|
|
1747 |
' Report Name : Build History
|
|
|
1748 |
' Description : List packages which were build between certain dates.
|
|
|
1749 |
' INPUT :
|
|
|
1750 |
'==================================================================================
|
|
|
1751 |
Sub Build_History ( SSsection, NNproj_id, NNrtag_id)
|
|
|
1752 |
Dim Query_String, rsRep, rsQry
|
|
|
1753 |
Const Allow_All = TRUE
|
|
|
1754 |
Const Disallow_All = FALSE
|
|
|
1755 |
|
|
|
1756 |
If NNproj_id = "" Then NNproj_id = -1
|
|
|
1757 |
If NNrtag_id = "" Then NNrtag_id = -1
|
|
|
1758 |
|
|
|
1759 |
If SSsection = "TITLE" Then
|
|
|
1760 |
Response.write "Build History"
|
|
|
1761 |
Exit Sub
|
|
|
1762 |
End If
|
|
|
1763 |
|
|
|
1764 |
|
|
|
1765 |
If SSsection = "FORM" Then
|
|
|
1766 |
%>
|
|
|
1767 |
<script language="JavaScript" src="images/calendar.js"></script>
|
|
|
1768 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
|
|
1769 |
<form action="<%=scriptName%>" method="post" name="repform" onSubmit="MM_validateForm('FRproj_id','Project','R','FRvtree_id','Version Tree','R','FRrtag_id','Release','R');return document.MM_returnValue">
|
|
|
1770 |
<tr>
|
|
|
1771 |
<td width="1%" nowrap class="form_field"><img src="images/spacer.gif" width="30" height="8"></td>
|
|
|
1772 |
<td width="1%" align="right" nowrap class="form_field">Project</td>
|
|
|
1773 |
<td width="100%"><%Call Get_Projects( NNproj_id, Disallow_All )%></td>
|
|
|
1774 |
</tr>
|
|
|
1775 |
<tr>
|
|
|
1776 |
<td nowrap class="form_field"> </td>
|
|
|
1777 |
<td align="right" nowrap class="form_field">Release</td>
|
|
|
1778 |
<td><%Call Get_Release_Labels ( NNproj_id, NNrtag_id, Disallow_All )%></td>
|
|
|
1779 |
</tr>
|
|
|
1780 |
<tr>
|
|
|
1781 |
<td colspan="3" nowrap class="form_field">Between
|
|
|
1782 |
<input type="text" name="FRinitdate" maxlength="10" size="12" value="<%=Request.Form("FRinitdate")%>">
|
|
|
1783 |
<A onmouseover="window.status='Select a date';return true;" onmouseout="window.status='';return true;" href="javascript:show_calendar('repform.FRinitdate',null,null,null);"><img src="images/i_calendar.gif" width="16" height="16" border="0"></a>
|
|
|
1784 |
And
|
|
|
1785 |
<input type="text" name="FRduedate" maxlength="10" size="12" value="<%=Request.Form("FRduedate")%>">
|
|
|
1786 |
<A onmouseover="window.status='Select a date';return true;" onmouseout="window.status='';return true;" href="javascript:show_calendar('repform.FRduedate',null,null,null);"><img src="images/i_calendar.gif" width="16" height="16" border="0"></a></td>
|
|
|
1787 |
</tr>
|
|
|
1788 |
<tr>
|
|
|
1789 |
<td nowrap class="form_field"> </td>
|
|
|
1790 |
<td align="right" nowrap class="form_field"> </td>
|
|
|
1791 |
<td><br>
|
|
|
1792 |
<input type="hidden" name="group" value="<%=parGroup%>">
|
|
|
1793 |
<input type="hidden" name="repnum" value="<%=parRepNum%>">
|
|
|
1794 |
<input type="hidden" name="action" value="true">
|
|
|
1795 |
<input name="Submit" type="submit" class="form_btn" value="Submit" onClick="clickedButton=true;MM_validateForm('FRduedate','Due Date','R','FRmsg','Message details','R');return document.MM_returnValue">
|
|
|
1796 |
</td>
|
|
|
1797 |
</tr>
|
|
|
1798 |
</form>
|
|
|
1799 |
</table>
|
|
|
1800 |
<p>
|
|
|
1801 |
<% Exit Sub
|
|
|
1802 |
End If
|
|
|
1803 |
|
|
|
1804 |
|
|
|
1805 |
If SSsection = "BODY" Then
|
|
|
1806 |
If NOT CBool(Request("action")) Then Exit Sub
|
|
|
1807 |
%>
|
|
|
1808 |
</p>
|
|
|
1809 |
<table width="20%" border="0" cellspacing="0" cellpadding="2">
|
|
|
1810 |
<tr>
|
|
|
1811 |
<td width="1%" nowrap class="body_colb"> </td>
|
|
|
1812 |
<td width="5%" nowrap class="body_colb">Package</td>
|
|
|
1813 |
<td width="95%" nowrap class="body_colb">Version</td>
|
|
|
1814 |
</tr>
|
|
|
1815 |
<tr>
|
|
|
1816 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1817 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1818 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1819 |
</tr>
|
|
|
1820 |
<%
|
|
|
1821 |
Dim currView_id
|
|
|
1822 |
currView_id = -1
|
|
|
1823 |
|
|
|
1824 |
OraDatabase.Parameters.Add "RTAG_ID", NNrtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
1825 |
OraDatabase.Parameters.Add "INITDATE", Request.Form("FRinitdate"), ORAPARM_INPUT, ORATYPE_STRING
|
|
|
1826 |
OraDatabase.Parameters.Add "DUEDATE", Request.Form("FRduedate"), ORAPARM_INPUT, ORATYPE_STRING
|
|
|
1827 |
|
|
|
1828 |
Set rsRep = OraDatabase.DbCreateDynaset( GetQuery("rep_build_history.sql"), cint(0) )
|
|
|
1829 |
|
|
|
1830 |
If rsRep.RecordCount = 0 Then
|
|
|
1831 |
With Response
|
|
|
1832 |
.write "<tr>"
|
|
|
1833 |
.write "<td colspan='5' class='body_row'>Found 0 records</td>"
|
|
|
1834 |
.write "</tr>"
|
|
|
1835 |
End With
|
|
|
1836 |
End If
|
|
|
1837 |
|
|
|
1838 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))
|
|
|
1839 |
' -------- GROUP BY BASE VIEW -----------------
|
|
|
1840 |
If CDbl(currView_id) <> CDbl(rsRep("view_id")) Then
|
|
|
1841 |
%>
|
|
|
1842 |
<tr>
|
|
|
1843 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1844 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1845 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1846 |
</tr>
|
|
|
1847 |
|
|
|
1848 |
<tr>
|
|
|
1849 |
<td valign="top" nowrap class="body_scol"><%=rsRep("view_name")%></td>
|
|
|
1850 |
<td> </td>
|
|
|
1851 |
<td> </td>
|
|
|
1852 |
|
|
|
1853 |
</tr>
|
|
|
1854 |
|
|
|
1855 |
<%
|
|
|
1856 |
currView_id = CDbl(rsRep("view_id"))
|
|
|
1857 |
End If
|
|
|
1858 |
' -------- END GROUP ------------------------
|
|
|
1859 |
%>
|
|
|
1860 |
<tr>
|
|
|
1861 |
<td width="1%" nowrap class="body_colb"> </td>
|
|
|
1862 |
<td nowrap class="body_row"><a href="fixed_issues.asp?pv_id=<%=rsRep("pv_id")%>&rtag_id=<%=NNRtag_id%>" class="body_txt"><strong><%=rsRep("pkg_name")%></strong></a></td>
|
|
|
1863 |
<td nowrap class="body_row"><a href="fixed_issues.asp?pv_id=<%=rsRep("pv_id")%>&rtag_id=<%=NNRtag_id%>" class="body_txt"><strong><%=rsRep("pkg_version")%></strong></a></td>
|
|
|
1864 |
</tr>
|
|
|
1865 |
<% rsRep.MoveNext
|
|
|
1866 |
WEnd
|
|
|
1867 |
%>
|
|
|
1868 |
<tr>
|
|
|
1869 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1870 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1871 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1872 |
</tr>
|
|
|
1873 |
</table>
|
|
|
1874 |
<p> </p>
|
|
|
1875 |
<p> <!-- PRINT, SAVE, ETC. ------------>
|
|
|
1876 |
<%If parPrint = "" Then%>
|
|
|
1877 |
<br>
|
|
|
1878 |
<br>
|
|
|
1879 |
<a href="javascript:;" onClick="window.print();" class="txt_linked"><img src="images/btn_print.gif" width="23" height="24" hspace="4" border="0" align="absmiddle">Print this report</a><br>
|
|
|
1880 |
<br>
|
|
|
1881 |
<%End If%>
|
|
|
1882 |
<!-- PRINT, SAVE, ETC. END -------->
|
|
|
1883 |
<%
|
|
|
1884 |
rsRep.Close
|
|
|
1885 |
Set rsRep = nothing
|
|
|
1886 |
End If
|
|
|
1887 |
|
|
|
1888 |
End Sub
|
|
|
1889 |
%>
|
|
|
1890 |
<%
|
|
|
1891 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
1892 |
'==================================================================================
|
|
|
1893 |
' Report Name : Escrow Report
|
|
|
1894 |
' Description : Report to extract Products/Patches for Building A RoadMap
|
|
|
1895 |
' INPUT :
|
|
|
1896 |
'==================================================================================
|
|
|
1897 |
Sub Escrow_Report (SSsection, NNproj_id, NNrtag_id, NNbom_id, NNversion)
|
|
|
1898 |
Dim Query_String, rsRep, rsQry
|
|
|
1899 |
Const Allow_All = TRUE
|
|
|
1900 |
Const Disallow_All = FALSE
|
|
|
1901 |
|
|
|
1902 |
If NNproj_id = "" Then NNproj_id = -1
|
|
|
1903 |
If NNrtag_id = "" Then NNrtag_id = -1
|
|
|
1904 |
If NNversion = "" Then NNversion = -1
|
|
|
1905 |
|
|
|
1906 |
If SSsection = "TITLE" Then
|
|
|
1907 |
Response.write "Generation of ESCROW REPORT"
|
|
|
1908 |
Exit Sub
|
|
|
1909 |
End If
|
|
|
1910 |
|
|
|
1911 |
|
|
|
1912 |
If SSsection = "FORM" Then
|
|
|
1913 |
%>
|
|
|
1914 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
|
|
1915 |
<form action="<%=scriptName%>" method="post" name="repform" onSubmit="MM_validateForm('FRproj_id','Project','R','FRvtree_id','Version Tree','R','FRrtag_id','Release','R');return document.MM_returnValue">
|
|
|
1916 |
<tr>
|
|
|
1917 |
<td width="1%" nowrap class="form_field"><img src="images/spacer.gif" width="30" height="8"></td>
|
|
|
1918 |
<td width="1%" align="right" nowrap class="form_field">Project</td>
|
|
|
1919 |
<td width="100%"><%Call Get_Projects( NNproj_id, Disallow_All )%></td>
|
|
|
1920 |
</tr>
|
|
|
1921 |
<tr>
|
|
|
1922 |
<td nowrap class="form_field"> </td>
|
|
|
1923 |
<td align="right" nowrap class="form_field">Release</td>
|
|
|
1924 |
<td><%Call Get_Branches ( NNproj_id, NNrtag_id, Disallow_All )%></td>
|
|
|
1925 |
</tr>
|
|
|
1926 |
<tr>
|
|
|
1927 |
<td nowrap class="form_field"> </td>
|
|
|
1928 |
<td align="right" nowrap class="form_field">SBOM Version</td>
|
|
|
1929 |
<td><%Call Get_SBOM_Version ( NNproj_id, NNrtag_id, Disallow_All, NNversion )%></td>
|
|
|
1930 |
</tr>
|
|
|
1931 |
<tr>
|
|
|
1932 |
<td nowrap class="form_field"> </td>
|
|
|
1933 |
<td align="right" nowrap class="form_field"> </td>
|
|
|
1934 |
<td><br>
|
|
|
1935 |
<input type="hidden" name="group" value="<%=parGroup%>">
|
|
|
1936 |
<input type="hidden" name="repnum" value="<%=parRepNum%>">
|
|
|
1937 |
<input type="hidden" name="FRrtag_id" value="<%=NNrtag_id%>">
|
|
|
1938 |
<input type="hidden" name="action" value="true">
|
|
|
1939 |
<input name="Submit" type="submit" class="form_btn" value="Submit">
|
|
|
1940 |
</td>
|
|
|
1941 |
</tr>
|
|
|
1942 |
</form>
|
|
|
1943 |
</table>
|
|
|
1944 |
<p>
|
|
|
1945 |
<% Exit Sub
|
|
|
1946 |
End If
|
|
|
1947 |
|
|
|
1948 |
|
|
|
1949 |
|
|
|
1950 |
OraDatabase.Parameters.Add "BRANCH_ID", NNrtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
1951 |
OraDatabase.Parameters.Add "BOM_VERSION", Request("FRVersion"), ORAPARM_INPUT, ORATYPE_STRING
|
|
|
1952 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("rep_SBOM.sql"), cint(0))
|
|
|
1953 |
Dim bomId, ext
|
|
|
1954 |
bomId = rsQry("bom_id")
|
|
|
1955 |
Set rsQry = OraDatabase.DbCreateDynaset( "select * from release_manager.project_extentions where proj_id="&NNproj_id, cint(0))
|
|
|
1956 |
ext = rsQry("ext_name")
|
|
|
1957 |
rsQry.close
|
|
|
1958 |
Set rsQry = nothing
|
|
|
1959 |
|
|
|
1960 |
|
|
|
1961 |
If SSsection = "BODY" Then
|
|
|
1962 |
If NOT CBool(Request("action")) Then Exit Sub
|
|
|
1963 |
|
|
|
1964 |
'---------------------- Run Before Page ---------------------------
|
|
|
1965 |
Call GetReleaseContent ( bomId, objReleaseContent )
|
|
|
1966 |
|
|
|
1967 |
'Call GetBomDetails (bomId, outobjDetails)
|
|
|
1968 |
'outobjDetails.Item("bom_full_version") = outobjDetails.Item("bom_name")&" "& outobjDetails.Item("bom_version") &"."& outobjDetails.Item("bom_lifecycle")
|
|
|
1969 |
|
|
|
1970 |
|
|
|
1971 |
'------------------------------------------------------------------
|
|
|
1972 |
%>
|
|
|
1973 |
<html>
|
|
|
1974 |
<head>
|
|
|
1975 |
<title>Release Manager - Escrow Report</title>
|
|
|
1976 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
1977 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
1978 |
</head>
|
|
|
1979 |
<body>
|
|
|
1980 |
<div align="center"><b><font col color="#FF0000" size="+3"><%=outobjDetails.Item("bom_full_version")%></font></b></div>
|
|
|
1981 |
<div align="center"><b><font col color="#FF0000" size="+3">Products</font></b></div>
|
|
|
1982 |
<%
|
|
|
1983 |
Set outobjDetails = Nothing
|
|
|
1984 |
|
|
|
1985 |
aReleaseContent = objReleaseContent.Keys
|
|
|
1986 |
For Each parPv_id In aReleaseContent
|
|
|
1987 |
pvIdList = pvIdList + parPv_id + ","
|
|
|
1988 |
Call GetPackageInformation ( parPv_id, objPackageDetails )
|
|
|
1989 |
%> <a name="<%=objPackageDetails.Item("pkg_name")%>"></a>
|
|
|
1990 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
1991 |
<tr>
|
|
|
1992 |
<td class="body_colb"><h3><%=objPackageDetails.Item("pkg_name")%></h3></td>
|
|
|
1993 |
</tr>
|
|
|
1994 |
</table>
|
|
|
1995 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
1996 |
<tr>
|
|
|
1997 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Version:</strong></td>
|
|
|
1998 |
<td bgcolor="#FFFFFF" class="sublbox_txt"><%=objPackageDetails.Item("pkg_version")%></td>
|
|
|
1999 |
</tr>
|
|
|
2000 |
<tr>
|
|
|
2001 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Source Path:</strong> </td>
|
|
|
2002 |
<td bgcolor="#FFFFFF" class="sublbox_txt"><%=objPackageDetails.Item("src_path")%></td>
|
|
|
2003 |
</tr>
|
|
|
2004 |
<tr>
|
|
|
2005 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Source Label:</strong></td>
|
|
|
2006 |
<td bgcolor="#FFFFFF" class="sublbox_txt"><%=objPackageDetails.Item("pkg_label")%></td>
|
|
|
2007 |
</tr>
|
|
|
2008 |
<tr>
|
|
|
2009 |
<td width="1%" nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Short Description:</strong></td>
|
|
|
2010 |
<td witdh="100%" bgcolor="#FFFFFF" class="sublbox_txt"><%=NewLine_To_BR ( To_HTML( objPackageDetails.Item("pv_description") ) )%></td>
|
|
|
2011 |
</tr>
|
|
|
2012 |
<tr>
|
|
|
2013 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Package Overview:</strong> </td>
|
|
|
2014 |
<td bgcolor="#FFFFFF" class="sublbox_txt"><%=NewLine_To_BR ( To_HTML( objPackageDetails.Item("pv_overview") ) )%></td>
|
|
|
2015 |
</tr>
|
|
|
2016 |
<tr>
|
|
|
2017 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>General Sublicense Material:</strong> </td>
|
|
|
2018 |
<td bgcolor="#FFFFFF" class="sublbox_txt"><%If objPackageDetails.Item("v_ext") = ext Then%>Yes<%Else%>No<%End If%></td>
|
|
|
2019 |
</tr>
|
|
|
2020 |
<tr>
|
|
|
2021 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Build Environment:</strong> </td>
|
|
|
2022 |
<td bgcolor="#FFFFFF" class="sublbox_txt"><%If objPackageDetails.Item("is_build_env_required") = enumDB_NO Then%>Not Required.<%End If%>
|
|
|
2023 |
<%
|
|
|
2024 |
'--- Get Build Env Details
|
|
|
2025 |
Set rsQry = OraDatabase.DbCreateDynaset( SQL_Build_Env ( parPv_id ), cint(0))
|
|
|
2026 |
%>
|
|
|
2027 |
<ul>
|
|
|
2028 |
<%
|
|
|
2029 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
|
|
2030 |
%>
|
|
|
2031 |
<li><%=rsQry("be_name")%></li>
|
|
|
2032 |
<%rsQry.MoveNext
|
|
|
2033 |
WEnd
|
|
|
2034 |
%>
|
|
|
2035 |
</ul>
|
|
|
2036 |
</td>
|
|
|
2037 |
</tr>
|
|
|
2038 |
<tr>
|
|
|
2039 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Build Dependencies:</strong> </td>
|
|
|
2040 |
<td bgcolor="#FFFFFF" class="sublbox_txt">
|
|
|
2041 |
<%
|
|
|
2042 |
'--- Get Build Dependencies Details
|
|
|
2043 |
|
|
|
2044 |
Set rsQry = OraDatabase.DbCreateDynaset( SQL_Build_Dependencies ( parPv_id ), cint(0))
|
|
|
2045 |
%>
|
|
|
2046 |
<table width="100%" cellspacing="0" cellpadding="2" border="1">
|
|
|
2047 |
<tr>
|
|
|
2048 |
<td nowrap class="sublbox_txt" bgcolor="#FFFFFF" width="1%"><strong>Software Component</strong></td>
|
|
|
2049 |
<td nowrap class="sublbox_txt" bgcolor="#FFFFFF" width="100%"><strong>Version</strong></td>
|
|
|
2050 |
</tr>
|
|
|
2051 |
<%If rsQry.RecordCount < 1 Then%>
|
|
|
2052 |
<tr>
|
|
|
2053 |
<td nowrap class="sublbox_txt">No Dependencies</td>
|
|
|
2054 |
<td nowrap class="sublbox_txt"></td>
|
|
|
2055 |
</tr>
|
|
|
2056 |
<%End If%>
|
|
|
2057 |
<%
|
|
|
2058 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
|
|
2059 |
%>
|
|
|
2060 |
<tr>
|
|
|
2061 |
<td nowrap class="sublbox_txt"><a href="#<%=rsQry("pkg_name")%>"><%=rsQry("pkg_name")%></a></td>
|
|
|
2062 |
<td nowrap class="sublbox_txt"><%=rsQry("pkg_version")%></td>
|
|
|
2063 |
</tr>
|
|
|
2064 |
<%rsQry.MoveNext
|
|
|
2065 |
WEnd
|
|
|
2066 |
%>
|
|
|
2067 |
</table>
|
|
|
2068 |
</td>
|
|
|
2069 |
</tr>
|
|
|
2070 |
</table>
|
|
|
2071 |
<br><br>
|
|
|
2072 |
<%
|
|
|
2073 |
'Exit For
|
|
|
2074 |
Next
|
|
|
2075 |
pvIdList = Mid(pvIdList, 1, Len(pvIdList) - 1)
|
|
|
2076 |
Set rsTemp = OraDatabase.DbCreateDynaset( SQL_Modules ( pvIdList ), cint(0))
|
|
|
2077 |
|
|
|
2078 |
|
|
|
2079 |
%>
|
|
|
2080 |
<div align="center"><b><font col color="#FF0000" size="+3">Modules</font></b></div>
|
|
|
2081 |
<%
|
|
|
2082 |
While (NOT rsTemp.BOF) AND (NOT rsTemp.EOF)
|
|
|
2083 |
dpv_id = rsTemp("dpv_id")
|
|
|
2084 |
Call GetPackageInformation ( dpv_id, objPackageDetails )
|
|
|
2085 |
%> <a name="<%=objPackageDetails.Item("pkg_name")%>"></a>
|
|
|
2086 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
2087 |
<tr>
|
|
|
2088 |
<td class="body_colb"><h3><%=objPackageDetails.Item("pkg_name")%></h3></td>
|
|
|
2089 |
</tr>
|
|
|
2090 |
</table>
|
|
|
2091 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
2092 |
<tr>
|
|
|
2093 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Version:</strong></td>
|
|
|
2094 |
<td bgcolor="#FFFFFF" class="sublbox_txt"><%=objPackageDetails.Item("pkg_version")%></td>
|
|
|
2095 |
</tr>
|
|
|
2096 |
<tr>
|
|
|
2097 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Source Path:</strong> </td>
|
|
|
2098 |
<td bgcolor="#FFFFFF" class="sublbox_txt"><%=objPackageDetails.Item("src_path")%></td>
|
|
|
2099 |
</tr>
|
|
|
2100 |
<tr>
|
|
|
2101 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Source Label:</strong></td>
|
|
|
2102 |
<td bgcolor="#FFFFFF" class="sublbox_txt"><%=objPackageDetails.Item("pkg_label")%></td>
|
|
|
2103 |
</tr>
|
|
|
2104 |
<tr>
|
|
|
2105 |
<td width="1%" nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Short Description:</strong></td>
|
|
|
2106 |
<td witdh="100%" bgcolor="#FFFFFF" class="sublbox_txt"><%=NewLine_To_BR ( To_HTML( objPackageDetails.Item("pv_description") ) )%></td>
|
|
|
2107 |
</tr>
|
|
|
2108 |
<tr>
|
|
|
2109 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Package Overview:</strong> </td>
|
|
|
2110 |
<td bgcolor="#FFFFFF" class="sublbox_txt"><%=NewLine_To_BR ( To_HTML( objPackageDetails.Item("pv_overview") ) )%></td>
|
|
|
2111 |
</tr>
|
|
|
2112 |
<tr>
|
|
|
2113 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>General Sublicense Material:</strong> </td>
|
|
|
2114 |
<td bgcolor="#FFFFFF" class="sublbox_txt"><%If objPackageDetails.Item("v_ext") = parExt Then%>Yes<%Else%>No<%End If%></td>
|
|
|
2115 |
</tr>
|
|
|
2116 |
<tr>
|
|
|
2117 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Build Environment:</strong> </td>
|
|
|
2118 |
<td bgcolor="#FFFFFF" class="sublbox_txt"><%If objPackageDetails.Item("is_build_env_required") = enumDB_NO Then%>Not Required.<%End If%>
|
|
|
2119 |
<%
|
|
|
2120 |
'--- Get Build Env Details
|
|
|
2121 |
Set rsQry = OraDatabase.DbCreateDynaset( SQL_Build_Env ( dpv_id ), cint(0))
|
|
|
2122 |
%>
|
|
|
2123 |
<ul>
|
|
|
2124 |
<%
|
|
|
2125 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
|
|
2126 |
%>
|
|
|
2127 |
<li><%=rsQry("be_name")%></li>
|
|
|
2128 |
<%rsQry.MoveNext
|
|
|
2129 |
WEnd
|
|
|
2130 |
%>
|
|
|
2131 |
</ul>
|
|
|
2132 |
</td>
|
|
|
2133 |
</tr>
|
|
|
2134 |
<tr>
|
|
|
2135 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Build Dependencies:</strong> </td>
|
|
|
2136 |
<td bgcolor="#FFFFFF" class="sublbox_txt">
|
|
|
2137 |
<%
|
|
|
2138 |
'--- Get Build Dependencies Details
|
|
|
2139 |
|
|
|
2140 |
Set rsQry = OraDatabase.DbCreateDynaset( SQL_Build_Dependencies ( dpv_id ), cint(0))
|
|
|
2141 |
%>
|
|
|
2142 |
<table width="100%" cellspacing="0" cellpadding="2" border="1">
|
|
|
2143 |
<tr>
|
|
|
2144 |
<td nowrap class="sublbox_txt" bgcolor="#FFFFFF" width="1%"><strong>Software Component</strong></td>
|
|
|
2145 |
<td nowrap class="sublbox_txt" bgcolor="#FFFFFF" width="100%"><strong>Version</strong></td>
|
|
|
2146 |
</tr>
|
|
|
2147 |
<%If rsQry.RecordCount < 1 Then%>
|
|
|
2148 |
<tr>
|
|
|
2149 |
<td nowrap class="sublbox_txt">No Dependencies</td>
|
|
|
2150 |
<td nowrap class="sublbox_txt"></td>
|
|
|
2151 |
</tr>
|
|
|
2152 |
<%End If%>
|
|
|
2153 |
<%
|
|
|
2154 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
|
|
2155 |
%>
|
|
|
2156 |
<tr>
|
|
|
2157 |
<td nowrap class="sublbox_txt"><a href="#<%=rsQry("pkg_name")%>"><%=rsQry("pkg_name")%></a></td>
|
|
|
2158 |
<td nowrap class="sublbox_txt"><%=rsQry("pkg_version")%></td>
|
|
|
2159 |
</tr>
|
|
|
2160 |
<%rsQry.MoveNext
|
|
|
2161 |
WEnd
|
|
|
2162 |
%>
|
|
|
2163 |
</table>
|
|
|
2164 |
</td>
|
|
|
2165 |
</tr>
|
|
|
2166 |
</table>
|
|
|
2167 |
<br><br>
|
|
|
2168 |
|
|
|
2169 |
<%
|
|
|
2170 |
rsTemp.MoveNext
|
|
|
2171 |
WEnd
|
|
|
2172 |
|
|
|
2173 |
rsTemp.Close()
|
|
|
2174 |
Set rsTemp = Nothing
|
|
|
2175 |
End If
|
|
|
2176 |
End Sub
|
|
|
2177 |
%>
|
|
|
2178 |
|
|
|
2179 |
<%
|
|
|
2180 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
2181 |
'==================================================================================
|
|
|
2182 |
' Report Name : AutoBuildable_Report
|
|
|
2183 |
' Description : List packages which were build between certain dates.
|
|
|
2184 |
' INPUT :
|
|
|
2185 |
'==================================================================================
|
|
|
2186 |
Sub AutoBuildable_Report ( SSsection, NNproj_id, NNrtag_id)
|
|
|
2187 |
Dim Query_String, rsRep, rsQry
|
|
|
2188 |
Const Allow_All = TRUE
|
|
|
2189 |
Const Disallow_All = FALSE
|
|
|
2190 |
|
|
|
2191 |
If NNproj_id = "" Then NNproj_id = -1
|
|
|
2192 |
If NNrtag_id = "" Then NNrtag_id = -1
|
|
|
2193 |
|
|
|
2194 |
If SSsection = "TITLE" Then
|
|
|
2195 |
Response.write "Release AutoBuildable Status"
|
|
|
2196 |
Exit Sub
|
|
|
2197 |
End If
|
|
|
2198 |
|
|
|
2199 |
|
|
|
2200 |
If SSsection = "FORM" Then
|
|
|
2201 |
%>
|
|
|
2202 |
<script language="JavaScript" src="images/calendar.js"></script>
|
|
|
2203 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
|
|
2204 |
<form action="<%=scriptName%>" method="post" name="repform" onSubmit="MM_validateForm('FRproj_id','Project','R','FRvtree_id','Version Tree','R','FRrtag_id','Release','R');return document.MM_returnValue">
|
|
|
2205 |
<tr>
|
|
|
2206 |
<td width="1%" nowrap class="form_field"><img src="images/spacer.gif" width="30" height="8"></td>
|
|
|
2207 |
<td width="1%" align="right" nowrap class="form_field">Project</td>
|
|
|
2208 |
<td width="100%"><%Call Get_Projects( NNproj_id, Disallow_All )%></td>
|
|
|
2209 |
</tr>
|
|
|
2210 |
<tr>
|
|
|
2211 |
<td nowrap class="form_field"> </td>
|
|
|
2212 |
<td align="right" nowrap class="form_field">Release</td>
|
|
|
2213 |
<td><%Call Get_Release_Labels ( NNproj_id, NNrtag_id, Disallow_All )%></td>
|
|
|
2214 |
</tr>
|
|
|
2215 |
<tr>
|
|
|
2216 |
<td nowrap class="form_field"> </td>
|
|
|
2217 |
<td align="right" nowrap class="form_field"> </td>
|
|
|
2218 |
<td><br>
|
|
|
2219 |
<input type="hidden" name="group" value="<%=parGroup%>">
|
|
|
2220 |
<input type="hidden" name="repnum" value="<%=parRepNum%>">
|
|
|
2221 |
<input type="hidden" name="action" value="true">
|
|
|
2222 |
<input name="Submit" type="submit" class="form_btn" value="Submit" onClick="clickedButton=true;MM_validateForm('FRduedate','Due Date','R','FRmsg','Message details','R');return document.MM_returnValue">
|
|
|
2223 |
</td>
|
|
|
2224 |
</tr>
|
|
|
2225 |
|
|
|
2226 |
</table>
|
|
|
2227 |
<p>
|
|
|
2228 |
<% Exit Sub
|
|
|
2229 |
End If
|
|
|
2230 |
|
|
|
2231 |
|
|
|
2232 |
If SSsection = "BODY" Then
|
|
|
2233 |
If NOT CBool(Request("action")) Then Exit Sub
|
|
|
2234 |
If Request("btn") = "Assign" Then
|
|
|
2235 |
OraDatabase.Parameters.Add "RTAG_ID", NNrtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
2236 |
OraDatabase.Parameters.Add "PV_ID_LIST", Request("prod_id_list"), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
|
|
2237 |
|
|
|
2238 |
OraSession.BeginTrans
|
|
|
2239 |
|
|
|
2240 |
OraDatabase.ExecuteSQL _
|
|
|
2241 |
"BEGIN SET_TO_AUTOBUILDABLE( :RTAG_ID, :PV_ID_LIST ); END;"
|
|
|
2242 |
|
|
|
2243 |
OraSession.CommitTrans
|
|
|
2244 |
|
|
|
2245 |
OraDatabase.Parameters.Remove "PV_ID_LIST"
|
|
|
2246 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
|
|
2247 |
|
|
|
2248 |
End If
|
|
|
2249 |
%>
|
|
|
2250 |
</p>
|
|
|
2251 |
<table width="20%" border="0" cellspacing="0" cellpadding="2">
|
|
|
2252 |
<tr>
|
|
|
2253 |
<td width="1%" nowrap class="body_colb">Base View</td>
|
|
|
2254 |
<td width="5%" nowrap class="body_colb">Package</td>
|
|
|
2255 |
<td width="95%" nowrap class="body_colb">Version</td>
|
|
|
2256 |
<td width="95%" nowrap class="body_colb">Autobuildable</td>
|
|
|
2257 |
</tr>
|
|
|
2258 |
<tr>
|
|
|
2259 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2260 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2261 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2262 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2263 |
</tr>
|
|
|
2264 |
<%
|
|
|
2265 |
Dim currView_id
|
|
|
2266 |
currView_id = -1
|
|
|
2267 |
|
|
|
2268 |
OraDatabase.Parameters.Add "RTAG_ID", NNrtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
2269 |
|
|
|
2270 |
Set rsRep = OraDatabase.DbCreateDynaset( "SELECT * FROM RELEASE_CONTENT rc, VIEWS vw, PACKAGES pkg, PACKAGE_VERSIONS pv "&_
|
|
|
2271 |
" WHERE pv.pv_id = rc.pv_id and rc.base_view_id "&_
|
|
|
2272 |
" = vw.view_id and pkg.pkg_id = pv.pkg_id and rc.RTAG_ID ="&NNrtag_id&" order by vw.view_name, pkg.pkg_name", cint(0) )
|
|
|
2273 |
If rsRep.RecordCount = 0 Then
|
|
|
2274 |
With Response
|
|
|
2275 |
.write "<tr>"
|
|
|
2276 |
.write "<td colspan='5' class='body_row'>Found 0 records</td>"
|
|
|
2277 |
.write "</tr>"
|
|
|
2278 |
End With
|
|
|
2279 |
End If
|
|
|
2280 |
|
|
|
2281 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))
|
|
|
2282 |
' -------- GROUP BY BASE VIEW -----------------
|
|
|
2283 |
If CDbl(currView_id) <> CDbl(rsRep("view_id")) Then
|
|
|
2284 |
%>
|
|
|
2285 |
<tr>
|
|
|
2286 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2287 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2288 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2289 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2290 |
</tr>
|
|
|
2291 |
|
|
|
2292 |
<tr>
|
|
|
2293 |
<td valign="top" nowrap class="body_scol"><%=rsRep("view_name")%></td>
|
|
|
2294 |
<td> </td>
|
|
|
2295 |
<td> </td>
|
|
|
2296 |
|
|
|
2297 |
</tr>
|
|
|
2298 |
|
|
|
2299 |
<%
|
|
|
2300 |
currView_id = CDbl(rsRep("view_id"))
|
|
|
2301 |
End If
|
|
|
2302 |
' -------- END GROUP ------------------------
|
|
|
2303 |
%>
|
|
|
2304 |
<%If rsRep("is_autobuildable") = "Y" Then%>
|
|
|
2305 |
<tr>
|
|
|
2306 |
<td width="1%" nowrap class="body_colb"> </td>
|
|
|
2307 |
<td nowrap class="body_row"><a href="fixed_issues.asp?pv_id=<%=rsRep("pv_id")%>&rtag_id=<%=NNRtag_id%>" class="body_txt"><strong><%=rsRep("pkg_name")%></strong></a></td>
|
|
|
2308 |
<td nowrap class="body_row"><a href="fixed_issues.asp?pv_id=<%=rsRep("pv_id")%>&rtag_id=<%=NNRtag_id%>" class="body_txt"><strong><%=rsRep("pkg_version")%></strong></a></td>
|
|
|
2309 |
<%If objAccessControl.IsVisible( "SetToReproducible" ) Then%>
|
|
|
2310 |
<td><input type="checkbox" name="prod_id_list" value="<%=rsRep("pv_id")%>" checked></td>
|
|
|
2311 |
<%Else%>
|
|
|
2312 |
<td><input type="checkbox" name="prod_id_list" value="<%=rsRep("pv_id")%>" checked disabled></td>
|
|
|
2313 |
<%End If%>
|
|
|
2314 |
</tr>
|
|
|
2315 |
<%Else%>
|
|
|
2316 |
<tr>
|
|
|
2317 |
<td width="1%" nowrap class="body_colb"> </td>
|
|
|
2318 |
<td nowrap class="body_row"><a href="fixed_issues.asp?pv_id=<%=rsRep("pv_id")%>&rtag_id=<%=NNRtag_id%>" class="body_txtr"><strong><%=rsRep("pkg_name")%></strong></a></td>
|
|
|
2319 |
<td nowrap class="body_row"><a href="fixed_issues.asp?pv_id=<%=rsRep("pv_id")%>&rtag_id=<%=NNRtag_id%>" class="body_txtr"><strong><%=rsRep("pkg_version")%></strong></a></td>
|
|
|
2320 |
<%If objAccessControl.IsVisible( "SetToReproducible" ) Then%>
|
|
|
2321 |
<td><input type="checkbox" name="prod_id_list" value="<%=rsRep("pv_id")%>"></td>
|
|
|
2322 |
<%Else%>
|
|
|
2323 |
<td><input type="checkbox" name="prod_id_list" value="<%=rsRep("pv_id")%>" disabled></td>
|
|
|
2324 |
<%End If%>
|
|
|
2325 |
</tr>
|
|
|
2326 |
|
|
|
2327 |
<%End If%>
|
|
|
2328 |
|
|
|
2329 |
|
|
|
2330 |
<% rsRep.MoveNext
|
|
|
2331 |
WEnd
|
|
|
2332 |
%>
|
|
|
2333 |
|
|
|
2334 |
<tr>
|
|
|
2335 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2336 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2337 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2338 |
<%If objAccessControl.IsVisible( "SetToReproducible" ) Then%>
|
|
|
2339 |
<td><input name="btn" type="submit" class="form_btn" value="Assign" onClick="clickedButton=true;MM_validateForm('FRduedate','Due Date','R','FRmsg','Message details','R');return document.MM_returnValue"></td>
|
|
|
2340 |
<%End If%>
|
|
|
2341 |
</tr>
|
|
|
2342 |
</table>
|
|
|
2343 |
|
|
|
2344 |
|
|
|
2345 |
|
|
|
2346 |
|
|
|
2347 |
</form>
|
|
|
2348 |
<p> </p>
|
|
|
2349 |
<p> <!-- PRINT, SAVE, ETC. ------------>
|
|
|
2350 |
<%If parPrint = "" Then%>
|
|
|
2351 |
<br>
|
|
|
2352 |
<br>
|
|
|
2353 |
<a href="javascript:;" onClick="window.print();" class="txt_linked"><img src="images/btn_print.gif" width="23" height="24" hspace="4" border="0" align="absmiddle">Print this report</a><br>
|
|
|
2354 |
<br>
|
|
|
2355 |
|
|
|
2356 |
<%End If%>
|
|
|
2357 |
<!-- PRINT, SAVE, ETC. END -------->
|
|
|
2358 |
<%
|
|
|
2359 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
|
|
2360 |
rsRep.Close()
|
|
|
2361 |
Set rsRep = nothing
|
|
|
2362 |
End If
|
|
|
2363 |
|
|
|
2364 |
End Sub
|
|
|
2365 |
%>
|
|
|
2366 |
|
|
|
2367 |
<%
|
|
|
2368 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
2369 |
'==================================================================================
|
|
|
2370 |
' Report Name : Unit Tests per Package
|
|
|
2371 |
' Description : List unit tests per package showing the unit test completeness
|
|
|
2372 |
' INPUT : Project, Vesion Tree, Release Label, Base View, Level of Completeness, Show/Hide Dependencies, PV_ID
|
|
|
2373 |
'==================================================================================
|
|
|
2374 |
Sub Unit_Tests_Per_Package ( sSection, nProj_id, nRtag_id, nBase_view_id, nLevel_of_complete, nShow_dependencies, nPv_id )
|
|
|
2375 |
Dim Query_String, rsRep
|
|
|
2376 |
Const Allow_All = TRUE
|
|
|
2377 |
Const Disallow_All = FALSE
|
|
|
2378 |
|
|
|
2379 |
If nProj_id = "" Then nProj_id = -1
|
|
|
2380 |
If nRtag_id = "" Then nRtag_id = -1
|
|
|
2381 |
If nShow_dependencies = "" Then nShow_dependencies = 0
|
|
|
2382 |
If nPv_id = "" Then nPv_id = -1
|
|
|
2383 |
|
|
|
2384 |
If sSection = "TITLE" Then
|
|
|
2385 |
Response.write "Unit Tests per Package"
|
|
|
2386 |
Exit Sub
|
|
|
2387 |
End If
|
|
|
2388 |
|
|
|
2389 |
|
|
|
2390 |
If sSection = "FORM" Then
|
|
|
2391 |
%>
|
|
|
2392 |
|
|
|
2393 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
|
|
2394 |
<form action="<%=scriptName%>" method="post" name="repform" onSubmit="MM_validateForm('FRproj_id','Project','R','FRvtree_id','Version Tree','R','FRrtag_id','Release','R');return document.MM_returnValue">
|
|
|
2395 |
<tr>
|
|
|
2396 |
<td width="1%" nowrap class="form_field"><img src="images/spacer.gif" width="30" height="8"></td>
|
|
|
2397 |
<td width="1%" align="right" nowrap class="form_field">Project</td>
|
|
|
2398 |
<td width="100%"><%Call Get_Projects( nProj_id, Disallow_All )%></td>
|
|
|
2399 |
</tr>
|
|
|
2400 |
<tr>
|
|
|
2401 |
<td nowrap class="form_field"> </td>
|
|
|
2402 |
<td align="right" nowrap class="form_field">Release</td>
|
|
|
2403 |
<td><%Call Get_Release_Labels ( nProj_id, nRtag_id, Disallow_All )%></td>
|
|
|
2404 |
</tr>
|
|
|
2405 |
<tr>
|
|
|
2406 |
<td nowrap class="form_field"> </td>
|
|
|
2407 |
<td align="right" nowrap class="form_field">Base View</td>
|
|
|
2408 |
<td><%Call Get_Base_Views ( nRtag_id, nBase_view_id, Allow_All )%></td>
|
|
|
2409 |
</tr>
|
|
|
2410 |
<tr>
|
|
|
2411 |
<td nowrap class="form_field"> </td>
|
|
|
2412 |
<td align="right" nowrap class="form_field">Show Dependencie's Unit Tests</td>
|
|
|
2413 |
<td><input type="checkbox" name="FRshow_deps" value="1" <%If nShow_dependencies <> 0 Then%>checked<%End If%>></td>
|
|
|
2414 |
</tr>
|
|
|
2415 |
<tr>
|
|
|
2416 |
<td nowrap class="form_field"> </td>
|
|
|
2417 |
<td align="right" nowrap class="form_field"> </td>
|
|
|
2418 |
<td><br>
|
|
|
2419 |
<input type="hidden" name="group" value="<%=parGroup%>">
|
|
|
2420 |
<input type="hidden" name="repnum" value="<%=parRepNum%>">
|
|
|
2421 |
<input type="hidden" name="FRtest_complete" value="0">
|
|
|
2422 |
<input type="hidden" name="action" value="true">
|
|
|
2423 |
<input name="Submit" type="submit" class="form_btn" value="Submit">
|
|
|
2424 |
</td>
|
|
|
2425 |
</tr>
|
|
|
2426 |
</form>
|
|
|
2427 |
</table>
|
|
|
2428 |
<% Exit Sub
|
|
|
2429 |
End If
|
|
|
2430 |
|
|
|
2431 |
|
|
|
2432 |
If sSection = "BODY" Then
|
|
|
2433 |
If NOT CBool(Request("action")) Then Exit Sub
|
|
|
2434 |
|
|
|
2435 |
Query_String = ReadFile( rootPath & "queries\rep_unit_tests_per_package.sql" )
|
|
|
2436 |
|
|
|
2437 |
OraDatabase.Parameters.Add "RTAG_ID", nRtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
2438 |
OraDatabase.Parameters.Add "BASE_VIEW", nBase_view_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
2439 |
OraDatabase.Parameters.Add "COMPLETENESS", nLevel_of_complete, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
2440 |
OraDatabase.Parameters.Add "SHOW_DEPS", nShow_dependencies, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
2441 |
OraDatabase.Parameters.Add "PV_ID", nPv_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
2442 |
%>
|
|
|
2443 |
<table width="100%" border="0" cellspacing="0" cellpadding="1">
|
|
|
2444 |
<tr>
|
|
|
2445 |
<td width="1%" nowrap class="body_colb"> </td>
|
|
|
2446 |
<td width="1%" nowrap class="body_colb"> </td>
|
|
|
2447 |
<td width="1%" nowrap class="body_colb">Package Name </td>
|
|
|
2448 |
<td width="1%" nowrap class="body_colb">Version </td>
|
|
|
2449 |
<td width="1%" nowrap class="body_colb">Test Name </td>
|
|
|
2450 |
<td width="100%" nowrap class="body_colb">Test Summary </td>
|
|
|
2451 |
<td width="1%" nowrap class="body_colb"></td>
|
|
|
2452 |
<td width="1%" nowrap class="body_colb">Stamp</td>
|
|
|
2453 |
<td width="1%" nowrap class="body_colb">Test Completed </td>
|
|
|
2454 |
</tr>
|
|
|
2455 |
<tr>
|
|
|
2456 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2457 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2458 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2459 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2460 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2461 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2462 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2463 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2464 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2465 |
</tr>
|
|
|
2466 |
<%
|
|
|
2467 |
Dim currBase_view_id, currPv_id, currDpv_id, showTests
|
|
|
2468 |
currBase_view_id = -1
|
|
|
2469 |
currPv_id = -1
|
|
|
2470 |
currDpv_id = -1
|
|
|
2471 |
|
|
|
2472 |
Set rsRep = OraDatabase.DbCreateDynaset( Query_String, 0 )
|
|
|
2473 |
|
|
|
2474 |
If rsRep.RecordCount = 0 Then
|
|
|
2475 |
With Response
|
|
|
2476 |
.write "<tr>"
|
|
|
2477 |
.write "<td colspan='9' class='body_row'>Found 0 records</td>"
|
|
|
2478 |
.write "</tr>"
|
|
|
2479 |
End With
|
|
|
2480 |
End If
|
|
|
2481 |
|
|
|
2482 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))
|
|
|
2483 |
If nShow_dependencies <> 0 Then
|
|
|
2484 |
' show dependency is ON
|
|
|
2485 |
If rsRep("dpkg_name") = "------" Then
|
|
|
2486 |
showTests = FALSE
|
|
|
2487 |
Else
|
|
|
2488 |
showTests = TRUE
|
|
|
2489 |
End If
|
|
|
2490 |
Else
|
|
|
2491 |
showTests = TRUE
|
|
|
2492 |
End If
|
|
|
2493 |
|
|
|
2494 |
' -------- GROUP BY BASE VIEW -----------------
|
|
|
2495 |
If CDbl(currBase_view_id) <> CDbl(rsRep("base_view_id")) Then
|
|
|
2496 |
%>
|
|
|
2497 |
<tr>
|
|
|
2498 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2499 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2500 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2501 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2502 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2503 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2504 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2505 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2506 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2507 |
</tr>
|
|
|
2508 |
<tr>
|
|
|
2509 |
<td valign="top" nowrap class="body_scol"><%=rsRep("view_name")%></td>
|
|
|
2510 |
<td> </td>
|
|
|
2511 |
<td> </td>
|
|
|
2512 |
<td> </td>
|
|
|
2513 |
<td> </td>
|
|
|
2514 |
<td> </td>
|
|
|
2515 |
<td> </td>
|
|
|
2516 |
<td> </td>
|
|
|
2517 |
<td> </td>
|
|
|
2518 |
</tr>
|
|
|
2519 |
<%
|
|
|
2520 |
currBase_view_id = CDbl(rsRep("base_view_id"))
|
|
|
2521 |
End If
|
|
|
2522 |
' -------- END GROUP BASE VIEW ------------------------
|
|
|
2523 |
%>
|
|
|
2524 |
<%
|
|
|
2525 |
' -------- GROUP BY PACKAGE -----------------
|
|
|
2526 |
If CDbl(currPv_id) <> CDbl(rsRep("pv_id")) Then
|
|
|
2527 |
%>
|
|
|
2528 |
<tr>
|
|
|
2529 |
<td><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2530 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2531 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2532 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2533 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2534 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2535 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2536 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2537 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2538 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2539 |
</tr>
|
|
|
2540 |
<tr>
|
|
|
2541 |
<td> </td>
|
|
|
2542 |
<td><%If rsRep("dlocked") = "Y" Then%><img src="images/i_locked.gif" width="7" height="10" hspace="2" alt="Officially released."><%Else%><img src="images/spacer.gif" width="7" height="10" hspace="2"><%End If%></td>
|
|
|
2543 |
<td nowrap><a href="fixed_issues.asp?pv_id=<%=rsRep("pv_id")%>&rtag_id=<%=nRtag_id%>" class="body_txt"><strong><%=rsRep("pkg_name")%></strong></a></td>
|
|
|
2544 |
<td nowrap><a href="fixed_issues.asp?pv_id=<%=rsRep("pv_id")%>&rtag_id=<%=nRtag_id%>" class="body_txt"><strong><%=rsRep("pkg_version")%></strong></a></td>
|
|
|
2545 |
<td> </td>
|
|
|
2546 |
<td> </td>
|
|
|
2547 |
<td> </td>
|
|
|
2548 |
<td> </td>
|
|
|
2549 |
<td align="center" valign="top" nowrap><%If nShow_dependencies = 0 Then%><%If IsNull( rsRep("not_done") ) Then%><img src="images/i_boxtick_on.gif" width="13" height="13"><%Else%><img src="images/i_boxtick_off.gif" width="13" height="13"><%End If%><%End If%></td>
|
|
|
2550 |
</tr>
|
|
|
2551 |
<%
|
|
|
2552 |
currPv_id = CDbl(rsRep("pv_id"))
|
|
|
2553 |
End If
|
|
|
2554 |
' -------- END GROUP PACKAGE ------------------------
|
|
|
2555 |
%>
|
|
|
2556 |
<%
|
|
|
2557 |
' -------- GROUP BY DEPENDENCY -----------------
|
|
|
2558 |
If Not IsNull(rsRep("dpv_id")) Then
|
|
|
2559 |
If CDbl(currDpv_id) <> CDbl(rsRep("dpv_id")) Then
|
|
|
2560 |
%>
|
|
|
2561 |
<tr>
|
|
|
2562 |
<td> </td>
|
|
|
2563 |
<td> </td>
|
|
|
2564 |
<td> </td>
|
|
|
2565 |
<td> </td>
|
|
|
2566 |
<td valign="top" nowrap><a href="fixed_issues.asp?pv_id=<%=rsRep("dpv_id")%>&rtag_id=<%=nRtag_id%>" class="body_txt"><strong><%=rsRep("dpkg_name")%></strong></a></td>
|
|
|
2567 |
<td valign="top" nowrap><a href="fixed_issues.asp?pv_id=<%=rsRep("dpv_id")%>&rtag_id=<%=nRtag_id%>" class="body_txt"><strong><%=rsRep("dpkg_version")%></strong></a></td>
|
|
|
2568 |
<td> </td>
|
|
|
2569 |
<td> </td>
|
|
|
2570 |
<td align="center" valign="top" nowrap><%If IsNull( rsRep("not_done") ) Then%><img src="images/i_boxtick_on.gif" width="13" height="13"><%Else%><img src="images/i_boxtick_off.gif" width="13" height="13"><%End If%></td>
|
|
|
2571 |
</tr>
|
|
|
2572 |
<%
|
|
|
2573 |
currDpv_id = CDbl(rsRep("dpv_id"))
|
|
|
2574 |
End If
|
|
|
2575 |
End If
|
|
|
2576 |
' -------- END GROUP DEPENDENCY ------------------------
|
|
|
2577 |
%>
|
|
|
2578 |
<%If Not IsNull( rsRep("completed_by") ) AND showTests Then%>
|
|
|
2579 |
<tr>
|
|
|
2580 |
<td> </td>
|
|
|
2581 |
<td> </td>
|
|
|
2582 |
<td> </td>
|
|
|
2583 |
<td> </td>
|
|
|
2584 |
<td bgcolor="#F5F5F5" valign="top" nowrap class="body_row"><img src="images/i_test.gif" width="16" height="16" hspace="1" align="absmiddle"><%=rsRep("test_name")%></td>
|
|
|
2585 |
<td bgcolor="#F5F5F5" valign="top" class="body_row"><%=NewLine_To_BR ( To_HTML ( rsRep("test_summary") ) )%></td>
|
|
|
2586 |
<td bgcolor="#F5F5F5" align="center" valign="top"> </td>
|
|
|
2587 |
<td bgcolor="#F5F5F5" valign="top" nowrap class="body_txt"><%=EuroDate ( rsRep("completion_date") )%> <a href="mailto:<%=rsRep("user_email")%>" class="txt_linked"><%=rsRep("completed_by")%></a> </td>
|
|
|
2588 |
<td> </td>
|
|
|
2589 |
</tr>
|
|
|
2590 |
<tr>
|
|
|
2591 |
<td><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2592 |
<td><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2593 |
<td><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2594 |
<td><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2595 |
<td><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2596 |
<td><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2597 |
<td><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2598 |
<td><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2599 |
<td><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2600 |
</tr>
|
|
|
2601 |
<%End If%>
|
|
|
2602 |
<% rsRep.MoveNext
|
|
|
2603 |
WEnd
|
|
|
2604 |
%>
|
|
|
2605 |
<tr>
|
|
|
2606 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2607 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2608 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2609 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2610 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2611 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2612 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2613 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2614 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2615 |
</tr>
|
|
|
2616 |
</table>
|
|
|
2617 |
|
|
|
2618 |
<!-- PRINT, SAVE, ETC. ------------>
|
|
|
2619 |
<%If parPrint = "" Then%>
|
|
|
2620 |
<br>
|
|
|
2621 |
<br>
|
|
|
2622 |
<a href="javascript:;" onClick="window.print();" class="txt_linked"><img src="images/btn_print.gif" width="23" height="24" hspace="4" border="0" align="absmiddle">Print this report</a><br>
|
|
|
2623 |
<br>
|
|
|
2624 |
<%End If%>
|
|
|
2625 |
<!-- PRINT, SAVE, ETC. END -------->
|
|
|
2626 |
<%
|
|
|
2627 |
rsRep.Close
|
|
|
2628 |
Set rsRep = nothing
|
|
|
2629 |
End If
|
|
|
2630 |
|
|
|
2631 |
End Sub
|
|
|
2632 |
%>
|