Subversion Repositories DevTools

Rev

Rev 6613 | Rev 6617 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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
6615 dpurdie 23
Dim parRtagId
24
Dim parMode
25
Dim qFile
125 ghuddy 26
'------------ Constants Declaration -----------
27
'------------ Variable Init -------------------
28
parPvId = Request("pv_id")
6615 dpurdie 29
parRtagId = RequestDefault("rtag_id", 0)
30
parMode = RequestDefault("mode", 0)
31
qFile = Iif ( parMode = 1, "PackageVersionMetricsAll.sql", "PackageVersionMetrics.sql") 
125 ghuddy 32
'----------------------------------------------
33
%>
34
<%
35
'------------------------ MAIN LINE ---------------------------------
36
'--------------------------------------------------------------------
6615 dpurdie 37
' Get the list of ancestor versions
38
OraDatabase.Parameters.Add "RTAG_ID", parRtagId,    ORAPARM_INPUT, ORATYPE_NUMBER
39
OraDatabase.Parameters.Add "PV_ID", parPvId,        ORAPARM_INPUT, ORATYPE_NUMBER
40
Set rsMetrics = OraDatabase.DbCreateDynaset( GetQuery(qFile), cint(0))
41
OraDatabase.Parameters.Remove "PV_ID"
42
OraDatabase.Parameters.Remove "RTAG_ID"
43
 
125 ghuddy 44
%>
6613 dpurdie 45
<!-- RequestPackageVersionHistoryMetrics.asp -->
125 ghuddy 46
<table width="100%" border="0" cellspacing="1" cellpadding="1">
6613 dpurdie 47
<tr>
48
  <td>
49
     <table width="100%" border="0" cellspacing="1" cellpadding="1">
50
        <tr class="form_field_bg">
6615 dpurdie 51
           <td nowrap class="body_row" valign="top" >Package Version [<%=rsMetrics.RecordCount%>]</td>
6613 dpurdie 52
           <td nowrap class="body_row" valign="top" >Autobuilt</td>
53
           <td nowrap class="body_row" valign="top" >Build Reason</td>
54
           <td nowrap class="body_row" valign="top" >Lines Of Code</td>
55
           <td nowrap class="body_row" valign="top" >Unit Tested</td>
56
           <td nowrap class="body_row" valign="top" >Autotested</td>
57
           <td nowrap class="body_row" valign="top" >Last Modified</td>
58
        </tr>
125 ghuddy 59
 
6613 dpurdie 60
        <%
125 ghuddy 61
 
6613 dpurdie 62
        If rsMetrics.RecordCount < 1 Then
63
        %>
64
           <tr class="form_field_grey_bg">
6615 dpurdie 65
              <td colspan="7" class="body_row" nowrap>None Found</td>
6613 dpurdie 66
           </tr>
67
        <%
68
        Else
69
           While ((NOT rsMetrics.BOF) AND (NOT rsMetrics.EOF))
70
              %>
71
                 <tr class="form_field_grey_bg">
72
                    <td nowrap class="body_row">
73
                       <a class="txt_linked" href="dependencies.asp?pv_id=<%=rsMetrics("pv_id")%>"><%=rsMetrics("pkg_name")%>&nbsp;<%=rsMetrics("pkg_version")%></a>
74
                    </td>
75
                    <td nowrap class="body_row"><%=IIf(rsMetrics("is_autobuildable") = "Y", "Yes", "No")%></td>
76
                    <td nowrap class="body_row"><%=rsMetrics("reason")%></td>
77
                    <td nowrap class="body_row"><%=rsMetrics("code_lines")%></td>
78
                    <td nowrap class="body_row"><%=IIf(rsMetrics("unit_tested") = "Y", "Yes", "No")%></td>
79
                    <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>
80
                    <td nowrap class="body_row"><%=rsMetrics("modified_stamp")%></td>
81
                 </tr>
82
              <%
83
           rsMetrics.MoveNext
84
           WEnd
85
        End If
86
        rsMetrics.Close
87
        Set rsMetrics = nothing
88
        %>
89
     </table>
90
  </td>
91
</tr>
125 ghuddy 92
</table>
93
<br>
94
<%
95
Call Destroy_All_Objects
96
%>