| 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 |
%>
|
|
|
20 |
<%
|
|
|
21 |
If pkgInfoHash.Exists("pv_id") Then
|
|
|
22 |
%>
|
|
|
23 |
<%If Request("rtag_id") <> "" Then%>
|
|
|
24 |
<br>
|
|
|
25 |
<span class="body_sect">All packages that this package depends on - Complete list</span>
|
|
|
26 |
<br>
|
|
|
27 |
<!-- DEPENDS ON 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("DependsOnAll.sql"), cint(0))
|
|
|
43 |
|
|
|
44 |
OraDatabase.Parameters.Remove "PV_ID"
|
|
|
45 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
|
|
46 |
%>
|
|
|
47 |
<%While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
|
|
48 |
Dim buildTime : buildTime = rsTemp("build_time")
|
|
|
49 |
If ISNULL(buildTime) Then
|
|
|
50 |
buildTime = "<SPAN class='err_alert'>Unknown</SPAN>"
|
|
|
51 |
bUnknown = TRUE
|
|
|
52 |
Else
|
|
|
53 |
buildTime = CLng(buildTime)
|
|
|
54 |
totalBuildTime = totalBuildTime + buildTime
|
|
|
55 |
End If
|
|
|
56 |
%>
|
|
|
57 |
<tr class="form_item_pad form_field_grey_bg csvData">
|
|
|
58 |
<%If rsTemp("deprecated_state") <> "" AND rsTemp("pkg_state") = 0 Then%>
|
|
|
59 |
<td><%=DefineStateIcon ( rsTemp("deprecated_state"), rsTemp("dlocked"), NULL, NULL, pkgInfoHash.Item("build_type"), TRUE )%></td>
|
|
|
60 |
<%Else%>
|
|
|
61 |
<td><%=DefineStateIcon ( rsTemp("pkg_state"), rsTemp("dlocked"), NULL, NULL, pkgInfoHash.Item("build_type"), TRUE )%></td>
|
|
|
62 |
<%End If%>
|
|
|
63 |
|
|
|
64 |
<td class="form_item_pad" nowrap><%=rsTemp("BuildLevel")%></td>
|
|
|
65 |
<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>
|
|
|
66 |
<td class="form_item_pad nowrap"><%=rsTemp("pkg_version")%></td>
|
|
|
67 |
<td class="form_item_pad nowrap"><%=buildTime%></td>
|
|
|
68 |
<td class="form_item_pad"></td>
|
|
|
69 |
<td class="form_item_pad nowrap"><%=emailField(enum_imgUser & rsTemp("full_name"), rsTemp("user_email"))%> <%=DisplayDate ( rsTemp("modified_stamp") )%></td>
|
|
|
70 |
</tr>
|
|
|
71 |
<%rsTemp.MoveNext
|
|
|
72 |
WEnd
|
|
|
73 |
If rsTemp.RecordCount <= 1 Then%>
|
|
|
74 |
<tr class="form_item_pad form_field_grey_bg">
|
|
|
75 |
<td nowrap> </td>
|
|
|
76 |
<td class="form_item_pad" colspan=6>Root Package - Has no dependencies</td>
|
|
|
77 |
</tr>
|
|
|
78 |
<%End If%>
|
|
|
79 |
<tr class="form_item_pad form_field_grey_bg">
|
|
|
80 |
<td class="form_item_pad" nowrap colspan=4>Total Packages: <%=rsTemp.RecordCount%></td>
|
|
|
81 |
<td class="form_item_pad" nowrap colspan=3>Total Built Time <%=totalBuildTime%> [<%=NiceDuration(totalBuildTime)%>]
|
|
|
82 |
<%If bUnknown Then%>
|
|
|
83 |
<SPAN class="err_alert"> Note:Some package build times not known</SPAN>
|
|
|
84 |
<%End If%>
|
|
|
85 |
</td>
|
|
|
86 |
</tr>
|
|
|
87 |
</table>
|
|
|
88 |
<%End If%>
|
|
|
89 |
<%rsTemp.Close()%>
|
|
|
90 |
<%Set rsTemp = nothing%>
|
|
|
91 |
<!-- END - USED BY ALL -->
|
|
|
92 |
<%End If%>
|