Subversion Repositories DevTools

Rev

Rev 6789 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6788 dpurdie 1
<%
2
'=====================================================
3
'   _used_by_all.asp
4
'   Core Implementation.
5
'   Needs to be used via a wrapper
6
'=====================================================
7
%>
8
<%
9
'------------ Variable Definition -------------
10
Dim rsTemp
11
Dim totalBuildTime : totalBuildTime = 0
12
Dim bUnknown : bUnknown = False
13
'------------ Constants Declaration -----------
14
'------------ Variable Init -------------------
15
'----------------------------------------------
16
'
17
'
18
'----------------------------------------------
19
%>
20
    <%
21
    If pkgInfoHash.Exists("pv_id") Then
22
    %>
23
    <%If Request("rtag_id") <> "" Then%>
24
     <br>
25
     <span class="body_sect">Used by Packages In This Release - Complete list</span>
26
     <br>
27
     <!-- USED BY ALL ------------------------------------------------>
28
     <table width="100%" border="0" cellspacing="1" cellpadding="3" class="etable">
29
        <tr class="body_col form_field_bg">
30
           <th nowrap width="1%"  class="noCsv"></th>
31
           <th nowrap width="1%"  class="form_field nowrap noCsv">Build<br>Level</th>
32
           <th nowrap width="1%"  class="form_field nowrap">Name</th>
33
           <th nowrap width="25%" class="form_field nowrap">Version</th>
34
           <th nowrap width="5%"  class="form_field">Build<br>Time</th>
35
           <th nowrap width="50%" class="form_field noCsv"></th>
36
           <th nowrap width="5%"  class="form_field nowrap noCsv">Last Modified</th>
37
        </tr>
38
        <%
39
        OraDatabase.Parameters.Add "RTAG_ID", parRtag_id,                 ORAPARM_INPUT, ORATYPE_NUMBER
40
        OraDatabase.Parameters.Add "PV_ID",   pkgInfoHash.Item("pv_id"),  ORAPARM_INPUT, ORATYPE_NUMBER
41
 
42
        Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery("UsedByAllPackagesInThisRelease.sql"), cint(0))
43
 
44
        OraDatabase.Parameters.Remove "PV_ID"
45
        OraDatabase.Parameters.Remove "RTAG_ID"
46
        %>
47
        <%If rsTemp.RecordCount < 1 Then%>
48
           <tr class="form_item_pad form_field_grey_bg">
49
              <td nowrap>&nbsp;</td>
50
              <td class="form_item_pad" colspan=5>Leaf Package - Is not used by any other package in this Release</td>
51
           </tr>
52
        <%End If%>
53
        <%While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
54
            Dim buildTime : buildTime = rsTemp("build_time")
55
            If ISNULL(buildTime) Then
56
                buildTime = "<SPAN class='err_alert'>Unknown</SPAN>"
57
                bUnknown = TRUE
58
            Else
59
                buildTime = CLng(buildTime)
60
                totalBuildTime = totalBuildTime + buildTime
61
            End If
62
         %>
63
           <tr class="form_item_pad form_field_grey_bg csvData">
64
              <%If rsTemp("deprecated_state") <> "" AND rsTemp("pkg_state") = 0 Then%>
65
                 <td><%=DefineStateIcon ( rsTemp("deprecated_state"), rsTemp("dlocked"), NULL, NULL, pkgInfoHash.Item("build_type"), TRUE )%></td>
66
              <%Else%>
67
                 <td><%=DefineStateIcon ( rsTemp("pkg_state"), rsTemp("dlocked"), NULL, NULL, pkgInfoHash.Item("build_type"), TRUE )%></td>
68
              <%End If%>
69
 
70
              <td class="form_item_pad" nowrap><%=rsTemp("BuildLevel")%></td>
71
              <td class="form_item_pad" nowrap><a href="<%=ScriptName%>?pv_id=<%=rsTemp("pv_id")%>&rtag_id=<%=parRtag_id%>" class="txt_linked"><%=rsTemp("pkg_name")%></a></td>
72
              <td class="form_item_pad nowrap"><%=rsTemp("pkg_version")%></td>
73
              <td class="form_item_pad nowrap"><%=buildTime%></td>
74
              <td class="form_item_pad"></td>
75
              <td class="form_item_pad nowrap"><%=emailField(enum_imgUser & rsTemp("full_name"), rsTemp("user_email"))%>&nbsp;<%=DisplayDate ( rsTemp("modified_stamp") )%></td>
76
           </tr>
77
           <%rsTemp.MoveNext
78
        WEnd
79
        %>
80
           <tr class="form_item_pad form_field_grey_bg">
81
              <td class="form_item_pad" nowrap colspan=4>Total Packages: <%=rsTemp.RecordCount%></td>
82
              <td class="form_item_pad" nowrap colspan=3>Total Built Time <%=totalBuildTime%>&nbsp;[<%=NiceDuration(totalBuildTime)%>]
83
                <%If bUnknown Then%>
84
                    <SPAN class="err_alert">&nbsp;Note:Some package build times not known</SPAN>
85
                <%End If%>
86
              </td>
87
           </tr>
88
     </table>
89
    <%End If%>
90
    <%rsTemp.Close()%>
91
    <%Set rsTemp = nothing%>
92
    <!-- END - USED BY ALL -->
93
<%End If%>