| 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 -->
|
|
|
34 |
<td nowrap class="body_row" colspan="4">
|
| 119 |
ghuddy |
35 |
<table width="100%" border="0" cellspacing="1" cellpadding="1">
|
| 125 |
ghuddy |
36 |
<tr>
|
| 6613 |
dpurdie |
37 |
<td class="form_field_bg">
|
|
|
38 |
<table width="100%" border="0" cellspacing="1" cellpadding="1">
|
|
|
39 |
<tr class="form_field_bg">
|
|
|
40 |
<td nowrap class="body_row" valign="top">Release</td>
|
|
|
41 |
<td nowrap class="body_row" valign="top">Last Autobuild<br>Completed</td>
|
|
|
42 |
<td nowrap class="body_row" valign="top">Autobuilt Packages</td>
|
|
|
43 |
<td nowrap class="body_row" valign="top">Lines Of Code</td>
|
|
|
44 |
<td nowrap class="body_row" valign="top">Packages<br>Unit Tested</td>
|
|
|
45 |
<td nowrap class="body_row" valign="top">Packages<br>Autotested</td>
|
|
|
46 |
<td nowrap class="body_row" valign="top">Total Auto<br>Test Count</td>
|
| 125 |
ghuddy |
47 |
</tr>
|
| 119 |
ghuddy |
48 |
|
| 125 |
ghuddy |
49 |
<%
|
|
|
50 |
OraDatabase.Parameters.Add "PROJ_ID", Request("proj_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
| 119 |
ghuddy |
51 |
|
| 6592 |
dpurdie |
52 |
Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery("ReleaseMetricsFull.sql"), cint(0))
|
| 125 |
ghuddy |
53 |
|
|
|
54 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
|
|
55 |
|
|
|
56 |
If rsTemp.RecordCount < 1 Then%>
|
| 6613 |
dpurdie |
57 |
<tr class="form_field_grey_bg">
|
|
|
58 |
<td nowrap> </td>
|
| 125 |
ghuddy |
59 |
</tr>
|
|
|
60 |
<%Else
|
|
|
61 |
|
|
|
62 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
| 6613 |
dpurdie |
63 |
BaseId = "RTAG_" & rsTemp("rtag_id")
|
| 125 |
ghuddy |
64 |
Auto=FormatPercent(rsTemp("autobuilt")/rsTemp("total_packages"), 2)
|
|
|
65 |
%>
|
| 6613 |
dpurdie |
66 |
<tr class="form_field_grey_bg">
|
|
|
67 |
<td nowrap class="body_row">
|
| 6615 |
dpurdie |
68 |
<a 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"))%><%=rsTemp("rtag_name")%></a>
|
| 6613 |
dpurdie |
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 id='<%=BaseId%>'><%=enumLOADING%></div></td>
|
|
|
79 |
</tr>
|
| 125 |
ghuddy |
80 |
<%rsTemp.MoveNext
|
|
|
81 |
WEnd
|
|
|
82 |
rsTemp.Close
|
|
|
83 |
Set rsTemp = nothing
|
|
|
84 |
|
|
|
85 |
End If%>
|
|
|
86 |
</table>
|
|
|
87 |
</td>
|
| 119 |
ghuddy |
88 |
</tr>
|
|
|
89 |
</table>
|
|
|
90 |
<br>
|
| 6613 |
dpurdie |
91 |
</td>
|
| 119 |
ghuddy |
92 |
<%
|
|
|
93 |
Call Destroy_All_Objects
|
| 125 |
ghuddy |
94 |
%>
|