| 119 |
ghuddy |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
'=====================================================
|
|
|
4 |
'| |
|
| 125 |
ghuddy |
5 |
'| RequestProjectRelease.asp |
|
| 119 |
ghuddy |
6 |
'| |
|
|
|
7 |
'=====================================================
|
|
|
8 |
%>
|
|
|
9 |
<%
|
|
|
10 |
Option explicit
|
|
|
11 |
' Good idea to set when using redirect
|
| 125 |
ghuddy |
12 |
Response.Expires = 0 ' always load the page, dont store
|
| 119 |
ghuddy |
13 |
%>
|
|
|
14 |
<!--#include file="common/conf.asp"-->
|
|
|
15 |
<!--#include file="common/globals.asp"-->
|
|
|
16 |
<!--#include file="common/formating.asp"-->
|
|
|
17 |
<!--#include file="common/qstr.asp"-->
|
|
|
18 |
<!--#include file="common/common_subs.asp"-->
|
|
|
19 |
<%
|
|
|
20 |
'------------ Variable Definition -------------
|
|
|
21 |
Dim rsTemp
|
|
|
22 |
Dim PageInfoHash
|
| 125 |
ghuddy |
23 |
Dim Query_String
|
|
|
24 |
Dim Auto
|
| 6613 |
dpurdie |
25 |
Dim BaseId
|
|
|
26 |
|
| 119 |
ghuddy |
27 |
'------------ Constants Declaration -----------
|
|
|
28 |
'------------ Variable Init -------------------
|
|
|
29 |
Set PageInfoHash = CreateObject("Scripting.Dictionary")
|
|
|
30 |
'----------------------------------------------
|
|
|
31 |
'------------------------ MAIN LINE ---------------------------------
|
|
|
32 |
%>
|
| 6613 |
dpurdie |
33 |
<!-- RequestProjectRelease.asp -->
|
| 119 |
ghuddy |
34 |
<table width="100%" border="0" cellspacing="1" cellpadding="1">
|
| 6616 |
dpurdie |
35 |
<tr>
|
|
|
36 |
<td class="form_field_bg">
|
|
|
37 |
<table width="100%" border="0" cellspacing="1" cellpadding="1">
|
|
|
38 |
<tr class="form_field_bg">
|
|
|
39 |
<td nowrap class="body_row" valign="top">Release</td>
|
|
|
40 |
<td nowrap class="body_row" valign="top">Last Autobuild<br>Completed</td>
|
|
|
41 |
<td nowrap class="body_row" valign="top">Autobuilt Packages</td>
|
|
|
42 |
<td nowrap class="body_row" valign="top">Lines Of Code</td>
|
|
|
43 |
<td nowrap class="body_row" valign="top">Packages<br>Unit Tested</td>
|
|
|
44 |
<td nowrap class="body_row" valign="top">Packages<br>Autotested</td>
|
|
|
45 |
<td nowrap class="body_row" valign="top">Total Auto<br>Test Count</td>
|
|
|
46 |
</tr>
|
| 119 |
ghuddy |
47 |
|
| 6616 |
dpurdie |
48 |
<%
|
|
|
49 |
OraDatabase.Parameters.Add "PROJ_ID", Request("proj_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
| 119 |
ghuddy |
50 |
|
| 6616 |
dpurdie |
51 |
Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery("ReleaseMetricsFull.sql"), cint(0))
|
| 125 |
ghuddy |
52 |
|
| 6616 |
dpurdie |
53 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
| 125 |
ghuddy |
54 |
|
| 6616 |
dpurdie |
55 |
If rsTemp.RecordCount < 1 Then%>
|
|
|
56 |
<tr class="form_field_grey_bg">
|
|
|
57 |
<td nowrap> </td>
|
|
|
58 |
</tr>
|
|
|
59 |
<%Else
|
| 125 |
ghuddy |
60 |
|
| 6616 |
dpurdie |
61 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
|
|
62 |
BaseId = "RTAG_" & rsTemp("rtag_id")
|
|
|
63 |
Auto=FormatPercent(rsTemp("autobuilt")/rsTemp("total_packages"), 2)
|
|
|
64 |
%>
|
|
|
65 |
<tr class="form_field_grey_bg">
|
|
|
66 |
<td nowrap class="body_row">
|
|
|
67 |
<a title="Show Metrics for this Release" href='javascript://rtag_id=<%=rsTemp("rtag_id")%>;' class=txt_linked onClick="ToggleLoadControl('<%=BaseId%>','RequestReleasePackages.asp?rtag_id=<%=rsTemp("rtag_id")%>');"><img id='IMG_<%=BaseId%>' src="images/bt_plus.gif" border="0" align="absmiddle" hspace="3" ><%=ReleaseIcon(rsTemp("official"))%></a>
|
|
|
68 |
<a title="Open this Release" href='dependencies.asp?rtag_id=<%=rsTemp("rtag_id")%>'><%=rsTemp("rtag_name")%></a>
|
|
|
69 |
</td>
|
|
|
70 |
<td nowrap class="body_row"><%=rsTemp("last_build_time")%></td>
|
|
|
71 |
<td nowrap class="body_row"><%=rsTemp("autobuilt")%>/<%=rsTemp("total_packages")%> (<%=Auto%>)</td>
|
|
|
72 |
<td nowrap class="body_row"><%=rsTemp("lines_of_code")%></td>
|
|
|
73 |
<td nowrap class="body_row"><%=rsTemp("unit_tested")%></td>
|
|
|
74 |
<td nowrap class="body_row"><%=rsTemp("autotested")%></td>
|
|
|
75 |
<td nowrap class="body_row"><%=rsTemp("total_test_count")%></td>
|
|
|
76 |
</tr>
|
|
|
77 |
<tr class="form_field_grey_bg" id="TGL_<%=BaseId%>" style="display:none;">
|
|
|
78 |
<td nowrap class="body_row" colspan="7"><div class=subindent id='<%=BaseId%>'><%=enumLOADING%></div></td>
|
|
|
79 |
</tr>
|
|
|
80 |
<%rsTemp.MoveNext
|
|
|
81 |
WEnd
|
|
|
82 |
rsTemp.Close
|
|
|
83 |
Set rsTemp = nothing
|
| 125 |
ghuddy |
84 |
|
| 6616 |
dpurdie |
85 |
End If%>
|
|
|
86 |
</table>
|
|
|
87 |
</td>
|
|
|
88 |
</tr>
|
| 119 |
ghuddy |
89 |
</table>
|
|
|
90 |
<br>
|
|
|
91 |
<%
|
|
|
92 |
Call Destroy_All_Objects
|
| 125 |
ghuddy |
93 |
%>
|