Subversion Repositories DevTools

Rev

Rev 6577 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6576 dpurdie 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|          Edit/View Build Configuration            |
6
'|                                                   |
7
'=====================================================
8
%>
9
<%
10
Option explicit
11
' Good idea to set when using redirect
12
Response.Expires = 0   ' always load the page, dont store
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
<!--#include file="common/_form_window_common.asp"-->
20
<!--#include file="_action_buttons.asp"-->
21
<!--#include file="class/classActionButtonControl.asp"-->
22
<% '------------ ACCESS CONTROL ------------------ %>
23
<!--#include file="_access_control_login.asp"-->
24
<!--#include file="_access_control_general.asp"-->
25
<!--#include file="_access_control_action_project.asp"-->
26
<%
27
'------------ Variable Definition -------------
28
Dim parRtagId
29
'------------ Constants Declaration -----------
30
'------------ Variable Init -------------------
31
parRtagId = Request("rtag_id")
32
objPMod.PersistInQryString("rtag_id")
33
'----------------------------------------------
34
%>
35
<%
36
%>
37
<%
38
'------------ RUN BEFORE PAGE RENDER ----------
39
'----------------------------------------------------
40
' --- RUN onPostBack ---
41
If Request("action") <> "" AND objAccessControl.UserLogedIn Then
42
 
43
      If objEH.Finally Then
44
         Call OpenInWindow ( "release_config.asp?rtag_id="& parRtagId )
45
      End If
46
 
47
End If
48
'----------------------------------------------
49
Sub LeftPanelContent
50
%>
51
<%
52
End Sub
53
 
54
Sub MainPanelContent
55
    Dim pkgCount : pkgCount= 0
56
    Dim pkgTestCount : pkgTestCount= 0
57
    Dim testCount: testCount = 0
58
    Dim rsQry
59
 
60
    OraDatabase.Parameters.Add "RTAG_ID", parRtagId, ORAPARM_INPUT, ORATYPE_NUMBER
61
    Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("release_stats.sql"), 0 )
62
	OraDatabase.Parameters.Remove "RTAG_ID"
63
 
64
%>
65
   <table class="embedded_table" style="margin-bottom:20px">
66
      <tr>
67
         <td>
68
            <!-- Box Title -->
69
            <div class="form_ttl nowrap" align="left">
70
                 Package Unit Tests
71
            </div>
72
         </td>
73
      </tr>
74
      <tr>
75
         <td>
76
            <!-- Box Content -->
77
            <div class="rounded_box">
78
               <div style="background-color: white;border-left: white solid 10px;border-right: white solid 10px;">
79
                    <!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
80
                    <!--#include file="messages/_msg_inline.asp"-->
81
                    <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
82
                    <table width="100%" class="embedded_table">
83
                       <tr class="body_col envGroup">
84
                          <td valign="top" nowrap>Package</td>
85
                          <td valign="top" nowrap>Version</td>
86
                          <td valign="top" nowrap>Test Count</td>
87
                          <td valign="top" nowrap>Built</td>
88
                       </tr>
89
                        <%
90
                        Do While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
91
                            pkgCount = pkgCount + 1
92
                            Dim tcount : tcount = NiceInt(rsQry("test_count"), 0)
93
                            If tcount > 0 Then
94
                                pkgTestCount = pkgTestCount + 1
95
                                testCount = testCount + tcount 
96
                            End If
97
 
98
                            Dim vrefStr, prefStr, crefStr
99
                            crefStr = "unit_test_log.asp?pv_id=" & rsQry("pv_id") & "&rtag_id=" & parRtagId 
100
                            prefStr = "view_by_version.asp?pkg_id=" & rsQry("pkg_id")  & "&listby=1"
101
                            vrefStr = "dependencies.asp?pv_id=" & rsQry("pv_id") & "&rtag_id=" & parRtagId 
102
                        %>
103
                       <tr>
104
                        <td nowrap class="body_rowg"><a href=<%=prefStr%>><%=rsQry("pkg_name")%></a></td>
105
                        <td nowrap class="body_rowg"><a href=<%=vrefStr%>><%=rsQry("pkg_version")%></a></td>
106
                        <td nowrap class="body_rowg"><a href=<%=crefStr%>><%=rsQry("test_count")%></a></td>
107
                        <td nowrap class="body_rowg"><%=rsQry("lastBuild")%></td>
108
                       </tr>
109
                       <%
110
                       rsQry.MoveNext
111
                       Loop
112
                       %>
113
                       <tr><td>&nbsp;</td></tr>
114
                       <tr><td td colspan=4>
115
                            <table class=full_table>
116
                                <tr class="body_col envGroup"><td colspan=4>Summary</td></tr>
117
                                <tr class="body_rowg"><td>Total Packages</td><td><%=pkgCount%></td></tr>
118
                                <tr class="body_rowg"><td>Total Packages with Tests</td><td><%=pkgTestCount%></td></tr>
119
                                <tr class="body_rowg"><td>Total Unit Tests</td><td><%=testCount%></td></tr>
120
                            </table>
121
                       </td></tr>
122
                  </table>
123
               </div>
124
            </div>
125
         </td>
126
      </tr>
127
   </table>
128
<%
129
    rsQry.close
130
    Set rsQry = nothing
131
End Sub
132
%>
133
<NOSCRIPT LANGUAGE="VBScript" RUNAT=SERVER SRC="common/VarDump.vbs"></NOSCRIPT> 
134
<html>
135
   <head>
136
      <title>Release Manager</title>
137
      <link rel="shortcut icon" href="<%=FavIcon%>"/>
138
      <meta http-equiv="Pragma" content="no-cache">
139
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
140
      <link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
141
      <link rel="stylesheet" href="images/navigation.css" type="text/css">
142
      <script language="JavaScript" src="images/common.js"></script>
143
      <!-- DROPDOWN MENUS -->
144
      <!--#include file="_jquery_includes.asp"-->
145
      <!--#include file="_menu_def.asp"-->
146
      <script language="JavaScript1.2" src="images/popup_menu.js"></script>
147
   </head>
148
   <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
149
      <!-- HEADER -->
150
      <!--#include file="_header.asp"-->
151
      <!-- BODY ---->
152
      <table class="full_table">
153
         <tr>
154
            <td width="146px" class="panel_bg" valign="top">
155
                <%Call LeftPanelContent%>
156
            </td>
157
            <td width="100%" rowspan="2" align="center" valign="top" bgcolor="#EEEFEF">
158
                <%Call MainPanelContent%>
159
            </td>
160
         </tr>
161
         <tr>
162
            <td class="panel_bg" valign="bottom" align="center" height="350">
163
                <img src="images/release_stats.png" vspace="20" hspace="30"></td>
164
         </tr>
165
      </table>
166
      <!-- FOOTER -->
167
      <!--#include file="_footer.asp"-->
168
   </body>
169
</html>
170