| 125 |
ghuddy |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
'=====================================================
|
|
|
4 |
'| |
|
|
|
5 |
'| RequestPackageVersionHistoryMetrics.asp |
|
|
|
6 |
'| |
|
|
|
7 |
'=====================================================
|
|
|
8 |
%>
|
|
|
9 |
<%
|
|
|
10 |
Option explicit
|
|
|
11 |
' Good idea to set when using redirect
|
|
|
12 |
Response.Expires = 0 ' always load the page, dont store
|
|
|
13 |
%>
|
|
|
14 |
<!--#include file="common/conf.asp"-->
|
|
|
15 |
<!--#include file="common/globals.asp"-->
|
|
|
16 |
<!--#include file="common/formating.asp"-->
|
|
|
17 |
<!--#include file="common/qstr.asp"-->
|
|
|
18 |
<!--#include file="common/common_subs.asp"-->
|
|
|
19 |
<%
|
|
|
20 |
'------------ Variable Definition -------------
|
|
|
21 |
Dim rsMetrics
|
|
|
22 |
Dim parPvId
|
|
|
23 |
'------------ Constants Declaration -----------
|
|
|
24 |
'------------ Variable Init -------------------
|
|
|
25 |
parPvId = Request("pv_id")
|
|
|
26 |
'----------------------------------------------
|
|
|
27 |
%>
|
|
|
28 |
<%
|
|
|
29 |
'------------------------ MAIN LINE ---------------------------------
|
|
|
30 |
'--------------------------------------------------------------------
|
|
|
31 |
%>
|
| 6613 |
dpurdie |
32 |
<!-- RequestPackageVersionHistoryMetrics.asp -->
|
| 125 |
ghuddy |
33 |
<table width="100%" border="0" cellspacing="1" cellpadding="1">
|
| 6613 |
dpurdie |
34 |
<tr>
|
|
|
35 |
<td>
|
|
|
36 |
<table width="100%" border="0" cellspacing="1" cellpadding="1">
|
|
|
37 |
<tr class="form_field_bg">
|
|
|
38 |
<td nowrap class="body_row" valign="top" >Package Version</td>
|
|
|
39 |
<td nowrap class="body_row" valign="top" >Autobuilt</td>
|
|
|
40 |
<td nowrap class="body_row" valign="top" >Build Reason</td>
|
|
|
41 |
<td nowrap class="body_row" valign="top" >Lines Of Code</td>
|
|
|
42 |
<td nowrap class="body_row" valign="top" >Unit Tested</td>
|
|
|
43 |
<td nowrap class="body_row" valign="top" >Autotested</td>
|
|
|
44 |
<td nowrap class="body_row" valign="top" >Last Modified</td>
|
|
|
45 |
</tr>
|
| 125 |
ghuddy |
46 |
|
| 6613 |
dpurdie |
47 |
<%
|
|
|
48 |
' Get the list of ancestor versions
|
|
|
49 |
OraDatabase.Parameters.Add "PV_ID", Request("pv_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
50 |
Set rsMetrics = OraDatabase.DbCreateDynaset( GetQuery("PackageVersionMetrics.sql"), cint(0))
|
|
|
51 |
OraDatabase.Parameters.Remove "PV_ID"
|
| 125 |
ghuddy |
52 |
|
| 6613 |
dpurdie |
53 |
If rsMetrics.RecordCount < 1 Then
|
|
|
54 |
%>
|
|
|
55 |
<tr class="form_field_grey_bg">
|
|
|
56 |
<td colspan="7" class="body_row" nowrap>Non Found</td>
|
|
|
57 |
</tr>
|
|
|
58 |
<%
|
|
|
59 |
Else
|
|
|
60 |
While ((NOT rsMetrics.BOF) AND (NOT rsMetrics.EOF))
|
|
|
61 |
%>
|
|
|
62 |
<tr class="form_field_grey_bg">
|
|
|
63 |
<td nowrap class="body_row">
|
|
|
64 |
<a class="txt_linked" href="dependencies.asp?pv_id=<%=rsMetrics("pv_id")%>"><%=rsMetrics("pkg_name")%> <%=rsMetrics("pkg_version")%></a>
|
|
|
65 |
</td>
|
|
|
66 |
<td nowrap class="body_row"><%=IIf(rsMetrics("is_autobuildable") = "Y", "Yes", "No")%></td>
|
|
|
67 |
<td nowrap class="body_row"><%=rsMetrics("reason")%></td>
|
|
|
68 |
<td nowrap class="body_row"><%=rsMetrics("code_lines")%></td>
|
|
|
69 |
<td nowrap class="body_row"><%=IIf(rsMetrics("unit_tested") = "Y", "Yes", "No")%></td>
|
|
|
70 |
<td nowrap class="body_row"><%If IsNull(rsMetrics("autotested")) OR rsMetrics("autotested") <> "Y" Then %>No<%ElseIf rsMetrics("test_count") = "0" Then%>?<%Else%><%=rsMetrics("test_count")%><%End If%></td>
|
|
|
71 |
<td nowrap class="body_row"><%=rsMetrics("modified_stamp")%></td>
|
|
|
72 |
</tr>
|
|
|
73 |
<%
|
|
|
74 |
rsMetrics.MoveNext
|
|
|
75 |
WEnd
|
|
|
76 |
End If
|
|
|
77 |
rsMetrics.Close
|
|
|
78 |
Set rsMetrics = nothing
|
|
|
79 |
%>
|
|
|
80 |
</table>
|
|
|
81 |
</td>
|
|
|
82 |
</tr>
|
| 125 |
ghuddy |
83 |
</table>
|
|
|
84 |
<br>
|
|
|
85 |
<%
|
|
|
86 |
Call Destroy_All_Objects
|
|
|
87 |
%>
|