Rev 6789 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<%'=====================================================' _dependencies_all.asp' Core Implementation.' Needs to be used via a wrapper'=====================================================%><%'------------ Variable Definition -------------Dim rsTempDim totalBuildTime : totalBuildTime = 0Dim bUnknown : bUnknown = False'------------ Constants Declaration -----------'------------ Variable Init -------------------'----------------------------------------------'''----------------------------------------------%><%If pkgInfoHash.Exists("pv_id") Then%><%If Request("rtag_id") <> "" Then%><br><span class="body_sect">All packages that this package depends on - Complete list</span><br><!-- DEPENDS ON ALL ------------------------------------------------><table width="100%" border="0" cellspacing="1" cellpadding="3" class="etable"><tr class="body_col form_field_bg"><th nowrap width="1%" class="noCsv"></th><th nowrap width="1%" class="form_field nowrap noCsv">Build<br>Level</th><th nowrap width="1%" class="form_field nowrap">Name</th><th nowrap width="25%" class="form_field nowrap">Version</th><th nowrap width="5%" class="form_field">Build<br>Time</th><th nowrap width="50%" class="form_field noCsv"></th><th nowrap width="5%" class="form_field nowrap noCsv">Last Modified</th></tr><%OraDatabase.Parameters.Add "RTAG_ID", parRtag_id, ORAPARM_INPUT, ORATYPE_NUMBEROraDatabase.Parameters.Add "PV_ID", pkgInfoHash.Item("pv_id"), ORAPARM_INPUT, ORATYPE_NUMBERSet rsTemp = OraDatabase.DbCreateDynaset( GetQuery("DependsOnAll.sql"), cint(0))OraDatabase.Parameters.Remove "PV_ID"OraDatabase.Parameters.Remove "RTAG_ID"%><%While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))Dim buildTime : buildTime = rsTemp("build_time")If ISNULL(buildTime) ThenbuildTime = "<SPAN class='err_alert'>Unknown</SPAN>"bUnknown = TRUEElsebuildTime = CLng(buildTime)totalBuildTime = totalBuildTime + buildTimeEnd If%><tr class="form_item_pad form_field_grey_bg csvData"><%If rsTemp("deprecated_state") <> "" AND rsTemp("pkg_state") = 0 Then%><td><%=DefineStateIcon ( rsTemp("deprecated_state"), rsTemp("dlocked"), NULL, NULL, pkgInfoHash.Item("build_type"), TRUE )%></td><%Else%><td><%=DefineStateIcon ( rsTemp("pkg_state"), rsTemp("dlocked"), NULL, NULL, pkgInfoHash.Item("build_type"), TRUE )%></td><%End If%><td class="form_item_pad" nowrap><%=rsTemp("BuildLevel")%></td><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><td class="form_item_pad nowrap"><%=rsTemp("pkg_version")%></td><td class="form_item_pad nowrap"><%=buildTime%></td><td class="form_item_pad"></td><td class="form_item_pad nowrap"><%=emailField(enum_imgUser & rsTemp("full_name"), rsTemp("user_email"))%> <%=DisplayDate ( rsTemp("modified_stamp") )%></td></tr><%rsTemp.MoveNextWEndIf rsTemp.RecordCount <= 1 Then%><tr class="form_item_pad form_field_grey_bg"><td nowrap> </td><td class="form_item_pad" colspan=6>Root Package - Has no dependencies</td></tr><%End If%><tr class="form_item_pad form_field_grey_bg"><td class="form_item_pad" nowrap colspan=4>Total Packages: <%=rsTemp.RecordCount%></td><td class="form_item_pad" nowrap colspan=3>Total Built Time <%=totalBuildTime%> [<%=NiceDuration(totalBuildTime)%>]<%If bUnknown Then%><SPAN class="err_alert"> Note:Some package build times not known</SPAN><%End If%></td></tr></table><%End If%><%rsTemp.Close()%><%Set rsTemp = nothing%><!-- END - USED BY ALL --><%End If%>