Subversion Repositories DevTools

Rev

Rev 6789 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6788 dpurdie 1
<%
2
'=====================================================
3
'   _dependencies_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
%>
6789 dpurdie 20
<script language="JavaScript" type="text/JavaScript">
21
formTips.tips.h_buildTime       = stdTip(300, 'Est. Build Duration', 'Estimated build duration in seconds. Based simply on the last build duration for this package');
22
 
23
formTips.tips.h_buildLevel       = stdTip(300, 'Build Level', 'This is a mesaure of the distance between the current package and the dependent package.' +
24
                                                            '<p>It is not a build order - that is much more complex to calculate');
25
</script>
26
<script language="JavaScript" type="text/javascript">
27
	$(document).ready(function() {
28
		/* Init DataTables */
29
 
30
        table = $("#pkgDeps").DataTable({
31
            "paging":   false,
32
            "info":     true,
33
            dom: "rtif",
34
            ordering: true,
35
            order: [[ 1, "asc" ]],
36
            lengthChange : false,
37
 
38
            columns: [
39
               { width: "1%",  className: "dt-nowrap black",  orderable: false, searchable: false},
40
               { width: "1%",  className: "dt-nowrap black",  orderable: true, searchable: false},
41
               { width: "1%",  className: "dt-nowrap black"  },
42
               { width: "25%", className: "dt-nowrap black" },
43
               { width: "5%",  className: "dt-nowrap black" },
44
               { width: "50%", className: "dt-nowrap black", orderable: false, searchable: false },
45
               { width: "5%",  className: "dt-nowrap black", orderable: false, searchable: false },
46
           ],
47
        });
48
    });
49
</script>
50
 
51
    <%If pkgInfoHash.Exists("pv_id") Then%>
6788 dpurdie 52
     <br>
53
     <span class="body_sect">All packages that this package depends on - Complete list</span>
54
     <br>
55
     <!-- DEPENDS ON ALL ------------------------------------------------>
6790 dpurdie 56
     <table width="100%" border="0" cellspacing="1" cellpadding="3" class="etable stdGrey" id="pkgDeps">
57
        <thead>
6789 dpurdie 58
         <tr>
59
           <th class="noCsv"></th>
6790 dpurdie 60
           <th class="noCsv">Build<br>Level<%=Quick_Help("h_buildLevel")%></th>
61
           <th >Name</th>
62
           <th >Version</th>
63
           <th >Build<br>Time<%=Quick_Help("h_buildTime")%></th>
64
           <th class="noCsv"></th>
65
           <th class="noCsv">Last Modified</th>
6789 dpurdie 66
         </tr>
67
        </thead>
6788 dpurdie 68
        <%
69
        OraDatabase.Parameters.Add "RTAG_ID", parRtag_id,                 ORAPARM_INPUT, ORATYPE_NUMBER
70
        OraDatabase.Parameters.Add "PV_ID",   pkgInfoHash.Item("pv_id"),  ORAPARM_INPUT, ORATYPE_NUMBER
71
 
72
        Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery("DependsOnAll.sql"), cint(0))
73
 
74
        OraDatabase.Parameters.Remove "PV_ID"
75
        OraDatabase.Parameters.Remove "RTAG_ID"
76
        %>
77
        <%While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
78
            Dim buildTime : buildTime = rsTemp("build_time")
79
            If ISNULL(buildTime) Then
80
                buildTime = "<SPAN class='err_alert'>Unknown</SPAN>"
81
                bUnknown = TRUE
82
            Else
83
                buildTime = CLng(buildTime)
84
                totalBuildTime = totalBuildTime + buildTime
85
            End If
86
         %>
6790 dpurdie 87
           <tr class="csvData">
6788 dpurdie 88
              <%If rsTemp("deprecated_state") <> "" AND rsTemp("pkg_state") = 0 Then%>
89
                 <td><%=DefineStateIcon ( rsTemp("deprecated_state"), rsTemp("dlocked"), NULL, NULL, pkgInfoHash.Item("build_type"), TRUE )%></td>
90
              <%Else%>
91
                 <td><%=DefineStateIcon ( rsTemp("pkg_state"), rsTemp("dlocked"), NULL, NULL, pkgInfoHash.Item("build_type"), TRUE )%></td>
92
              <%End If%>
93
 
6790 dpurdie 94
              <td><%=rsTemp("BuildLevel")%></td>
95
              <td><a href="view_by_version.asp?pkg_id=<%=rsTemp("pkg_id")%>#<%=rsTemp("pv_id")%>" class="txt_linked"><%=rsTemp("pkg_name")%></a></td>
96
              <td><a href="<%=ScriptName%>?pv_id=<%=rsTemp("pv_id")%>&rtag_id=<%=parRtag_id%>" class="txt_linked"><%=rsTemp("pkg_version")%></a></td>
97
              <td><%=buildTime%></td>
98
              <td ></td>
99
              <td><%=emailField(enum_imgUser & rsTemp("full_name"), rsTemp("user_email"))%>&nbsp;<%=DisplayDate ( rsTemp("modified_stamp") )%></td>
6788 dpurdie 100
           </tr>
101
           <%rsTemp.MoveNext
6789 dpurdie 102
        WEnd%>
103
        <tfoot>
104
        <%If rsTemp.RecordCount <= 1 Then%>
6790 dpurdie 105
           <tr >
106
              <td>&nbsp;</td>
107
              <td colspan=6>Root Package - Has no dependencies</td>
6788 dpurdie 108
           </tr>
109
        <%End If%>
6790 dpurdie 110
           <tr >
111
              <td colspan=4>Total Packages: <%=rsTemp.RecordCount%></td>
112
              <td colspan=3>Total Built Time <%=totalBuildTime%>&nbsp;[<%=NiceDuration(totalBuildTime)%>]
6788 dpurdie 113
                <%If bUnknown Then%>
114
                    <SPAN class="err_alert">&nbsp;Note:Some package build times not known</SPAN>
115
                <%End If%>
116
              </td>
117
           </tr>
6789 dpurdie 118
         </tfoot>
6788 dpurdie 119
     </table>
120
    <%rsTemp.Close()%>
121
    <%Set rsTemp = nothing%>
122
    <!-- END - USED BY ALL -->
123
<%End If%>