Rev 6788 | 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 -------------------'----------------------------------------------'''----------------------------------------------%><script language="JavaScript" type="text/JavaScript">formTips.tips.h_buildTime = stdTip(300, 'Est. Build Duration', 'Estimated build duration in seconds. Based simply on the last build duration for this package');formTips.tips.h_buildLevel = stdTip(300, 'Build Level', 'This is a mesaure of the distance between the current package and the dependent package.' +'<p>It is not a build order - that is much more complex to calculate');</script><script language="JavaScript" type="text/javascript">$(document).ready(function() {/* Init DataTables */table = $("#pkgDeps").DataTable({"paging": false,"info": true,dom: "rtif",ordering: true,order: [[ 1, "asc" ]],lengthChange : false,columns: [{ width: "1%", className: "dt-nowrap black", orderable: false, searchable: false},{ width: "1%", className: "dt-nowrap black", orderable: true, searchable: false},{ width: "1%", className: "dt-nowrap black" },{ width: "25%", className: "dt-nowrap black" },{ width: "5%", className: "dt-nowrap black" },{ width: "50%", className: "dt-nowrap black", orderable: false, searchable: false },{ width: "5%", className: "dt-nowrap black", orderable: false, searchable: false },],});});</script><%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" id="pkgDeps"><thead class="body_hcol"><tr><th class="noCsv"></th><th class="noCsv form_field ">Build<br>Level<%=Quick_Help("h_buildLevel")%></th><th class="form_field ">Name</th><th class="form_field ">Version</th><th class="form_field ">Build<br>Time<%=Quick_Help("h_buildTime")%></th><th class="form_field noCsv"></th><th class="form_field noCsv">Last Modified</th></tr></thead><%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.MoveNextWEnd%><tfoot><%If 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></tfoot></table><%End If%><%rsTemp.Close()%><%Set rsTemp = nothing%><!-- END - USED BY ALL --><%End If%>