Subversion Repositories DevTools

Rev

Rev 6788 | Go to most recent revision | Details | Compare with Previous | 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
%>
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
    <%If Request("rtag_id") <> "" Then%>
53
     <br>
54
     <span class="body_sect">Used by Packages In This Release - Complete list</span>
55
     <br>
56
     <!-- USED BY ALL ------------------------------------------------>
6789 dpurdie 57
     <table width="100%" border="0" cellspacing="1" cellpadding="3" class="etable" id="pkgDeps">
58
        <thead class="body_hcol">
59
         <tr class="body_col form_field_bg">
60
           <th class="form_field nowrap noCsv"></th>
61
           <th class="form_field nowrap noCsv">Build<br>Level<%=Quick_Help("h_buildLevel")%></th>
62
           <th class="form_field nowrap ">Name</th>
63
           <th class="form_field nowrap ">Version</th>
64
           <th class="form_field nowrap ">Build<br>Time<%=Quick_Help("h_buildTime")%></th>
65
           <th class="form_field nowrap noCsv"></th>
66
           <th class="form_field nowrap noCsv">Last Modified</th>
67
         </tr>
68
        </thead>
6788 dpurdie 69
        <%
70
        OraDatabase.Parameters.Add "RTAG_ID", parRtag_id,                 ORAPARM_INPUT, ORATYPE_NUMBER
71
        OraDatabase.Parameters.Add "PV_ID",   pkgInfoHash.Item("pv_id"),  ORAPARM_INPUT, ORATYPE_NUMBER
72
 
73
        Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery("UsedByAllPackagesInThisRelease.sql"), cint(0))
74
 
75
        OraDatabase.Parameters.Remove "PV_ID"
76
        OraDatabase.Parameters.Remove "RTAG_ID"
77
        %>
78
        <%If rsTemp.RecordCount < 1 Then%>
79
           <tr class="form_item_pad form_field_grey_bg">
80
              <td nowrap>&nbsp;</td>
81
              <td class="form_item_pad" colspan=5>Leaf Package - Is not used by any other package in this Release</td>
82
           </tr>
83
        <%End If%>
84
        <%While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
85
            Dim buildTime : buildTime = rsTemp("build_time")
86
            If ISNULL(buildTime) Then
87
                buildTime = "<SPAN class='err_alert'>Unknown</SPAN>"
88
                bUnknown = TRUE
89
            Else
90
                buildTime = CLng(buildTime)
91
                totalBuildTime = totalBuildTime + buildTime
92
            End If
93
         %>
94
           <tr class="form_item_pad form_field_grey_bg csvData">
95
              <%If rsTemp("deprecated_state") <> "" AND rsTemp("pkg_state") = 0 Then%>
96
                 <td><%=DefineStateIcon ( rsTemp("deprecated_state"), rsTemp("dlocked"), NULL, NULL, pkgInfoHash.Item("build_type"), TRUE )%></td>
97
              <%Else%>
98
                 <td><%=DefineStateIcon ( rsTemp("pkg_state"), rsTemp("dlocked"), NULL, NULL, pkgInfoHash.Item("build_type"), TRUE )%></td>
99
              <%End If%>
100
 
101
              <td class="form_item_pad" nowrap><%=rsTemp("BuildLevel")%></td>
102
              <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>
103
              <td class="form_item_pad nowrap"><%=rsTemp("pkg_version")%></td>
104
              <td class="form_item_pad nowrap"><%=buildTime%></td>
105
              <td class="form_item_pad"></td>
106
              <td class="form_item_pad nowrap"><%=emailField(enum_imgUser & rsTemp("full_name"), rsTemp("user_email"))%>&nbsp;<%=DisplayDate ( rsTemp("modified_stamp") )%></td>
107
           </tr>
108
           <%rsTemp.MoveNext
6789 dpurdie 109
        WEnd%>
110
        <tfoot>
6788 dpurdie 111
           <tr class="form_item_pad form_field_grey_bg">
112
              <td class="form_item_pad" nowrap colspan=4>Total Packages: <%=rsTemp.RecordCount%></td>
113
              <td class="form_item_pad" nowrap colspan=3>Total Built Time <%=totalBuildTime%>&nbsp;[<%=NiceDuration(totalBuildTime)%>]
114
                <%If bUnknown Then%>
115
                    <SPAN class="err_alert">&nbsp;Note:Some package build times not known</SPAN>
116
                <%End If%>
117
              </td>
118
           </tr>
6789 dpurdie 119
         </tfoot>
6788 dpurdie 120
     </table>
121
    <%End If%>
122
    <%rsTemp.Close()%>
123
    <%Set rsTemp = nothing%>
124
    <!-- END - USED BY ALL -->
125
<%End If%>