Subversion Repositories DevTools

Rev

Rev 6592 | Rev 6614 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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>&nbsp;</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">
68
                              <a href='javascript:;' class=txt_linked>
69
                              <img id='IMG_<%=BaseId%>' src="images/bt_plus.gif" border="0" align="absmiddle" hspace="3" onClick="ToggleLoadControl('<%=BaseId%>','RequestReleasePackages.asp?rtag_id=<%=rsTemp("rtag_id")%>');">
125 ghuddy 70
                              <img src="images/i_world.gif" border="0" align="absmiddle" hspace="3">
71
                              <%=rsTemp("rtag_name")%>
6613 dpurdie 72
                              </a>
73
                        </td>
74
                        <td nowrap class="body_row"><%=rsTemp("last_build_time")%></td>
75
                        <td nowrap class="body_row"><%=rsTemp("autobuilt")%>/<%=rsTemp("total_packages")%> (<%=Auto%>)</td>
76
                        <td nowrap class="body_row"><%=rsTemp("lines_of_code")%></td>
77
                        <td nowrap class="body_row"><%=rsTemp("unit_tested")%></td>
78
                        <td nowrap class="body_row"><%=rsTemp("autotested")%></td>
79
                        <td nowrap class="body_row"><%=rsTemp("total_test_count")%></td>
80
                    </tr>
81
                    <tr class="form_field_grey_bg" id="TGL_<%=BaseId%>" style="display:none;">
82
                      <td nowrap class="body_row" colspan="7"><div id='<%=BaseId%>'><%=enumLOADING%></div></td>
83
                    </tr>
125 ghuddy 84
                  <%rsTemp.MoveNext
85
               WEnd
86
               rsTemp.Close
87
               Set rsTemp = nothing
88
 
89
            End If%>
90
         </table>
91
    </td>
119 ghuddy 92
  </tr>
93
</table>
94
<br>
6613 dpurdie 95
</td>
119 ghuddy 96
<%
97
Call Destroy_All_Objects
125 ghuddy 98
%>